Page 1 of 1
today.ini doesn't show current temperature
Posted: Wed 27 Apr 2016 8:47 pm
by strath
I noticed that on my system the today.ini file updates about every 10 minutes or so. Since it is in an INI format I thought it would be useful for accessing the station data programmatically. However I cannot find the current temperature in this file.
Am I missing something or is there a better way to do this?
Re: today.ini doesn't show current temperature
Posted: Thu 28 Apr 2016 7:41 am
by steve
The formats of the various files are in the wiki. The today.ini file contains todays highs and lows etc, so they can be reloaded if Cumulus is restarted. One way that many people obtaining the current data for a program is to use the realtime.txt file. Or you can get Cumulus to periodically create a file in custom format using web tags - see the wiki for more information.
Cumulus MX also has an API for obtaining various data directly. I have not had the time to document this yet, you would have to look at the user interface code to see how this works.
Re: today.ini doesn't show current temperature
Posted: Thu 28 Apr 2016 8:51 pm
by strath
I cannot find a file named realtime.txt in the Cumulus file hierarchy. I just realized that I may not be using the MX version of Cumulus. The About dialog shows version 1.9.4 which might be an older version. Could that be why I have no file named realtime.txt?
Re: today.ini doesn't show current temperature
Posted: Thu 28 Apr 2016 9:40 pm
by water01
realtime.txt is file generated automatically by Cumulus when you switch realtime updates on see the Wiki here
http://wiki.sandaysoft.com/a/Realtime.txt