Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 11:28 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  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Other uses for easyweather.dat file
PostPosted: Mon Jan 10, 2011 4:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I could put a couple of quick hacks in the next build:

1. Do the check that TgT suggests (but this would not persist across sessions, i.e it would always take the latest entry as new data at start up)
2. Change the easyweather.dat interval to be a float (so you could specify 0.08, for example, to get an interval of approx 5 seconds)

But note that this would all be subject to the same limitations as the current code, i.e. the actual date and time would be ignored (all data would be taken as 'now'), it would only ever read the last line of the file etc etc

[Note to the possibly confused: this thread was split off from the WMR100/200 poll thread]

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


Top
 Profile  
 
 Post subject: Re: WMR100/200 poll
PostPosted: Mon Jan 10, 2011 9:47 pm 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
Steve,

In my case that may be a viable solution, the way I have configured the WUHU to easyweather.dat format generation is that it only supplies a single line of data to the easyweather.dat file, not accumulative (don't need yet another DB of the same data). Cumulus is happy at the moment with this arrangement. WUHU can generate this line of data at time of reception of data or at a specified rate.
Can you inform me of what fields of the easyweather.dat file Cumulus actually maps so I can streamline the data line?

Regards

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Tue Jan 11, 2011 8:49 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Here's the format of the easyweather.dat file, with the fields Cumulus uses in red

easyweather.dat fields:
0 - Record no
1 - Transfer date
2 - Transfer time
3 - Reading date
4 - Reading time
5 - Interval
6 - Indoor Hum
7 - Indoor Temp
8 - Outdoor Hum
9 - Outdoor Temp
10 - dew point
11 - wind chill
12 - abs pressure
13 - rel pressure
14 - wind average
15 - wind average bft
16 - wind gust
17 - wind gust bft
18 - wind direction number
19 - wind direction text (N, NE etc, converted to a bearing in figures)
20 - rain ticks
21 - rain total
22 - rain since last reading
23 - rain in last hour (used as rain rate)
24 - rain last 24 hours
25 - rain last 7 days
26 - rain last 30 days
27 - rain last year (used as rain 'counter' to determine other totals)

Note that I haven't changed this code for a long time, and I haven't considered it at all when doing other enhancements and bug fixes. I don't really want to start changing it too much just at the moment.

Edit: This is to document the fact that Cumulus now reads the date and time fields, and checks that they have changed before using the data from the file.

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


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Tue Jan 11, 2011 9:44 am 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
Thanks Steve,

Worked a treat. Now have a EW dat file of <80 bytes, shouldn't have too many read/write timeouts with that size.
Cumulus 1.9.1 seems happy with it. Once we get close to real time, wotz a missed reading or 2.

If anyone would like the WUHU action template just let me know.

Regards

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Wed Jan 19, 2011 2:36 pm 
Offline

Joined: Thu Jun 26, 2008 5:51 am
Posts: 97
Location: Slov.Konjice, Slovenia
Weather Station: Davis VP2 + Solar
Operating System: Win2k SP4@VIA EPIA800
DigbyDave, copy&paste wuhu template ;)

_________________
Image


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Wed Jan 19, 2011 2:49 pm 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
WUHU to easyweather.dat template and example Action file. Obviously the action file will have to be modified to reflect your directory paths.

Attachment:
WUHU_Cumulus Action Template.zip


Regards


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

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 10:10 am 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
Steve,

Just noticed a problem with wind direction with my export from WUHU to Easyweather format. I noticed that whenever the wind direction was WSW that Cumulus would show N. Further investigation on the Easyweather format I found that for some reason they use NEE for ENE and SEE for ESE. I summise that they also do the same for the westerly coords ie SWW for WSW and NWW for WNW. These I cannot configure in WUHU to export in these forms. :bash:

No biggie, but just wondered if can think of a simple solution, if not I'll wait for native support of the WMR100.

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 10:22 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
DigbyDave wrote:
they use NEE for ENE and SEE for ESE. I summise that they also do the same for the westerly coords ie SWW for WSW and NWW for WNW.

Yes, they do, strange as it is. I'd have to put in a option to use the normal format instead.

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


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 11:51 am 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
In the meantime I have created a little hack basic app that re-parses, not that I'm much of a programmer, the file to convert to these newly invented compass points (yet another task to keep an eye on). Is interesting that WUHU also uses these new compass points on their wind rose, but the export is as I would call normal. Wonder where the idea started? A translation from another language and coordinate system perhaps?

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 12:07 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Quote:
Wonder where the idea started?
Old English !

Sailors used to say North East by East, whereas us modern thickos say East (of) North East.

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


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 12:15 pm 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
North East by East is a point in between NE and ENE on a 32 point compass. According to wikipedia. http://en.wikipedia.org/wiki/Compass_points

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 12:58 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Hmm ... thanks for that !

I can't find where I originally sourced the information, I'll go away quietly :oops:

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


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 1:01 pm 
Offline
User avatar

Joined: Sun Jan 09, 2011 11:55 am
Posts: 45
Location: AU
Weather Station: Vantage Pro 2
Operating System: XP SP3
Was news to me too... was trying to find where they sourced the NEE etc convention.... ;)

_________________
Dave

Braitling, NT, Australia
INTBRAIT2


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Mon Jan 31, 2011 1:10 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I think they just 'got it wrong'. Probably lost in translation; perhaps it's done that way in Chinese?

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


Top
 Profile  
 
 Post subject: Re: Other uses for easyweather.dat file
PostPosted: Sat Feb 05, 2011 5:24 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17613
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I've changed the code so that it now accepts 'standard' compass points as well as 'Fine Offset' inventions.

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


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