I would like to embed a graph that displays only the last 24 hours, but my query params are not working as expected. I can’t find a guide for correctly formatted parameters, as the docs don’t list them or link to them. I cobbled the code below from a chatgpt solution, but it resolves to a fixed view of the last 30d.
Can I get help formatting my query parameters?
(iframe tag here) src=“https://your-grafana-url/d/openweather-data?orgId=1&panelId=3from=now-24h&to=now” width=“100%” height=“400” frameborder=“0” (/iframe tag here)
-
What Grafana version and what operating system are you using?
10.0.2 -
What are you trying to achieve?
Display past 24h in react webpage iframe -
How are you trying to achieve it?
using the above iframe tag -
What happened?
it defaults to past 30d -
What did you expect to happen?
display last 24h -
Can you copy/paste the configuration(s) that you are having problems with?
above -
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
N/A -
Did you follow any online instructions? If so, what is the URL?
Share dashboards and panels | Grafana documentation
chatgpt