Skip to content

Small server to control my RPI4 and Inky Impression screen

License

Notifications You must be signed in to change notification settings

kiwijuice56/pi-pic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-pic

A script to configure my Rasberry Pi 4 Model B with the Inky Impression 4" (7 colour ePaper/eInk HAT). Utilizes a private Discord server and bot to receive images and cycle through them randomly.

Example image

Set Up

  1. After connecting the Pi and Inky, install the following dependencies
sudo pip3 install inky[rpi,example-depends]
sudo pip3 install discord.py
sudo pip3 install pillow
  1. Clone this repository
sudo git clone https://github.com/kiwijuice56/pi-pic
  1. Create a Discord bot and server. Create the file TOKEN.txt in the pi-pic directory and copy the Discord bot's token into it.

  2. Run the script

sudo python3 pi-pic/bot.py
  1. (Optional) To allow the script to start up at boot, edit the file:
sudo nano /etc/rc.local

And add the following line of code right before the exit line:

python3 /home/pi/pi-pic/bot.py &

Finally, edit the parameters at the start of bot.py to fit your usage

delay_seconds = 60 * 25
picture_saturation = 0.50
inky_resolution=(640,400) # Check your device specifications
vertical_flip = True
login_delay = True # Set to True if allowing the program to run at boot

Usage

Send pictures in any channel of the server to add them to the slideshow or send the text clear to remove all of the pictures. The slideshow will stop if there are no pictures.

About

Small server to control my RPI4 and Inky Impression screen

Topics

Resources

License

Stars

Watchers

Forks

Languages