Sandaysoft

Support forum for Cumulus weather station software
It is currently Thu May 23, 2013 10:25 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 12:51 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
I've been running Steel Series on my website for quite a while. I decided to upgrade to 1.6.6 and ran into some problems. I'm using gauges-ssT.htm unmodified at this point.

I'm in the US, so I need Fahrenheit rather than Celsius. For some reason the gauge page is displaying the actual temperature VALUE correctly (such as 57.7) but the first two gauges show C and the temperature range is 30-70. The other gauges appear to be in the proper units. I'll accept responsibility for bollixing something up, but I can't even find where I could have done it!

I can't seem to figure out where the units are getting passed to the various java routines.

Another question -- do the gauges auto-scale? what happens if the wind gets above 20mph, or the rain gets above 1"? If they don't autoscale, do I have to change more than just the min/max lines in gauges.js? For example I can change g_rain.maxValue = 1.0;, but do I have to edit anything else?

FYI, my configuration currently uses the SS gauges as distributed:
Local file name: C:\Cumulus\web\gauges-ssT.htm
Remote file name: gauges1.htm

Web page for the gauges is: http://dantinconsulting.com/gauges1.htm

Thanks for a really nice package. I have received compliments on the gauges from a number of users.

Jim

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 1:11 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2517
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
OK, the "tempunit" in your realtime file is coming across as just: "tempunit: "°" so no units (C/F), the script then defaults to °C. That is the problem with the temperature gauges.

Yes the gauges do auto-scale. I've tried to set the default values to sensible limits so they show small amounts of rain, low wind speeds reasonably "visually", but the gauges will re-range once the default maximum (and minimum pressure) values are exceeded.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 2:24 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
mcrossley wrote:
OK, the "tempunit" in your realtime file is coming across as just: "tempunit: "°" so no units (C/F), the script then defaults to °C. That is the problem with the temperature gauges.

Yes the gauges do auto-scale. I've tried to set the default values to sensible limits so they show small amounts of rain, low wind speeds reasonably "visually", but the gauges will re-range once the default maximum (and minimum pressure) values are exceeded.


Great news on the autoscaling. Thanks

How do I fix (or what did I do to break) the "tempunit" issue? Was I supposed to manually edit something in the templates?

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 2:34 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2517
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
In your realtimegaugesT.txt file, it should be set to: "tempunit":"<#tempunitnodeg>",

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 2:42 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
mcrossley wrote:
In your realtimegaugesT.txt file, it should be set to: "tempunit":"<#tempunitnodeg>",


It is!
"tempunit":"<#tempunitnodeg>"

I'm running Cumulus 1.9.2 build 1003 -- should I be running something newer?

I'm comfortable just hardcoding "<#tempunitnodeg>" to whatever it should be seeing from Cumulus, if that would help as a temporary hack.

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 2:50 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
FYI, the Cumulus 'realtime.txt' file DOES show 'F':

06/06/12 10:49:31 64.8 50 45.7 1.6 3.1 60 0.00 0.00 29.97 ENE 1 mph F in in 2.4 0.00 0.95 22.87 0.00 73.9 47 64.8 +2.9 64.8 10:42 53.4 05:48 3.5 10:25 6.3 10:18 30.00 09:28 29.91 00:00 1.9.2 1003 4.0 64.8 65.2 0 0 0 62 0.00 3 1 0 ENE 4336 ft 62.9 0.0 767 0

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 3:03 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
I replaced the tag with "F" and it is formatting correctly -- so the issue is that the tag isn't getting processed correctly for some reason.

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 3:12 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17572
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
JimDantin wrote:
I'm running Cumulus 1.9.2 build 1003 -- should I be running something newer?

That's a very old, beta build of 1.9.2. It doesn't have the <#tempunitnodeg> web tag.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 3:21 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
steve wrote:
JimDantin wrote:
I'm running Cumulus 1.9.2 build 1003 -- should I be running something newer?

That's a very old, beta build of 1.9.2. It doesn't have the <#tempunitnodeg> web tag.


That explains it -- I'll upgrade Cumulus.

Thanks so much for the help.
Jim

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 4:05 pm 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
Cumulus upgraded - gauge is now working properly.

Next question -- I would like to change the second gauge to default to Dew Point rather than Apparent -- is that something that I can do?

Thanks

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Wed Jun 06, 2012 5:02 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2517
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Edit the HTML page and delete the word 'checked' from the following line:
Code:
          <input id="rad_dew2" type="radio" name="rad_dew" value="app" checked onclick="doDew(this);">


Then add 'checked' to the following line:
Code:
from
          <input id="rad_dew1" type="radio" name="rad_dew" value="dew" onclick="doDew(this);">
to
          <input id="rad_dew1" type="radio" name="rad_dew" value="dew" checked onclick="doDew(this);">


Edit gauges.js and around line 181 change:
Code:
    g_dew.selected = 'app';
to
    g_dew.selected = 'dew';

and also change:
Code:
    g_dew.title = LANG.apptemp_title;
to
    g_dew.title = LANG.dew_title;

Done.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Temperature problem after upgrade - F vs. C
PostPosted: Sat Jun 09, 2012 2:39 am 
Offline

Joined: Fri Jun 10, 2011 12:40 pm
Posts: 108
Location: Prospect, KY, USA
Weather Station: WMR-968
Operating System: Windows XP SP3
Thank you for the help - all is working properly now.

You sure make it easy for inexperienced users like me to deploy a great looking site.

Jim

_________________
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group