Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Yet more gauges

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Another update. Gerrit has added KnobStyle (and fixed the centre knob positioning issue), and I have added the ability to change the compass pointer type dynamically (only types 1, 2, 3 are valid).

I think this is getting good enough to make up a 'proper' page - the browser support is an issue, but it is probably only me that will ever look at the page anyway! I want a nice dashboard that I can leave on a screen that is visible from a distance.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet more gauges

Post by nitrx »

LOL well they are looking fine on my android tablet , only need my values :lol:
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Funnily enough I'm just working on that!
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet more gauges

Post by nitrx »

I post a photo moment please
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Problem: I based that page on my cumuluswebtags.js file, I'll convert it to using realtime.txt....
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet more gauges

Post by nitrx »

Well the photo isn't very sharp the page is loaded in landscape mode on a android 3.1 (honeycomb) tablet the browser is a chrome adattion from google
You do not have the required permissions to view the files attached to this post.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet more gauges

Post by nitrx »

mcrossley wrote:Problem: I based that page on my cumuluswebtags.js file, I'll convert it to using realtime.txt....
Next problem will be the units and seperators :?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Ah, I can't use realtime.txt as it doesn't have todays max/min figures etc that I use :( sorry.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet more gauges

Post by nitrx »

Well I can use the .js or not ?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yet more gauges

Post by steve »

mcrossley wrote:Ah, I can't use realtime.txt as it doesn't have todays max/min figures etc that I use :( sorry.
Which ones do you need?
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

The present incarnation using the following (the 0/1 indicates if it is realtime.txt or not)...

Code: Select all

cumulus.tempTL		1
cumulus.tempTH		1
cumulus.temp		1
cumulus.intemp		1
cumulus.dewpointTL	0
cumulus.dewpointTH	0
cumulus.dew			1
cumulus.apptempTL	0
cumulus.apptempTH	0
cumulus.apptemp		1
cumulus.wchillTL	0
cumulus.wchill		1
cumulus.heatindex	1
cumulus.heatindexTH	0
cumulus.humidex		1
cumulus.wgustTM		1
cumulus.wspeed		1
cumulus.wgust		1
cumulus.wlatest		1
cumulus.bearing		1
cumulus.avgbearing	1
cumulus.pressL		0
cumulus.pressH		0
cumulus.press		1
cumulus.rfall		1
cumulus.rrate		1
cumulus.rrateTM		0
cumulus.hum			1
cumulus.humTL		0
cumulus.humTH		0
cumulus.inhum		1
Now we could probably live without some of them, but it seems quite a bit to add to realtime.txt.

I've thought this before, maybe we should have an 'official' realtimeExtras.txt file so that everyone uses the same extensions if and when required, at the moment everyone is doing their own thing which makes sharing ideas more difficult.

Or, have an option in Cumulus (I can hear Steve groaning from here :lol: ) that parses a realtimeExtras.txt file for webtags and appends a second line to realtime.txt with the additional values. Then you keep the first line as standard so new standard values can be appended in the future, and the second line contains the extras. This may well break some existing pages, but does mean you can readLine() the standard vales and the extras separately. This has the advantage the Cumulus only uploads one file, and client downloads one file, but the danger of breaking backward compatibility probably makes it a on-starter.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yet more gauges

Post by steve »

mcrossley wrote:I've thought this before, maybe we should have an 'official' realtimeExtras.txt file so that everyone uses the same extensions if and when required, at the moment everyone is doing their own thing which makes sharing ideas more difficult.
Yes, that's something I think about quite often. The original idea of the realtime.txt file was something very short with values that changed relatively frequently. So rather than keep adding to that with items that don't change very often, I think a second optional file would be better.
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Even more efficient, only upload the extras file if a value in it changes, so all the max/min values will be pretty static for most of the day. Harder to do if you have an external template file, but an external file means additions are not dependent on Cumulus releases.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Oh, I think I forgot to mention it, but the gauges do render OK on the iPod/iPhone - so long as there aren't too many of them, otherwise you hit the max script runtime limit which seems to be somewhere around 5-10 seconds.

Here is a single temperature gauge that works fine on my daughters iPod:

http:weather.wilmslowastro.com/gaugesB/gaugeSmall.htm
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Casualty on TV :(
If I make the default gauges use the more processor efficient design features of the gauges, all 8 gauges will display correctly on the iPod. The frame surrounds with 'shiny' radial effects are the worst culprits (CHROME, and SHINY_METAL).
Post Reply