This week, I was able to successfully control the Hue Lights that were set up on the ITP floor using Terminal. Here is a video turning the Hue lamp on and off with the following Terminal commands:
On:
curl -X PUT -d'{"on": true, "hue":42900, "effect": "colorloop"}' http://172.22.151.181/api/YQWwzjYDMcgI4WlYHbl-ITkV2F17nXqcjkWusDMy/lights/1/state
Off:
curl -X PUT -d'{"on": false}' http://172.22.151.181/api/YQWwzjYDMcgI4WlYHbl-ITkV2F17nXqcjkWusDMy/lights/1/state
After successfully using Terminal to control the Hue lamps, I attempted both Arduino and p5js to make changes.
I used the Arduino HTTP client example sketch, but was unable to turn the Hue light on and off. The Serial monitor only showed that the Arduino was attempting to connect to sandbox370, but did not complete the connection.