Recipe Change - Using HTTP
  • 29 Nov 2024
  • PDF

Recipe Change - Using HTTP

  • PDF

Article summary

The camera can work with Node-RED and an HTTP endpoint to request a recipe change. Since the port is open, other devices can also request a recipe change from the camera. Below is a flow that demonstrates how the function operates:



You can download and import this flow using the JSON file below:

RecipeChangeV18
3.17 KB


Inject Node: This block is an inject setup where we send the recipe number. It is possible to open this port for TCP or MQTT to send a message from another device.

Note

The recipe ID is found in the URL.

image(113)


Function Node: This function sets up the correct syntax for the message. It takes the recipe number from the Inject node and formats it properly for the POST request.

HTTP Request Node: Set up the endpoint where the message will be sent.

Debug Nodes: These nodes are used to monitor the message flow. If the message is not received correctly, there will be a bad response.

Note

Example of a bad response:

image(115)


Was this article helpful?

ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence