Page 1 of 1

Which data/ini file contains last recorded data?

Posted: Wed 06 Nov 2013 3:58 pm
by rhorne
Hello,

I am working on a custom web application for a local airfield that takes the data logged in the Cumulus software from our Nevada/EasyWeather equivalent weather station, and then makes a recommendation on which runway is best to use given the current weather conditions. It's not a serious operation - airfield literally means a field - hence the low budget equipment.

I have figured out how to parse the data from the ini files and upload them to my hosted web server in order to provide data to the web pages I will eventually build, but in analysing the data available to me in the today.ini file, it appears that I can only find highs and lows rather than the last actual recorded value. Am I missing something obvious or is this saved in a different file? I'm talking specifically about Wind, Temperature, Pressure, Rain and Humidity.

Thanks in advance.

Re: Which data/ini file contains last recorded data?

Posted: Wed 06 Nov 2013 4:06 pm
by steve
Cumulus logs the current data to the current monthly log file, see: http://wiki.sandaysoft.com/a/Monthly_log_files

If you want frequent data, you can set the log interval in Cumulus to one minute. That doesn't quite match the 48-second update interval of the station, so you won't get every reading in there.

But as you're doing this for a web site, rather than parse the log files, you could either use the realtime.txt file, see http://wiki.sandaysoft.com/a/Realtime.txt or create a file of your own format using web tags (also described in the wiki).

Re: Which data/ini file contains last recorded data?

Posted: Wed 06 Nov 2013 4:24 pm
by rhorne
Thanks for that Steve, should hopefully help solve my problem.

I have no doubts that I'm probably doing a lot of leg-work that people far more skilled and talented than I already did years ago. But as all of this is quite new to me, it's an interesting little project and breaks up the monotony of my day job.

I'm looking to keep a historical log of the captured data so will still look to insert any logged data into my online database, but it looks like I should be able to do this using the text file log - just means I'll have to re-write my code to capture the space-separated values rather than use the convenient parse_ini_file function.

Re: Which data/ini file contains last recorded data?

Posted: Wed 06 Nov 2013 9:04 pm
by mcrossley
I'd wait to see if beteljuice jumps in here. An airfield 'page' has already been done before...