Hi all,
I'm trying to modify my light configuration using the reef-pi HTTP API. I am able to authenticate and read data as shown here. The trouble starts when I try to use the command
to modify the light start time. The command executes with no apparent error, but when I check the reef-pi GUI the light start time has not changed. Additionally, when I check the headers.txt file it says HTTP/1.1 405 Method Not Allowed. My HTTP knowledge is rather limited, but I've gathered this means that the server accepts the POST method but it is not supported by the api/lights resource.
Am I doing something wrong or is there a bug?
I'm trying to modify my light configuration using the reef-pi HTTP API. I am able to authenticate and read data as shown here. The trouble starts when I try to use the command
Code:
curl -X POST -b cookie.txt -d '{"id": "11", "channels":{"0":{"profile":{"config":{"start":"13:00:00"}}}}}' -D headers.txt http://reefpi.local/api/lights
to modify the light start time. The command executes with no apparent error, but when I check the reef-pi GUI the light start time has not changed. Additionally, when I check the headers.txt file it says HTTP/1.1 405 Method Not Allowed. My HTTP knowledge is rather limited, but I've gathered this means that the server accepts the POST method but it is not supported by the api/lights resource.
Am I doing something wrong or is there a bug?