Page 3 of 15
Re: Yet more gauges
Posted: Fri 10 Jun 2011 12:39 pm
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.
Re: Yet more gauges
Posted: Fri 10 Jun 2011 12:55 pm
by nitrx
LOL well they are looking fine on my android tablet , only need my values

Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:00 pm
by mcrossley
Funnily enough I'm just working on that!
Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:04 pm
by nitrx
I post a photo moment please
Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:09 pm
by mcrossley
Problem: I based that page on my cumuluswebtags.js file, I'll convert it to using realtime.txt....
Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:13 pm
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
Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:17 pm
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

Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:18 pm
by mcrossley
Ah, I can't use realtime.txt as it doesn't have todays max/min figures etc that I use

sorry.
Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:30 pm
by nitrx
Well I can use the .js or not ?
Re: Yet more gauges
Posted: Fri 10 Jun 2011 1:42 pm
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?
Re: Yet more gauges
Posted: Fri 10 Jun 2011 2:28 pm
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

) 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.
Re: Yet more gauges
Posted: Fri 10 Jun 2011 2:43 pm
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.
Re: Yet more gauges
Posted: Fri 10 Jun 2011 2:49 pm
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.
Re: Yet more gauges
Posted: Sat 11 Jun 2011 12:58 pm
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
Re: Yet more gauges
Posted: Sat 11 Jun 2011 9:09 pm
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).