Displays the current weather conditions on a Pimoroni Unicorn HAT or Unicorn HAT HD.
These instructions assume a fresh installation of Raspberry Pi OS Buster.
sudo apt update
sudo apt dist-upgrade
sudo apt install build-essential git libgif-dev scons python python3-pip libopenjp2-7 libtiff5
cd ~
git clone --recursive https://github.com/SeanCline/UnicornHatWeather.git
cd UnicornHatWeather/Gif2UnicornHat
make dependencies && make
cd ..
sudo pip3 install -r requirements.txt
config.py
and replace YOUR_OPENWEATHERMAP_API_KEY
with your API key.sudo ./UnicornHatWeather.py
In order to start the weather display whenever the Raspberry Pi is booted, run the following:
sudo cp gif.service /etc/systemd/system/gif.service
sudo systemctl daemon-reload
sudo systemctl enable gif.service