https://github.com/kiwijuice56/pi-pic
Small server to control my RPI4 and Inky Impression screen
https://github.com/kiwijuice56/pi-pic
discord-bot inkyimpression raspberry-pi
Last synced: 7 months ago
JSON representation
Small server to control my RPI4 and Inky Impression screen
- Host: GitHub
- URL: https://github.com/kiwijuice56/pi-pic
- Owner: kiwijuice56
- License: mit
- Created: 2023-12-13T23:41:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T00:21:35.000Z (almost 2 years ago)
- Last Synced: 2025-02-02T04:20:17.246Z (9 months ago)
- Topics: discord-bot, inkyimpression, raspberry-pi
- Language: Python
- Homepage:
- Size: 821 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pi-pic
A script to configure my Rasberry Pi 4 Model B with the [Inky Impression 4" (7 colour ePaper/eInk HAT).](https://shop.pimoroni.com/products/inky-impression-4?variant=39599238807635) Utilizes a private Discord server and bot to receive images and cycle through them randomly.
## 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
```2) Clone this repository
```
sudo git clone https://github.com/kiwijuice56/pi-pic
```3) 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.
4) Run the script
```
sudo python3 pi-pic/bot.py
```5) (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
```python
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.