Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Can I get now-data via 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
SysRq
Posts: 4
Joined: Tue 04 Aug 2015 12:53 pm
Weather Station: WS1080
Operating System: Windows Server 2012 R2
Location: Sweden

Can I get now-data via API?

Post by SysRq »

Hi, new user here, testing the MX 3028 with my WS1080.
I have third party apps that I would like to feed weather data, it there an url to get json data as of "now"?
/Roger
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Can I get now-data via API?

Post by steve »

If you look at the javascript for the interface pages, you'll see how they get their data. The 'dashboard', 'now', and 'gauges' get their data using web sockets - they make a web socket connection to MX, and then MX 'pushes' the data every 3 seconds. The other pages fetch their data using ajax.
Steve
SysRq
Posts: 4
Joined: Tue 04 Aug 2015 12:53 pm
Weather Station: WS1080
Operating System: Windows Server 2012 R2
Location: Sweden

Re: Can I get now-data via API?

Post by SysRq »

Thanks, I figured that.
The only problem is that my app doesn't seem to handle web sockets, only HTTP GET, any chance of getting that?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Can I get now-data via API?

Post by steve »

Not at the moment for the 'now' data, but quite likely in the future as I expand the API.
Steve
Locked