This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
what is correct object to write to /api/manager/ledring with rest
with next javascript
i get
"{"status":500,"result":"invalid animation"}"
var sendstring2 = "";
var frame = [];
var frames = [];
for (var pixel = 0; pixel < 24; pixel++) {
frame.push({
r: 0, // 0 - 255
g: 255 ,// 0 - 255
b: 0 // 0 - 255
});
}
for (var i = 0; i < 10; i++) {
frames.push(frame);
}
sendstring2 = JSON.stringify(frames);
i get
"{"status":500,"result":"invalid animation"}"
This discussion has been closed.
Comments
var animation = {
result "{"status":500,"result":"invalid animation"}"
Maybe @Emile could help?