Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Clock and weather display

Talk about anything that doesn't fit elsewhere - PLEASE don't put Cumulus queries in here!
Post Reply
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Clock and weather display

Post by philpugh »

With nothing better to do during lockdown I dug out an old 7" PI touchscreen and Pi 3b.

I was going to install the pirsfullclock (GitHub) to implement a studio clock but although of limited use to me - I do audio recording in a homemade studio - I thought I could add to it.

What transpired was a 'studio' style clock combined with a simple display of current weather conditions taken from my CumulusMX system using the /api/tags/process.json interface to the webtags - see wiki for more details.

The result is available here: https://github.com/philpugh1951/WeatherClock and is just a bit of fun! It will work on a normal HDMI attached screen - I have tried it on a 42" TV but it's a bit in-your-face at that size!

It's offered as a bit of fun and with absolutely NO support!!

Have fun
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Clock and weather display

Post by mcrossley »

Interesting Phil. Though the readme is screaming out for a screenshot! ;)
philpugh wrote: Fri 19 Mar 2021 1:05 pm It's offered as a bit of fun and with absolutely NO support!!
Ha, ha! That won't deter anyone :lol:
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

As requested Mark!

Image of Raspberry Pi screen (full 800*400 - clock.png)
Screen image from Windows 10 (winclock.png).

Software now runs on raspberry pi with full screen display on 7" Touch screen or as an application running on windowed systems under Python 3.x

I have tried it on Windows 10 and also Ubuntu Studio 20.04.

I plan to add trend indicators (probably colour coded dots) in the near future
Cheers

Phil
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

And now with trend 'dots' for temperature and pressure values
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

Latest version now has single code source for multiple systems and much improved weather information.
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Clock and weather display

Post by dazza1223 »

hey i got this on my pi 4 and ive upgraded to the bullseye x64 and i cant get it to work on my TFT lcd anymore any ideal on this ?
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

Hi,

I've just updated the application and tested it on a Pi3 under Bullseye and it works ok here.

I have made a major change to the data gathering process which now uses the json interface into CumulusMX provided by Mark C.

The README has the details - give this one a try and see what happens.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
The it guy
Posts: 29
Joined: Fri 22 Feb 2019 12:46 am
Weather Station: Davis
Operating System: Windows 10

Re: Clock and weather display

Post by The it guy »

hey ive upgraded from raspberry pi buster to bullseye X64 and before i upgraded it was all working ok



pi@cumulusmx:~ $ sudo python3 /home/pi/usb-drive/script/monwclock.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
No protocol specified
No protocol specified
Fatal Python error: PyEval_SaveThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: initialized

Current thread 0x0000007fa49f7040 (most recent call first):
File "/home/pi/usb-drive/script/weatherclock.py", line 6 in <module>
Aborted
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
No protocol specified
No protocol specified
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

I'm not sure if the pygame folk have changed it to handle 64 bit RPi hardware/sw. I haven't tried it at 64 bits myself - don't have a spare Pi4 hanging around!
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
The it guy
Posts: 29
Joined: Fri 22 Feb 2019 12:46 am
Weather Station: Davis
Operating System: Windows 10

Re: Clock and weather display

Post by The it guy »

Erm I've tried it on a raspberry 3 plus x64 as well and it isn't working on there as well ?
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

I have not tried it on 64 bit OS and I suspect that the pygame module hasn't been ported to 64 bit - or there are issues with the porting.

I wrote (or modified an existing clock application - mentioned in my Github blurb) to make use of a small RPi and pi 7 inch LCD screen, using the available 32bit O/S. TBH if you are just running the clock as a standalone display then there is no real advantage to running 64 bit, especially on a device that won't use a lot of the functionality bestowed by the 64 bit O/S. I haven't even moved to 64 bit on my Pi4 yet - it runs three instances of CMX along with Maria databases and five websites and isn't using a lot more than 15% CPU at peak.

Sorry to sound evasive but my part of the coding is very simple Python 3 the hard work is done by pygame, which is not in my control
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Clock and weather display

Post by philpugh »

I have tested this on Raspian 64 bit with some success. The steps and limitations are documented in the new README.MD on github. There have been no changes to the original code.

I haven't hooked a Pi4 to the 7inch display - too much of a waste of processing power in my mind! But it does work connected to my 4K display. It displays as a window (800x400) on the display but has the additional overhead of the window border/header. Whilst this should work withe 7inch display I suspect the overhead of the window will spoil the appearance.

I've also documented the use of monwclock.py - it simply launces weatherclock.py if it's not running and checks every minute to see if it is still running and restarts it if not! Useful on the standalone 7inch display which I run 24/7.

Phil
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
Post Reply