Skip to content

levell3r/RandomImageServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

    **Overview**

An Ardiuno sketch for a Lilygo T5 4.7 epaper display. This unit has a builtin ESP32 and 18650 battery holder. I wanted something that could sit on my table on rotate through some Film/Tv artwork.

    The Highlevel Logic

  • A @reboot cron job loads the APIserver at server bootup.
  • The device boots up, joins WiFi, calls the /load API which starts the imageserver App.
  • imageserver APP converts a randomly picked jpg from the folder to B64, adjusts the brightness and resolution for the Epaper screen and serves it on /image
  • Device delays for 20 seconds waiting for /image API to load, then streams the image from /image API, displays it
  • Device calls /shutdown API which kills the imageserver App. Then goes into sleep mode for the set time (see sleep_duration variable)
  • loop



  • Some Notes

    The API Server will need the path changing to wherever you are running the script from

    Imageserver needs the location of the jpgs changing to wherever you store yours. I have symlinked mine to a folder which is scraped with all my Plex movies and TV covers.

    The Arduio Sketch will need the IP address of the server running both Apps

    The arduino_screts.h file will need to be renamed (delete the SAMPLE_) and updated with your own WiFi creds.

    Future Jobs;

  • convert paths to variables
  • setup a function to check for night hours and increase sleep length
  • maybe look at the brightness adj calcs again. Possibly still a little contrasty



  • Dan



    Also,
    Thanks to;
    https://github.com/srslynow For providing the basis for this.

    About

    Arduino Sketch and flask webservers to display random local images

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors