mikemucc / screenlogic-api

API to control a pentair Screenlogic. Built on top of parnic's screenlogic-node library.
Apache License 2.0
9 stars 2 forks source link

Can't start the pool by PUT command #19

Closed ivanvach closed 1 year ago

ivanvach commented 1 year ago

Trying this using "Postman" software for Windows 10

HTTP PUT

192.168.1.149:3000/api/pool/on

Payload: none

Getting the response below. Also tried putting payload=1 and also 192.168.1.149:3000/api/pool without the suffix on and put "on" as payload. Every time same response

<!DOCTYPE html>

Error
Cannot POST /api/pool/on
mikemucc commented 1 year ago

It looks like you're doing a POST not a PUT from the last line of the output you pasted above.

$ curl -X PUT localhost:3000/api/pool/off
{
  "body": "pool",
  "action": "off",
  "sent": true
}
ivanvach commented 1 year ago

Oooops my bad. It works with put