mwhahaha / robo-weather

Weather Temperature App for Pimoroni Scroll pHAT HD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

robo-weather

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.

Configuration

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.

Installation

  1. You'll need to install the scroll-phat-hd library on your system.
  2. Configure the robo-weather.py with your local weather stationIdentifier.
  3. Copy robo-weather.py file to /usr/bin/robo-weather.py
sudo cp robo-weather.py /usr/bin/robo-weather.py
  1. Copy robo-weather.service file to /etc/systemd/system/robo-weather.service
sudo cp robo-weather.service /etc/systemd/system/robo-weather.service
  1. Enable the service and start it
sudo systemd enable robo-weather
sudo systemd start robo-weather

About

Weather Temperature App for Pimoroni Scroll pHAT HD

License:Apache License 2.0


Languages

Language:Python 100.0%