How I can use PUT request via HTTP #14
-
https://github.com/SignalK/specification/blob/put-clarification/gitbook-docs/put.md The documentation means it is possible to use a PUT request via HTTP to send values to SignalK. When I try this then I get only error messages "Cannot PUT". I need a way to send data from PipeDream to SignalK. PipeDrean supports only HTTP requests for forwarding the data. WebSockets I can't use. Witch other way is possible. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
You are misinterpreting that document. PUT is not used for sending values to the server. It is used for doing things like switching on/off a light. Things that will result in some action taking place. Updating the current value is done with deltas and are normally sent via WebSockets. The only other way currently is via tcp, but that will only work if security is turned off. |
Beta Was this translation helpful? Give feedback.
-
From that document:
|
Beta Was this translation helpful? Give feedback.
-
One option would be to use the node-red plugin. There you can use an "http in" node to create an http endpoint to accept deltas. I can get you an example node-red flow for that. |
Beta Was this translation helpful? Give feedback.
-
Here's a node-red flow that supports POSTing deltas:
Then you can use:
Note that you will need an auth token with admin rights if security is on. |
Beta Was this translation helpful? Give feedback.
Here's a node-red flow that supports POSTing deltas:
Then you can use: