Page 1 of 1
Can I get now-data via API?
Posted: Thu 06 Aug 2015 6:28 pm
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
Re: Can I get now-data via API?
Posted: Thu 06 Aug 2015 6:36 pm
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.
Re: Can I get now-data via API?
Posted: Thu 06 Aug 2015 6:44 pm
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?
Re: Can I get now-data via API?
Posted: Thu 06 Aug 2015 6:49 pm
by steve
Not at the moment for the 'now' data, but quite likely in the future as I expand the API.