Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

realtimegauges.txt - available from API?

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

realtimegauges.txt - available from API?

Post by freddie »

I upload the realtimegauges.txt to my website every 5 seconds. I think it would be more efficient to call the API for the same data on demand, as the daily number of hits on my gauges page is far less than 17280 (number of uploads of realtimegauges.txt in 24 hours). I can easily proxy the call to realtimegauges.txt to the API. My question is - are the contents of realtimegauges.txt generated from an API call? If so, may I know the URI for the call, please?
Freddie
Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: realtimegauges.txt - available from API?

Post by steve »

I would have to boot up my laptop to check for certain, but I'm pretty sure there is no API call for the actual file contents as it's generated in the usual way by processing a template file. However, when used as part of the user interface the data is obtained via an API call, if you look at the JavaScript file you should be able to see it. That might be a way to do what you want.
Steve
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: realtimegauges.txt - available from API?

Post by freddie »

steve wrote:when used as part of the user interface the data is obtained via an API call, if you look at the JavaScript file you should be able to see it
Very true - I should've thought of that myself, and saved asking the question. Thank you for the swift reply.
Freddie
Image
Locked