Hi @Traste
The HTTP Request node is the one you want to use to send http requests.
You can configure the type of the request (POST
) in the node's edit dialog.
If the only part of the url that changes is v=1
, then you could then configure the URL field of the node to be:
https://www.google-analytics.com/batch?v={{payload}}&tid=UA-XXXXX-Y&cid=555&t=event&ec=sensor_name&ea=sensor_state&ev=sensor_value
Note how I have replaced the 1
in your example with {{payload}}
. That means the node will insert the value of msg.payload
into the url before sending the request.
So whenever your value changes, set msg.payload to the value and pass it to the HTTP Request node.