Handles rendering the weather screenshots to the Pimoroni Inky Impressions 7.3" 800x480 e-ink display.
Important
Before running, make sure you have I2C and SPI enabled on your Raspberry Pi!
- Running the following:
sudo raspi-config
-
In the shown menu, go to "Interface Options" (should be list item #3)
-
Enable SPI (item I4) and I2C (item I5)
To get up and running, first make sure you're running on a linux system as the inky package used by this project requires the linux kernel specific SPI library.
With that out of the way, here's how you get started:
-
Make sure you're running python 3.11 (version shipped with raspbian)
-
Run the following to create a new virtual environment
python -m venv .venv
- Activate the newly created virtual environment
source .venv/bin/activate
- Install the project's dependencies
python -m pip install .
- Run
draw.py
python src/sky_pi_draw/draw.py
Some general guidance for how to deal with issues found during development
If you're using an RP5 and are running into problems connecting to the display when running the sky-pi-draw, you might need to install the new python specific GPIO package for Raspberry Pi. You can do this by running:
sudo apt remove python3-rpi.gpio
sudo apt install python3-rpi-lgpio
If you're still running into issues, you can try removing the RPi.GPIO
package used by sky-pi-draw by default and instead use rpi-lgpio. You can do do this by running:
sudo apt remove python3-rpi.gpio
pip3 install rpi-lgpio