Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed Jun 19, 2013 3:30 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: 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: 17835
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: 17835
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: 17835
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: 17835
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  
 
 Post subject: Re: realtime.txt
PostPosted: Sun Oct 26, 2008 5:00 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
According to http://en.wikipedia.org/wiki/Humidex it has no units (but roughly corresponds to degrees Celsius).

_________________
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 5:08 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
True....

(note that humidex is a dimensionless number, but that the number indicates an approximate temperature in °C)

So the approximate temp in C converted to F makes that value mean something to a person who never uses C for temps?

Note that Humidex originated in Canada which is a metric country.

Other values make approximations are well.. DewPoint, Heat Index, Apparent Temp, etc..

Code:
DewPoint   32.5 °F (0.3 °C)
Wind Chill   73.8 °F (23.2 °C)
Heat Index   75.7 °F (24.3 °C)
Humidex   70 °F (21.1 °C)
Apparent Temp   83.1 °F (28.4 °C)

_________________
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: Sun Oct 26, 2008 5:28 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
But I guess you could provide it as an index (Non °C) value:


Code:
Less than 29     : Little or no discomfort
30 to 34             : Noticeable discomfort
35 to 39             : Evident discomfort
40 to 45             : Intense discomfort; avoid exertion
Above 45           : Dangerous discomfort
Above 54           : Heat stroke probable

_________________
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: Sun Oct 26, 2008 5:36 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Yes - the idea is that it's just an index, unlike the other data, and as it was invented in Canada it uses degrees C to calculate it. It would be wrong to quote it with a degrees C unit, and even more wrong to provide a Fahrenheit equivalent.

_________________
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 7:12 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
steve wrote:
41 recent max gust
42 heat index
43 humidex


What are the equivalent tags in Cumulus for these?

I see #heatindex exists...

I would assume #humidex (though it is not there yet)

What is the definition of recent max gust?

_________________
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 4 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