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

Support Grafana 8 or newer #32

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The resulting sitemaps have less duplication and page load times decrease becaus
## Requirements

* openHAB (OH) installation, e.g. follow: https://www.openhab.org/docs/installation/
* Grafana installation/configuration, e.g. follow: https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761
* Grafana 8 (or newer) installation/configuration, e.g. follow: https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761
* **OH and Grafana accessible via the same host/port to prevent [Same-origin policy](https://en.wikipedia.org/wiki/Same-origin_policy) violations.** E.g. setup a reverse proxy using the [configuration examples](#reverse-proxy-configuration) below.


Expand Down
2 changes: 1 addition & 1 deletion example/html/openhab-grafana.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions web-src/openhab-grafana.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var
sitemap: "default",
// Grafana URL
urlPrefix: "http://grafana:3000",
panelPath: "/dashboard-solo/db/",
renderPanelPath: "/render/dashboard-solo/db/",
panelPath: "/d-solo/",
renderPanelPath: "/render/d-solo/",
// Grafana panel parameters
from: "now-1d",
to: "now",
Expand Down
Loading