Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 199

How can I change a value in influxDB with grafana?

$
0
0

Hello everyone, I am somewhat new to grafana and I am starting to use it in a robotic project in conjunction with influxdata, a somewhat particular use, I am looking for a way to be able to, from grafana, change the value of a field in influx data, something like the following:

The robot has two modes, automatic and manual, if in my dashboard (for example) I use a button for when clicked it will change the value of the “mode” field to manual or automatic.

I really appreciate if I can find some help with this, I have tried with several alternatives but I can not do what I need.

So that you can see how I have my data in influxdb, I share a flux where I get the current mode of the robot.

from(bucket: “COLIDBOT2”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“_measurement”] == “system_state”)
|> filter(fn: (r) => r[“_field”] == “mode”)
|> last()

In this case what I want to change is the value of “mode”, if it is in manual mode, I changed the value to automatic from grafana.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 199

Trending Articles