Skip to content

Text/image generation script for LED screens on Raspberry Pi devices

Notifications You must be signed in to change notification settings

marcusmcb/rpi-display-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitch_rpi_display

Runs on a Raspberry Pi to display a temporary fullscreen message (via pygame) when a Twitch chat command is detected.

Setup

  • Create a .env file (copy from .env.example) and fill in your real values.
  • Install deps:
    • pip install -r requirements.txt

Twitch chat listener (recommended)

The script connects to Twitch IRC and listens for a command (default !lotto). When seen, it generates numbers and displays them on the Pi.

It can also optionally reply in chat with the same numbers (useful if the screen fails).

Required .env values:

  • TWITCH_OAUTH (format oauth:...)
  • TWITCH_NICK (bot username)
  • TWITCH_CHANNEL (your channel)

Optional .env values:

  • ENABLE_TWITCH_CHAT_REPLY=1 (default)
  • TWITCH_REPLY_PREFIX=@ (default)

Run:

  • python server.py

Optional HTTP endpoint

If you still want to trigger the Pi from another service, you can enable the Flask server:

  • Set ENABLE_HTTP_SERVER=1
  • POST /display_lotto with JSON: { "message": "Hello" }

About

Text/image generation script for LED screens on Raspberry Pi devices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages