🗑 Bin Day Alert ♻️
Script to grab the date of the next bin collection from the Local Council's website.
This script requests the HTML of the Local Council's webpage. XPath expressions are then used to navigate the DOM, returning information relating to the dates various bins will be emptied (e.g. refuse, recycling, food, etc.). This information is then written to an Inky pHAT e-paper display from Pimoroni, attached to a Raspberry Pi Zero W. It is suggested the script is run regularly as a cron job.
To run the script, the following packages are required:
Pillow- Python Imaging Library (Fork) Pillow
font-fredoka-one- Font used when displaying text
inky- Python library for the Pimoroni Inky pHAT e-paper display
lxml- Used to parse the DOM of the webpage
requests- Requests the HTML of a webpage
Install these via pip:
pip install Pillow font-fredoka-one inky lxml requests
- Handle errors
- Tidy script