Dany3337
(Dany)
October 9, 2017, 8:57am
1
Hello, I’m new here. I want to make a async Http call, but when I want to read it out as a object. I get a error. Do I have to read them out differently than normal http calls?
I’m not exactly sure about what you are asking…
Want a working example?
/**
* LIFX Group of Groups
*
* Copyright 2016 ericvitale@gmail.com
*
* Version 1.3.4 - Fixed looping issue with retrying when lights are offline. (07/30/2017)
* Version 1.3.3 - Cleaned up a bit. (06/30/2017)
* Version 1.3.2 - Added the ability to use separate durations for on/off and setLevel commands. (06/26/2017)
* Version 1.3.1 - Added setLevelAndTemperature method to allow webCoRE set both with a single command. (06/25/2017)
* Version 1.3.0 - Updated to use the ST Beta Asynchronous API. (06/22/17)
* Version 1.2.5 - Added the apiFlash() methiod. apiFlash(cycles=5, period=0.5, brightness1=1.0, brightness2=0.0) (06/16/2017)
* Version 1.2.4 - Added saturation:0 to setColorTemperature per LIFX's recommendation. (05/22/2017)
* Version 1.2.3 - Fixed an issue with setColor() introduced by an api change. (05/19/2017)
* Version 1.2.2 - Fixed a bug introduced in version 1.2.1. (05/18/2017)
* Version 1.2.1 - Fixed an issue with poll not sending the correct group list to LIFX, they must have changed the api. (05/18/2017)
* Version 1.2.0 - Added the ability to execute the pulse and breathe command via CoRE or webCoRE using runEffect(effect="pulse", color="blue", from_color="red", cycles=5, period=0.5). (05/13/2017)
* Version 1.1.9 - Added custom command for runEffect and the ability to use "all" as a group. (05/07/2017)
* Version 1.1.8 - Added the power meter ability. (12/15/2016)
* Version 1.1.7 - Added the ability to sync with other groups using the LIFX Sync companion app. (11/8/2016)
* Version 1.1.6 - Added support for setLevel(level, duration), setHue, setSaturation. (10/05/2016)
This file has been truncated. show original
Dany3337
(Dany)
November 2, 2017, 9:37am
3
Thanks mate. Exactly what I was looking for
1 Like