struggle to install
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 ;-)
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.
-
Make sure you've cloned the
portraytproject, a la:git clone [email protected]:apockill/portrayt.git -
Enter the portrayt directory:
cd portrayt -
Create a file called
.envand edit it:
nano .env
- 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
- 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
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.