Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 6:55 pm
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  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 19, 2008 11:42 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
pinto wrote:
Only an idea: can Steve add the buildnumber to the realtime.txt


Yes, good idea. I decided to make the build number more visible (it's in About... now) as I intend to continue with this process of having beta releases with the same version number but different build numbers.

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


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 19, 2008 7:58 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I've just uploaded a new build (459) which fixes the decimal points and adds a 40th item, the build number.

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


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 19, 2008 8:14 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
tks. looks O.K. :D

even in the banner

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 19, 2008 10:47 pm 
Offline
User avatar

Joined: Wed Sep 10, 2008 2:15 pm
Posts: 385
Location: Gilleleje, Denmark
Weather Station: Rosenborg 68700
Operating System: Win7 Ult. 32-bit
Pinto,
your banner seems to be way ahead of Kevin's banner.php V2.
Would you care to share it with us :?:

_________________
Ib http://www.ibtest.dk/vejr/


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Mon Oct 20, 2008 12:03 am 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
I was waiting to see if there were going to be more changes as I need to update the documentation each time as well. I had just about finished when the build number was added.

The version 3.0 packages for banner and avatar are now available for download. The new graphs are still having the core modules worked on but will most likely be available later tonight as well.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Mon Oct 20, 2008 6:29 am 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
dane wrote:
Pinto,
your banner seems to be way ahead of Kevin's banner.php V2.
Would you care to share it with us :?:

It is exactly the banner from Kevin.
I only changed the fonts to comicbd.ttf
and added the buildnumber to it

EDIT:V3.0 now

you can see the code here

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Fri Oct 24, 2008 8:06 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
Hi Steve,
Trying to build a near-realtime updating index page, is it possible to add

<#heatindex>
<#beaudesc>
<#windrununit>
<#presstrend>

to the end of the realtime.txt

(index page is partly working, not finished yet)

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Fri Oct 24, 2008 8:13 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
No problem - I need to add 'recent high gust' as well (the 'gust' that's there now is just the latest reading).

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


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Fri Oct 24, 2008 8:59 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
pinto wrote:
Hi Steve,
Trying to build a near-realtime updating index page, is it possible to add

<#heatindex>
<#beaudesc>
<#windrununit>
<#presstrend>

to the end of the realtime.txt

(index page is partly working, not finished yet)


From my point of view... I would be hesitant of adding redundant data to this file since almost all uses of the file is going to be via a script or some sort of program.

The smaller the better and the less changes the better.

heatindex makes sense because it cannot be easily derived from other data... for that matter humidex would be nice as well (Common in Canada and becoming common in the US).

The rest are easily obtained from the data already contained in the realtime.txt file. That is why I didn't include them in the original request as they can be obtained from the data provided.

Oh... When I first recommended additional values, I couldn't think of a reason why windrununit to be different from windunit which is why I dropped it from the list.

presstrend can be derived from the existing data provided in pressure trend value. If it is positive (actually has a + in it it is Rising, if it is a negative value (will have a -) it is Falling..
Code:
#   19     +0.1       pressure trend value


So in a script you could do something like:

Code:
echo "Trend = ";
( substr( $DATA[18],0,1 ) == "-" ) ? print "Falling" : print "Rising";
echo "<br/>";


Similarly, the file already has the beaufortdesc value:

Code:
#   13     6          wind speed (beaufort)


Beaufort values are fixed, they don't change... they are made up of a set of force values that are easily computed from existing data using a simple array.

Code:
$beufortdesc = array("Calm","Light Air","Light Breeze","Gentle Breeze",
        "Moderate Breeze", "Fresh Breeze", "Strong Breeze", "Near Gale",
        "Gale", "Strong Gale", "Storm", "Violent Storm","Hurricane");


So that in a script, you could do...

Code:
echo "Beaufort" . $DATA[12] . ' = ' . $beufortdesc[$DATA[12]] . "<br/>";


The power of the data in the realtime.txt file is that all the values are now known values so that if you want to display the other format, you can easily by checking to see what format is being used.

So if you were a metric station and you wanted display Fahrenheit for example, you can easily with:

Code:
echo "Temp " . $DATA[2] . " " . $DATA[14] . " (" ;
if ( $DATA[14] == "C" ) ? print CoF($DATA[2],1) : print FtoC($DATA[2],1);
if ( $DATA[14] == "C" ) ? print "F)" : print "C)";
echo "<br/>";


Just an opinion of course...

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Fri Oct 24, 2008 9:10 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Seems reasonable to me. I have to admit that I didn't look too closely at what they were as I was starting to shut everything down because of the large electrical storm that had just arrived :)

The wind unit isn't quite the same as the wind run unit, but again, can be derived easily.

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


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Fri Oct 24, 2008 9:10 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
Agree with Kevin, didn't think of calculating things myself :oops:

Only keep heatindex (and like he said maybe humidex if possible)

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Fri Oct 24, 2008 9:23 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
OK, I'll add heat index, humidex, and recent high gust.

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


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Sat Oct 25, 2008 5:09 pm 
Offline

Joined: Sat Oct 11, 2008 3:20 pm
Posts: 111
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows XP SP3
Thanks to Kevin's code samples I have my indexpage updated every 5 seconds now :D :D :D 8-)

_________________
Jozef


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 26, 2008 3:26 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I've added the following to the end of realtime.txt in the next beta, which I will be uploading shortly:

41 recent max gust
42 heat index
43 humidex

I think I've got the humidex calculation correct, but no doubt someone will tell me if not. I've also added a <#humidex> web tag, but I'm not displaying the value on the main display.

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


Top
 Profile  
 
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 26, 2008 4:46 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
Just updated...

Humidex is most likely correct but is in the would expect it to be in the format of tempunit

6.3 75.2 19.9

I'm pretty sure that the 19.9 should have been 67.8

19.9°C = 67.8°F

**Update** just checked the heat index and Humidex against WD and they are within tenths of a degree the same.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  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