bwhitman / tide-clock-epaper

simple weather and tide clock for a 7.5" e-paper display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tide-clock-epaper

Example

A very simple but useful clock for an ePaper display that shows the weather and tide.

I used this ePaper display alongisde a Raspberry Pi Zero.

To use, get API keys from OpenWeatherMap and WorldTides. Rename config.py.example to config.py and add your API keys there, along with your actual location, and a URL from SeaTemperature if you want to show that.

Then run python3 tide.py and it will generate a black and white PNG file. If the WaveShare Python libraries are all setup and you run this from a Pi with the hostname of tideclock, it will instead update the e-Paper screen. I have this in a cron job on the Pi like so:

# m h  dom mon dow   command
@reboot sleep 60 && /home/pi/tide-clock-epaper/tide.sh >> /home/pi/tide-clock-epaper/log 2>&1
0 * * * * /home/pi/tide-clock-epaper/tide.sh >> /home/pi/tide-clock-epaper/log 2>&1

So that it runs on reboot (after waiting 60s for network to come up) and every hour.

Live shot

About

simple weather and tide clock for a 7.5" e-paper display


Languages

Language:Python 98.9%Language:Shell 1.1%