Hi,
I want to use my photon + InternetButton to trigger lights in my HomeAutomation.
Therefore I need do a HTTP-Request to my local server.
Via terminal the request looks like this:
curl -X PUT http://127.0.0.1:51826/characteristics --header "Content-Type:Application/json" --header "authorization: 031-45-154" --data "{ \"characteristics\": [{ \"aid\": 2, \"iid\": 9, \"value\": 0}] }"
Is it possible to make a request like this (local, PUT, headers and data) with a photon?
Thank’s in Advance,
Jan