Hello! New to the group and LIFX. So far I am pretty happy with the product, a few buggy things but I will save that for another post later, no big deal…
So I created (I am not a developer, this is my first discussion about developing anything) an API that works perfect!!
Now what?
I am trying to create a Do Button widget that breaths between two colors, from current, then goes back to current when done breathing.
My API works, but my advances syntax does not for the Do Recipe.
Method POST
Request Headers
Accept: /
Authorization: Bearer [TOKEN REMOVED - DAN]
accept-encoding: gzip
content-type: application/json
content-length: 78
URL https://api.lifx.com/v1/lights/label:Living Room Lamp/effects/breathe
Request Data
{
“color”: “red”,
“from_color”: “blue”,
“cycles”: 6,
“persist”: false,
“power_on”: true
}
Status 207 Multi-Status
Response Headers
server: cloudflare-nginx
date: Wed, 02 Dec 2015 04:10:12 GMT
content-type: application/json
transfer-encoding: chunked
connection: close
set-cookie: __xxxxxx; expires=Thu, 01-Dec-16 04:10:11 GMT; path=/; domain=.lifx.com; HttpOnly
lifx-account-uuid: xxxxxxx
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
x-ratelimit-reset: 1449029460
vary: Accept-Encoding
content-encoding: gzip
cf-ray: 24e42e3b05fe0f33-IAD
Is it possible to create the widget button I want? Here is what I am posting in the advance options of the Breathe 'Do Button".
Help!!!
TIA