apockill / portrayt

Code for an e-paper+raspi based picture frame that generates StableDiffusion images from prompts given via a local dashboard
MIT License
71 stars 2 forks source link

struggle to install #8

Open genosos opened 5 months ago

genosos commented 5 months ago

Hey Alex, great project, but I am struggling to get this up an running.

So I have a Inky Impression 5.7" and a Pi4 4gb.

Thanks in advanced. by the way my second projects with a Pi so I am quite a Newby ;-)

apockill commented 5 months ago

Thank you for your interest in the project! We'll get this working after a little back and forth :grin:

Now I am stucked with the creation of the .env file as well I dont get it when I need to loaded portrayt on the Pi.

Okay perfect. This should be pretty straightforward.

  1. Make sure you've cloned the portrayt project, a la: git clone git@github.com:apockill/portrayt.git

  2. Enter the portrayt directory: cd portrayt

  3. Create a file called .env and edit it:

nano .env

  1. Write some values into this file. You want to have the following values for your case. Make sure to paste your replicate token where I left the <> markers:
REPLICATE_API_TOKEN=<your token here>
RENDERER=inky
  1. Now comes the slow part. Run the build (it may take up to an hour, or it might fail and we can debug it together):
docker compose up --build -d

If the build succeeds, you will see some logs. At this point, the portrayt will be accessible on your pi browser via the following url: localhost

apockill commented 5 months ago

If you're using the raspberry pi with a display and keyboard, you don't have to use nano to edit the file. You can use a normal text editor, and just make sure to save the file with the name ".env", and place the file inside the portrayt/ project root.