VolkovLabs / business-forms

Insert, update application data, and modify configuration for @grafana
https://docs.volkovlabs.io
Apache License 2.0
83 stars 11 forks source link

business forms submit button on click publish MQTT message #476

Closed tankienleong closed 2 weeks ago

tankienleong commented 2 weeks ago

Publishing data directly to an MQTT broker is often essential for executing basic control functions, especially in home automation and IoT scenarios where an HTTP API might not be available.

Is this achievable through the Business Form panel?

mikhail-vl commented 2 weeks ago

@tankienleong Business Forms can send update request to any Grafana Data source or REST API.

Grafana has MQTT data source, but I don't think it supports executing commands: https://grafana.com/grafana/plugins/grafana-mqtt-datasource/

Most probably, you should use custom REST API server like Node-RED for this. Please let us know how you implemented it.

mikhail-vl commented 2 weeks ago

We have multiple REST API server implementations: https://volkovlabs.io/plugins/business-forms/servers/