Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Grafana 8 #27

Open
BobSilent opened this issue Jun 24, 2021 · 5 comments · May be fixed by #32
Open

Add support for Grafana 8 #27

BobSilent opened this issue Jun 24, 2021 · 5 comments · May be fixed by #32

Comments

@BobSilent
Copy link

Upgrading Grafana from v7 to v8 shows only 404 graphic instead of the expected diagrams

see also: https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761/950

also an initial fix exists:
https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761/954

@HSorgYves
Copy link

For Grafana v9 it is enough to put
OHG_DEFAULTS["panelPath"] = "/d-solo/";
in openhab-grafana-user-defaults.js

@RolandRosenfeld
Copy link

For Grafana v9 it is enough to put
OHG_DEFAULTS["panelPath"] = "/d-solo/";
in openhab-grafana-user-defaults.js

I just tried to reproduce this: Upgraded from 7.5.16 to 9.2.3 and added the above line to openhab-grafana-user-defaults.js, but this still results in errors "Dashboard not found" and "Panel with id 18 not found".
So I'll have to downgrade again :-(

wborn added a commit that referenced this issue Nov 27, 2022
Fixes #27

Signed-off-by: Wouter Born <[email protected]>
@wborn wborn linked a pull request Nov 27, 2022 that will close this issue
1 task
@wborn
Copy link
Owner

wborn commented Nov 27, 2022

I've been using d-solo in the URLs too for some time now. But I haven't found time to update the documentation/screenshots for that change. 😉

You can use the changes of #32 in my branch. I just retested this after upgrading my Grafana to 9.2.6.

@RolandRosenfeld
Copy link

I just tried it out and it now works for me, but only after I changed the Webview URL from
Webview icon=none url="/static/grafana-time.html?dashboard=heizung&fromItem=Chart_Period&...
to
Webview icon=none url="/static/grafana-time.html?dashboard=Fp_OvCHMz/heizung&fromItem=Chart_Period&...
(The prefix before the dashboard name can be grabbed from Grafana and is different for every dashboard, no idea where it comes from, but it seems to be required for Grafana 9).

Thanks to your help, so I was able to upgrade Grafana from 7.5.16 to 9.2.6 now :-)

@wborn
Copy link
Owner

wborn commented Nov 27, 2022

I think I read one day that nowadays unique IDs are generated. Perhaps it also depends on your upgrade path if they have been applied to existing dashboards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants