Coder Social home page Coder Social logo

pi-pic's Introduction

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.

pi-pic's People

Contributors

kiwijuice56 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.