Posts: 66
Joined: Thu Jun 07, 2018 3:17 am

Astronomy/Weather Clock

Tue Jun 19, 2018 5:43 am

This is my first foray into building something with a Raspberry Pi, using a Raspberry Pi 3B+ and a Sunfounder 10.1" monitor:


Everything this clock is set up to do, except for indoor temperature and humidity, can be see on this web site: https://weather.shetline.com/

Since this clock sits on my dresser and has the potential to be too bright at night, one of the things I built into the web client was a user-settable dimming schedule. I've currently got the schedule set to dim the clock 55% between 11:00 PM and sunrise.

Besides showing time and date, the clock shows the current positions of the planets along the ecliptic (drawn as smaller dots when below the local horizon and larger dots when above the horizon), sunrise and sunset times, moon phase, current weather conditions, a four-day forecast, and weather alerts. By adding a DHT22 sensor you can also get indoor temperature and humidity.

All of the code, along with what I hope are fairly complete set-up instructions, are available on Github: https://github.com/kshetline/aw-clock

I've got the Pi running a node web server on localhost:8080, and automatically starting up Chromium in kiosk mode to display the web client. I've tried my best to make sure that the set-up runs as much like an appliance as possible, booting up as a clock as soon as it's powered on, with what I hope is pretty good chances of recovering smoothly from power loss.

Posts: 5
Joined: Fri Mar 30, 2018 8:36 pm

Re: Astronomy/Weather Clock

Wed Jun 20, 2018 7:29 pm

Very nice! This has definitely been added to my list of projects to try!

Posts: 8
Joined: Tue Dec 12, 2017 6:10 am

Re: Astronomy/Weather Clock

Sun May 24, 2020 5:42 am

This looks gorgeous. I have a pi in kiosk mode using a 5 inch screen. I just pointed to your website and it looks awesome. I'll download the code and check it out. I need to tweak the weather size a bit on such a small screen. I have a 7 inch screen I could use as well.

Return to “Other projects”