I am trying to get and parse out the feedback from my Philipse Hue system. I have not tried Postman,
So I can do this command from a web browser and get data back,
http:[slash,slash]192.168.1.18:80/api/Y1Vpd5qwJVnjsRIdxFThJR0jxcrnZaEvrQVe0NYM/lights
I have tried to do an "info" dump and received no information. I did this by removing,
var bright = info.split('"3":\{"state":\{"on":true,"bri":').pop().split(',"alert"')[0];
and changed the last line to be
CF.widget("Hue_Level").label = info;
Right now I am not worried about parsing the data, work on that later.
This is an example I use in another program "Tablet Based" interface to get the feedback,
GET /api/Y1Vpd5qwJVnjsRIdxFThJR0jxcrnZaEvrQVe0NYM/lights HTTP/1.1\x0D\x0AHOST:{Set Hue IP}:80\x0D\x0A\x0D\x0A
Also I do not know where and how to do a "system print" for rdata..
I do have a close socket at the end, it just didn't realized it wasn't in the copy and paste.
Last edited by mpg7321 on March 6, 2024 13:13.