portrayt icon indicating copy to clipboard operation
portrayt copied to clipboard

struggle to install

Open genosos opened this issue 1 year ago • 2 comments

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.

  • I installed Raspberry Pi OS 64bit on my Pi.
  • Installed inky (pip3 install inky)
  • Then installed docker.
  • I created a Replicate Api Token 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. Also I wondering how I can access the web interface afterwards. (simply hitting the IP adress od the PI?)

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

genosos avatar Jun 11 '24 07:06 genosos

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 [email protected]: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 avatar Jun 11 '24 16:06 apockill

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.

apockill avatar Jun 11 '24 16:06 apockill