-
1SSH into your rasberry pi
ssh pi@[IPADDRESS]
-
2Install the Inky pHAT libraries
curl https://get.pimoroni.com/inky | bash
-
3Copy the script over to your pi
scp /path/to/file username@a:/path/to/destination
-
4Obtain a Weather Underground account
Go to https://www.wunderground.com/
Register a device.
-
5Edit weather.py and update the variables with your API Key, the closest station, and your zipcode
- ZIPCODE
- STATION
- APIKEY
-
6Set the raspberry pi to run your script every 30 minutes
crontab -e
At the very bottom of your crontab file, add the following line:
*/30 * * * * python3 /[PATH TO YOUR SCRIPT]
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.