RGB LED Display of Cryto Prices, weather, and time.
This code assumes two 32x64 RGB matrixes, wired in serial, with a Rasberry Pi and a Adafruit RGB Matrix Bonnet driving them.
Follow this guide to get setup & wire your Pi & Matrix.
You'll also need to ensure that Python3 is installed. PM2 is also used for running on startup.
First, to install python and other dependancies
sudo apt-get install python3 python3-dev cython3 python3-pillow libgraphicsmagick++-dev libwebp-devThen to setup the bonnet:
git clone git@github.com:hzeller/rpi-rgb-led-matrix.git
curl https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/rgb-matrix.sh >rgb-matrix.sh
chmod +x rgb-matrix.sh
sudo bash rgb-matrix.sh- Log into your Pi and follow the Getting started steps.
- Downlaod the code to the Pi
git clone git@github.com:kmcnellis/pisign.git
- Copy keys.sample.py to keys.py and add your API keys
- Add your latitude and longitude to weather.py
- Create a python Virtual Env
python -m venv .venv
- Activate the venv
source .venv/bin/activate - Install dependancies
source Source/.venv/bin/activate .venv/bin/pip install -r requirements.txt - Run
sudo python3 main.py
- Install
sudo apt-get install npm npm install pm2 -g
- Setup Daemon (run the printed commands)
pm2 startup #Follow the commands printed - Edit
start.shto include the correct (absolute) path to your main.py and .venv - Run the start script
./start.sh