Display grafana dashboard in andoid app using dynamic reqest?

  • What Grafana version and what operating system are you using?

ubuntu@arduino-automate:~$ grafana-server -v
Version 10.2.3 (commit: 1e84fede543acc892d2a2515187e545eb047f237, branch: HEAD, enterprise-commit: 3d0d1d77abb41d4f1c226d730710f8808507c697)

  • What are you trying to achieve?

I have an andorid app that is user based, and displays IoT data for each device registered to a specific user. I have MQTT data being written to InfluxDB. What I am attempting to accomplish is build dashboards for things like, Temperature, Humidity, Various Controller Status(on/off), etc.

I can successfully filter down my data using dev_keys and app_keys to filter data down from inFlux.

from(bucket: "DATA")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "Sensors")
  |> filter(fn: (r) => r["app_key"] == "658d0c848bc2c")
  |> filter(fn: (r) => r["dev_key"] == "658a3821f029c")
  |> filter(fn: (r) => r["_field"] == "HUM")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "mean")

Using this method I can get specific user / device / HUM (humidity) for example.

I honestly have no idea of where to start on this. I have looked into variables and links, but those don’t seem to be what I need. Is there a way to embed a dynamic shared dashboard?

Something like

http://localhost:3000/goto/JlioL95Sg?orgId=1& (app_key=XXXXXXXXX&dev_key=XXXXXXXX) where I can tell the dashboard what data to lookup dynamically?