Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 11:54 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  [ 66 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Thu Oct 27, 2011 11:04 pm 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
It would be even easier if today's dominant/average wind direction in the dayfile.txt file was included as a compass point as well as degrees. I'll submit an enhancement request (providing Steve can get the Rover back from Glasgow in one piece).

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 12:40 am 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
I've played with my javascript and can get the page to display, but there is no data:
http://woodlandweather.org/datasummary.html

I am using dayfile col #39 for the dominate wind direction but it does not display any data. When I insert another data field # in the javascript it will show that data. Is field #39 the correct one for dominate wind bearing?

Thanks...

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 1:29 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Quote:
... It would be even easier if today's dominant/average wind direction in the dayfile.txt file was included as a compass point as well as degrees...
Non-English users would still need a routine to translate.
Quote:
I am using dayfile col #39 for the dominate wind direction but it does not display any data. When I insert another data field # in the javascript it will show that data. Is field #39 the correct one for dominate wind bearing?
I'm not sure, but I think it's complaining because at the start of the year that (and several other) values did not exist.

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 6:59 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
beteljuice wrote:
Quote:
... It would be even easier if today's dominant/average wind direction in the dayfile.txt file was included as a compass point as well as degrees...
Non-English users would still need a routine to translate.

It's a possibility for a future version of Cumulus. It could perhaps use strings.ini so that the translated equivalent was always logged.

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


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 11:06 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1793
Location: World...
Weather Station: No weather station
Operating System: No operating system
mcrossley wrote:
Added low/high value highlighting like lots of other people - mine is transparent
Mark, a while back, I also added transparency to the hi/lo temperature colours but used a different coding:
Code:
  background-color: #000000;
  background: transparent;
Produces similar results but more inline with the W3C standards...


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 1:00 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
Quote:
I am using dayfile col #39 for the dominate wind direction but it does not display any data. When I insert another data field # in the javascript it will show that data. Is field #39 the correct one for dominate wind bearing?
I'm not sure, but I think it's complaining because at the start of the year that (and several other) values did not exist.[/quote]

So no values will show until Jan 2012?

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 1:14 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
from when you started using the build of Cumulus 1.9.2 that added this data to the dayfile

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 1:18 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
mcrossley wrote:
from when you started using the build of Cumulus 1.9.2 that added this data to the dayfile


I am using 1.9.2 build 1017. The numeric # is in the dayfile at the website, but this script will not display it. any ideas?

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 1:48 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
I haven't studied the JavaScript in any detail, but it does not seem to check for missing values at all.

I'd try changing line 134..141 from
Code:
                // get the data element             
                $(data_cell).html(wd_data[dayfilecol]);
                if (dayfilecol2 >0) { $(data_cell+'-2').html(wd_data[dayfilecol2]); }
                if ((parseFloat(wd_data[dayfilecol].split(',').join('.')) == 0) && (dayfilecol ==14 || dayfilecol ==1)) { $(data_cell).addClass('zerovalue'); }
                if((parseFloat(wd_data[dayfilecol])>80)&&(dayfilecol==6)){$(data_cell).addClass('highvalue');}
                        if((parseFloat(wd_data[dayfilecol])>140)&&(dayfilecol==16)){$(data_cell).addClass('highvalue');}
                        if((parseFloat(wd_data[dayfilecol])<5)&&(dayfilecol==4)){$(data_cell).addClass('lowvalue');}
                        if((parseFloat(wd_data[dayfilecol])>30)&&(dayfilecol==1)){$(data_cell).addClass('highvalue');}

to
Code:
            // get the data element             
            if(wd_data.length > dayfilecol) {
               $(data_cell).html(wd_data[dayfilecol]);
               if (dayfilecol2 >0) { $(data_cell+'-2').html(wd_data[dayfilecol2]); }
               if ((parseFloat(wd_data[dayfilecol].split(',').join('.')) == 0) && (dayfilecol ==14 || dayfilecol ==1)) { $(data_cell).addClass('zerovalue'); }
               if((parseFloat(wd_data[dayfilecol])>80)&&(dayfilecol==6)){$(data_cell).addClass('highvalue');}
                     if((parseFloat(wd_data[dayfilecol])>140)&&(dayfilecol==16)){$(data_cell).addClass('highvalue');}
                     if((parseFloat(wd_data[dayfilecol])<5)&&(dayfilecol==4)){$(data_cell).addClass('lowvalue');}
                     if((parseFloat(wd_data[dayfilecol])>30)&&(dayfilecol==1)){$(data_cell).addClass('highvalue');}
            }

_________________
Mark
Wilmslow Astro Weather


Last edited by mcrossley on Fri Oct 28, 2011 2:44 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 2:05 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
Tried your idea. No change. All data is displayed EXCEPT Dominate Wind Direction,the page has no data entries.

Perplexing.....

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 3:25 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Slight change to Marks suggestion
Try ..
Code:
            // get the data element             
            if(wd_data[dayfilecol]) {
               $(data_cell).html(wd_data[dayfilecol]);
               if (dayfilecol2 >0) { $(data_cell+'-2').html(wd_data[dayfilecol2]); }
               if ((parseFloat(wd_data[dayfilecol].split(',').join('.')) == 0) && (dayfilecol ==14 || dayfilecol ==1)) { $(data_cell).addClass('zerovalue'); }
            if((parseFloat(wd_data[dayfilecol])>80)&&(dayfilecol==6)){$(data_cell).addClass('highvalue');}
                    if((parseFloat(wd_data[dayfilecol])>140)&&(dayfilecol==16)){$(data_cell).addClass('highvalue');}
                     if((parseFloat(wd_data[dayfilecol])<5)&&(dayfilecol==4)){$(data_cell).addClass('lowvalue');}
                  if((parseFloat(wd_data[dayfilecol])>30)&&(dayfilecol==1)){$(data_cell).addClass('highvalue');}
              } else {
                     $(data_cell).html('N/A');
            }

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 3:34 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
beteljuice wrote:
Slight change to Marks suggestion
Try ..
Code:
            // get the data element             
            if(wd_data[dayfilecol]) {
               $(data_cell).html(wd_data[dayfilecol]);
               if (dayfilecol2 >0) { $(data_cell+'-2').html(wd_data[dayfilecol2]); }
               if ((parseFloat(wd_data[dayfilecol].split(',').join('.')) == 0) && (dayfilecol ==14 || dayfilecol ==1)) { $(data_cell).addClass('zerovalue'); }
            if((parseFloat(wd_data[dayfilecol])>80)&&(dayfilecol==6)){$(data_cell).addClass('highvalue');}
                    if((parseFloat(wd_data[dayfilecol])>140)&&(dayfilecol==16)){$(data_cell).addClass('highvalue');}
                     if((parseFloat(wd_data[dayfilecol])<5)&&(dayfilecol==4)){$(data_cell).addClass('lowvalue');}
                  if((parseFloat(wd_data[dayfilecol])>30)&&(dayfilecol==1)){$(data_cell).addClass('highvalue');}
              } else {
                     $(data_cell).html('N/A');
            }


Using this code makes ALL data disappear...

Thanks though

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 4:20 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
I amended my code a little (see original post on prevoius page), and it works fine (temp page on my site... http://weather.wilmslowastro.com/datasummary.htm)

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 4:28 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
mcrossley wrote:
I amended my code a little (see original post on prevoius page), and it works fine (temp page on my site... http://weather.wilmslowastro.com/datasummary.htm)


Thank you so much, Mark. :clap: :clap:

Now if I can get the degree #s to convert to letters....IE: NW,SSW..etc

Again thanks to all who have had input on this..

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary--Adding new fields
PostPosted: Fri Oct 28, 2011 5:20 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
Got it all working now with Marks code.

Thank you! :clap:

_________________
Bob

http://woodlandweather.org/


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

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