HomeGenie Forum
General Category => General Discussion => Topic started by: Deggle on March 18, 2016, 08:38:30 PM
-
I'm sure there must be a way to do this, but if not perhaps it needs to be down as a feature request.
I'm aware all the module data can be pulled via the API using: /api/HomeAutomation.HomeGenie/Config/Modules.List
However, is there a way to just pull a single parameter, such as Sensor.Temperature for a specific (address known) module?
Thanks in advance,
Tim
-
You can either use /api/HomeAutomation.HomeGenie/Config/Modules.ParameterGet to get a single module parameter or /api/HomeAutomation.HomeGenie/Config/Modules.Get to get the whole module object.
https://github.com/genielabs/HomeGenie/blob/master/HomeGenie/Service/Handlers/Config.cs#L441
Cheers,
g.
-
I know it's been a while - but thanks for this, it's just what I need to pull out single values via AJAX to my simplified (family and guest) interface/front end.
Cheers,
T