Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed Jun 19, 2013 12:07 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  [ 690 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 46  Next
Author Message
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Wed Jul 13, 2011 4:51 am 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
Fine job Mark.
Works a treat!

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Wed Jul 13, 2011 5:19 am 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
Mark.

I do have just one question for you.
How do I change the default radio button selections?
I would like to default to apparent temp instead of dew point.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Wed Jul 13, 2011 11:02 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2595
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
GraemeT wrote:
Mark.

I do have just one question for you.
How do I change the default radio button selections?
I would like to default to apparent temp instead of dew point.


You need to change the HTML
Code:
        <input id="rad_dew1" type="radio" name="rad_dew" value="dew" checked onclick="doDew(this)" />
        <label id="lab_dew1" for="rad_dew1">Dew Point</label>
        <input id="rad_dew2" type="radio" name="rad_dew" value="app" onclick="doDew(this)" />
        <label id="lab_dew2" for="rad_dew2">Apparent</label>
to
Code:
        <input id="rad_dew1" type="radio" name="rad_dew" value="dew" onclick="doDew(this)" />
        <label id="lab_dew1" for="rad_dew1">Dew Point</label>
        <input id="rad_dew2" type="radio" name="rad_dew" value="app" checked onclick="doDew(this)" />
        <label id="lab_dew2" for="rad_dew2">Apparent</label>
and Gauges.js line 205
Code:
    g_dew.selected = 'dew';
to
Code:
    g_dew.selected = 'app';
Hope that helps.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Wed Jul 13, 2011 11:44 pm 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
Thanks Mark.

I had the html sorted but the line in gauges.js had eluded me.
It's all good now.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Wed Jul 13, 2011 11:50 pm 
Offline
User avatar

Joined: Mon Aug 10, 2009 8:45 pm
Posts: 26
Location: White Rock, BC Canada
Weather Station: Davis Vantage Vue
Operating System: Windows 7 64 bit SP1
Nice work Mark. Like the gauges.
HTML 5 in the future?

Hal

_________________
If you must choose between two evils, pick the one you've never tried before.

Image

http://www.whiterockweather.com


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Thu Jul 14, 2011 1:30 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1698
Location: World...
Weather Station: No weather station
Operating System: No operating system
mcrossley wrote:
...and Gauges.js line 205
Code:
    g_dew.selected = 'dew';
to
Code:
    g_dew.selected = 'app';
Hope that helps.
Mark, I think line 203 should also be changed from
Code:
g_dew.title = LANG.dew_title;
to
Code:
g_dew.title = LANG.apptemp_title;
otherwise the title on the gauge remains 'Dew Point'... ;)


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Thu Jul 14, 2011 6:32 am 
Offline

Joined: Fri Feb 04, 2011 10:45 am
Posts: 10
Location: Greece
Weather Station: National geographic NE 265
Operating System: Windows Xp
Instruments read very well, but in my case http://achaiki.eu/weather/omplos/gauges-ss.htm they remain still unless we make some adjustment like for example internal from the external temperature. Also it doesn’t show the time of renewal.


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Thu Jul 14, 2011 7:48 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2595
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
gemini06720 wrote:
Mark, I think line 203 should also be changed from
Code:
g_dew.title = LANG.dew_title;
to
Code:
g_dew.title = LANG.apptemp_title;
otherwise the title on the gauge remains 'Dew Point'... ;)
Indeed, I thought of that after I posted, but I'd shut my computer down and needed some sleep :roll: A hard day on a customer site :(

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Fri Jul 15, 2011 10:41 am 
Offline

Joined: Fri Feb 04, 2011 10:45 am
Posts: 10
Location: Greece
Weather Station: National geographic NE 265
Operating System: Windows Xp
Mark, sorry for bringing this up again but I wonder if you could help me with a problem with the instruments. As I wrote you before the instruments remain idle after loading the page. But when a replace mine http://achaiki.eu/weather/omplos/realtimegauges.txt with yours http://weather.wilmslowastro.com/realtimegauges.txt then the instrument page works fine. The only difference I noticed between the two realtimegauges.txt, is that mine uses a "," while yours uses a ".". But when I substitute , with . it still doesn't work: http://achaiki.eu/weather/omplos/gauges-ss.htm
My second remark is that from my realtimegauges.txt are missing in the end some digits which have to do with the date form.
I would appreciate your views.


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Fri Jul 15, 2011 10:49 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2595
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
OK, it looks like we have an extended character set problem with the txt file.

It may be that Cumulus saves the file as ANSI, but the first thing to try is:
1. Open realtimegaugesT.txt in Notepad.
2. File|Save As...
3. Make sure that the "Encoding" is set to UTF-8 and resave the file.

Once this is done check to see if the generated file contains entries such as this |ÄéáóôÞìáôá âñï÷üðôùóçò, ðïëý áóôáèÞò| for the forecast.

Can you confirm the realtimegaugesT.txt has the following as the last entry on the line:
Code:
<#timeUTC format=yyyy,m>-1,<#timeUTC format=d,h,m,s>


EDIT: Also, as you use an extended character set language, the LCD font probably will not be able to display the forecast message, so you need to switch to the 'normal' font in gauges.js
Code:
var g_digitalFont           = false;

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Fri Jul 15, 2011 11:02 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
mcrossley wrote:
It may be that Cumulus saves the file as ANSI

For writing out "processed" files, it uses the standard Pascal I/O functions (Rewrite etc) so I suspect that probably does use ANSI encoding.

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


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Fri Jul 15, 2011 11:14 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2595
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Ah! I see the problem, you are running Cumulus 1.9.1, the newer versions of the script require version 1.9.2. I did a post on Yet More Gauges thread about how to 'fix' gauges.js to work with version 1.9.1.

But basically around line 716, change:
Code:
                then = eval("Date.UTC("+cumulus.timeUTC+")");
to
Code:
                then = now;

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Fri Jul 15, 2011 11:37 am 
Offline

Joined: Fri Feb 04, 2011 10:45 am
Posts: 10
Location: Greece
Weather Station: National geographic NE 265
Operating System: Windows Xp
That was the problem, now everything is working normaly.
Thanks guys for the help


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0
PostPosted: Fri Jul 15, 2011 11:41 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2595
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Glad to be of help - did you try the Greek forecasts again?

EDIT: I was wrong above, to change just the forecast/status to 'normal' text you need to change:
Code:
var g_digitalForecast = false;

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: SteelSeries Gauges - version 1.0.1
PostPosted: Sat Jul 16, 2011 4:18 am 
Offline
User avatar

Joined: Mon Aug 10, 2009 8:45 pm
Posts: 26
Location: White Rock, BC Canada
Weather Station: Davis Vantage Vue
Operating System: Windows 7 64 bit SP1
Hello Mark,
Would it be possible to increase the "Forecast" window size to accomodate the Davis Vantage Vue forecast as it overruns the current size?
Great work and many thanks,
Hal


You do not have the required permissions to view the files attached to this post.

_________________
If you must choose between two evils, pick the one you've never tried before.

Image

http://www.whiterockweather.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 690 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 46  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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