Question on REST API

Posted on
Wed Oct 13, 2021 8:39 am
norcoscia offline
User avatar
Posts: 992
Joined: Sep 09, 2015

Question on REST API

Hi, I want to upgrade the air quality monitoring in my home and I have been eye-balling some of the Airthings products. The new view plus looks great and has an API here at

https://developer.airthings.com/docs/ap ... index.html

It says it supports REST API so wondering if that means I (a non programmer) could just put a few lines in a python call within an Indigo schedule and pull the data I want into Indigo.

If any programmers know, please let me know and thanks in advance…
Attachments
436A4FA1-2BA7-411C-BD36-0475EFE01F79.jpeg
436A4FA1-2BA7-411C-BD36-0475EFE01F79.jpeg (138.26 KiB) Viewed 357 times

_______
Norm

Posted on
Wed Oct 13, 2021 8:58 am
ryanbuckner offline
Posts: 552
Joined: Oct 08, 2011

Re: Question on REST API

yeah. It looks like you could create a script and store some information in Indigo variables. It also looks like the API provides the ability to control your devices.

It looks like someone has done something similar here https://github.com/marcelm/radonwave . You would need to store the information in Indigo Variables using this documentation. https://wiki.indigodomo.com/doku.php?id=indigo_2021.1_documentation:plugin_scripting_tutorial

I'm sure folks on this forum will be happy to help you if / when you run into trouble.

Posted on
Wed Oct 13, 2021 9:24 am
norcoscia offline
User avatar
Posts: 992
Joined: Sep 09, 2015

Re: Question on REST API

Thanks for the reply and taking the time to look into it, things look more hopeful based on your answer.

I wish this stuff was not so bewildering to me - too old I guess…

I’m surprised there really is not much off the shelf stuff for air quality monitoring let alone interfacing it with Indigo.

_______
Norm

Posted on
Wed Oct 13, 2021 11:32 am
howartp offline
Posts: 4290
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Question on REST API

In the first instance I’d be using the GhostXml plugin with the webhooks that are published in the API.

That will get you the data into devices that you can display/filter/trigger on.

You can develop later though at first glance, consumers can only read, not control, their equipment.


Sent from my iPhone using Tapatalk Pro

Posted on
Wed Oct 13, 2021 11:33 am
FlyingDiver offline
User avatar
Posts: 5531
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Question on REST API

The Davis Airlink is supported by my WeatherLink plugin. And I wrote a plugin for the Purple sensor as well.


Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Oct 13, 2021 12:53 pm
norcoscia offline
User avatar
Posts: 992
Joined: Sep 09, 2015

Re: Question on REST API

Thanks, the purple air is really more for outside air, and does not have radon but I’ll go back and look again. I never got mine because (at the time) the wait was many months. I am using your plug-in with a close by station but I could never figure out how to map the purple air data into the plug-in.

Thanks howartp - I’ll look at the Ghost plug-in, I have it installed because I was running it last year for a weather station I was using that now has a plug-in
(So it is disabled).

Really liking the features of the Airthings might have to get one - plus my Netatmo C02 readings are getting wonky and I use it to control the vents and fan to exchange air in my house…

_______
Norm

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest