Skip to content

Send text via HTTP GET/POST and display it on a MAX7219 Dot Matrix LED display

License

Notifications You must be signed in to change notification settings

atchoo78/ledAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LED Alert

Lightweight HTTP server in Python, configured to receive text data via GET/POST and displaying it on a MAX7219 compatible scrolling LED display connected to a Raspberry Pi.

Dependencies: https://github.com/rm-hull/luma.led_matrix

Usage

HTTP/GET (Web browser):

http://raspberrypi.local:8181/?led=1&msg=Hello World!

HTTP/POST (CURL)

curl -d 'Hello World!' raspberrypi.local:8181/led

Installation

  1. First, install the Luma LED display drivers. Follow the installation instructions provided here: https://github.com/rm-hull/luma.led_matrix

  2. Create a new directory in your home folder on the Raspberry Pi, and copy ledAlert.py to it.

mkdir ~/ledAlert
  1. Configure it to run as a service on startup (Feel free to use any text editor of your choice):
cd /lib/systemd/system/
sudo pico ledAlert.service

Paste or write the following into "ledAlert.service" (the blank file that you just created):

[Unit]
Description=LED Alert
After=multi-user.target
 
[Service]
Type=simple
ExecStart=/usr/bin/python /home/YourUsername/ledAlert.py
Restart=on-abort
 
[Install]
WantedBy=multi-user.target 

Important: Change "YourUsername" (line 7 above) to your actual logon user name (e.g. "/home/pi/ledAlert.py")

sudo chmod 644 /lib/systemd/system/ledAlert.service
chmod +x /home/YourUsername/ledAlert.py

Change the user name reference in line 2 (above) as well

sudo systemctl daemon-reload
sudo systemctl enable ledAlert.service
sudo systemctl start ledAlert.service

To check the status of the ledAlert service (or any other system service, for that matter):

sudo systemctl status ledAlert.service

1337 services awaits

4.sudo reboot now

About

Send text via HTTP GET/POST and display it on a MAX7219 Dot Matrix LED display

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages