Given the coordinates of a geographical location this script fetches the current weather forecast from the Dark Sky API and prints it using via the ESC/POS protocol onto thermal paper. It has been developed in a coding session by Jessie and Fränz in January 2020. We are using the Climacons icon set to show weather conditions.
- Epson TM-T88IV ESC/POS printer
- Raspberry Pi (connected to the printer via USB)
- Python & Pip
- Create a Dark Sky account to retrieve an API key.
- Configure constants at the top of
main.py
. - Install Python dependencies:
pip install requests python-escpos