Hello,
I have been playing around with webhook and quickly found its limitations. Although it’s a very useful feature because it allows you to relay our data to other platforms, it can be significantly improved in the following manner:
- Allow to use dynamic data without “” , i.e. {pin_value}. This is a problem when the cloud platform we are sending data is expecting non string data values like integers or float. Although we could create maybe complicated edge functions to convert “{pin_value}” to a float on the other side it would be much more simple to send them already without “”.
{ "var1 float": {pin_value},
"var 2 string": "{pin_value}"
}
- Allow different data streams to be sent on same webhook trigger. Sometimes we need to relay several virtual pins last values in the same webhook , for example when sending data to an external SQL database we need to add a row with several data on it, not just one. Sending a unique webhook per datastream change would create a lot of traffic and complication on the other side.
{ "var1 float": {pin1_value},
"var 2 string": "{pin2_value}"
}
I believe it would give us a much more flexible and powerful webhook if we add this features because it would allow us to connect to automation web apps like Zappier or pipedream and create very cool automations by sending data as they are.
Regards