This is a simple script that can be used to show the weather on a Pimoroni Scroll pHAT HD.
This also works with a Scroll Bot.
To configure this, edit the robo-weather.py script and change the WEATHER_LOCATION to your 4 letter stationIdentifier from the https://api.weather.gov/ api. For example, https://api.weather.gov/stations?state=CO will list all the stations for Colorado. See the National Weather Service's API Specifications.
- You'll need to install the scroll-phat-hd library on your system.
- Configure the robo-weather.py with your local weather stationIdentifier.
- Copy robo-weather.py file to /usr/bin/robo-weather.py
sudo cp robo-weather.py /usr/bin/robo-weather.py
- Copy robo-weather.service file to /etc/systemd/system/robo-weather.service
sudo cp robo-weather.service /etc/systemd/system/robo-weather.service
- Enable the service and start it
sudo systemd enable robo-weather
sudo systemd start robo-weather