Page 1 of 1
Problem with easyweather.dat date and time
Posted: Mon 30 Nov 2015 5:26 pm
by daveh
Hi everyone. First post here. I have just started using Cumulus to record data from my home built weather station which is Arduino based and currently just records temperature, pressure and humidity.
Since I mostly use Linux I thought I would try out MX. I am writing a easyweather.dat file which is being successfully read by CumulusMX but I noticed a couple of things.
First, I could not find anywhere in the settings to enter the location of easyweather.dat so I entered it in the Cumulus.ini file manually. Will this be added to the settings page at some point?
Secondly, I was trying to load some old data by writing easyweather.dat at a regular interval from my old data which worked as long as I gave CumulusMX time to read the data before writing the next record. The problem is that CumulusMX is recording the readings as being at the time it received the data and not using the reading date and time in easyweather.dat. Could you take a look at this please.
Thanks,
Dave.
Re: Problem with easyweather.dat date and time
Posted: Mon 30 Nov 2015 5:38 pm
by steve
daveh wrote:First, I could not find anywhere in the settings to enter the location of easyweather.dat so I entered it in the Cumulus.ini file manually. Will this be added to the settings page at some point?
I was trying to make it difficult to use the easyweather.dat option to reduce the number of people using it when they should be using the Fine Offset setting, as happens regularly with Cumulus 1 - I may add it at some point. (reply edited)
CumulusMX is recording the readings as being at the time it received the data and not using the reading date and time in easyweather.dat.
Yes, that's how it's intended to work, it's the same in Cumulus 1. Cumulus always uses the current PC (etc) clock for 'live' data, and easyweather.dat data is always 'live'.
Re: Problem with easyweather.dat date and time
Posted: Mon 30 Nov 2015 6:01 pm
by daveh
OK Steve thanks for explaining that. I was confused by
http://wiki.sandaysoft.com/a/EasyWeather_Format where the file format is explained and there is a transmit date and time which it says is not used by Cumulus and a reading date and time which it says is used by Cumulus.
So, would it be possible to add historical data with the correct reading times? Also, what about a case where the weather station may store up readings and them send them back in bursts. Is there a way to handle that?
Thanks, Dave
Re: Problem with easyweather.dat date and time
Posted: Mon 30 Nov 2015 6:09 pm
by steve
daveh wrote:OK Steve thanks for explaining that. I was confused by
http://wiki.sandaysoft.com/a/EasyWeather_Format where the file format is explained and there is a transmit date and time which it says is not used by Cumulus and a reading date and time which it says is used by Cumulus.
It just uses them to determine that the data has changed, which is mentioned, along with the fact that only 'live' data is handled, but perhaps it should explicitly state that's all they're used for.
So, would it be possible to add historical data with the correct reading times? Also, what about a case where the weather station may store up readings and them send them back in bursts. Is there a way to handle that?
It's unlikely, sorry. That code is only there because it was the only way I could originally support Fine Offset stations, and it became obsolete when I found out how to drive them directly. It's only left in because I was asked to leave it in.
What is more likely to happen is that at some point I may add proper support for a 'generic' station, including catering for historical data.
Re: Problem with easyweather.dat date and time
Posted: Mon 30 Nov 2015 6:46 pm
by daveh
Thanks for the prompt replies. I have only been looking at Cumulus for a few hours but really like what I have seen so far.
Dave