Przy okazji udostępniania opisu API przedstawiam trzecią generację wLightBox'a. Jeszcze mniejszy niż najmniejszy na Świecie (v.1, v.2) sterownik LED RGBW współpracujący z praktycznie każdym systemem ID, umożliwiający kontrolę oświetlenia z dowolnego miejsca na Świecie (bez stałego IP, przekierownia portów, etc.) z iPhone i Androida.
API REST
GET DEVICE STATE:
method: GET
url: deviceAddress+"/api/device/state"
GET RGBW STATE:
method: GET
url: deviceAddress + "/api/rgbw/state"
SET RGBW STATE:
method: POST
url: deviceAddress + "/api/rgbw/set"
payload: {
'rgbw': {
'fadeSpeed': colorFadeSpeed (e.g. 120),
'effectID': effectId (e.g. 1),
'effectSpeed': effectSpeed (e.g. 120)
}
}
SET COLOR:
method: GET
url: deviceAddress + "/s/" + colorValue (e.g. ffff0000 for yellow, 0000ff00 for blue, etc...)