Home Assistant Community Add-on: Grafana

:tada: Release v1.1.0

Full Changelog

  • Adds Hassio API security role
  • Upgrades Grafana to 5.2.4
  • Adds PhantomJS
  • Fixes linting errors
  • Improves InfluxDB setup documentation (#9) (@aetjansen)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Will this be added anytime soon?
(Rendering failed - PhantomJS isn’t included in arm build per default)

Also is there any way to autologin when using Grafana as a iframe panel?

Hey Frenck,

I just noticed that after updating the Grafana add-on isnt working anymore, in the logs.

INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
s6-svwait: fatal: unable to subscribe to events for /var/run/s6/services/memcached: Operation timed out
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana
INFO: Starting Grafana

If you see the reply above yours, you’ll see that release v1.1.0 adds PhantomJS.

Anyone else seeing this ?, im getting the below trace data…it keeps looping and UI doesnt come up

Hass.io Add-on: Grafana v1.1.0
aarch64 / HassOS 1.11 / HA 0.79.0 / SU 131 / stable

INFO: Starting Grafana
TRACE: hass.config.get: env_vars|keys
TRACE: hass.config.exists: env_vars|keys
TRACE: hass.jq.exists: /data/options.json .env_vars|keys
TRACE: hass.jq: /data/options.json .env_vars|keys
TRACE: hass.config.is_secret: env_vars|keys
TRACE: hass.jq.is_string: /data/options.json .env_vars|keys
TRACE: hass.jq.is: /data/options.json .env_vars|keys string
TRACE: hass.jq: /data/options.json .env_vars|keys | if type==“string” then true else false end
TRACE: hass.jq: /data/options.json .env_vars|keys // empty
TRACE: hass.config.is_secret: env_vars|keys
TRACE: hass.jq.is_string: /data/options.json .env_vars|keys
TRACE: hass.jq.is: /data/options.json .env_vars|keys string
TRACE: hass.jq: /data/options.json .env_vars|keys | if type==“string” then true else false end
TRACE: hass.jq: /data/options.json .env_vars|keys // empty
TRACE: hass.jq.is_string: /data/options.json .env_vars|keys
TRACE: hass.jq.is: /data/options.json .env_vars|keys string
TRACE: hass.jq: /data/options.json .env_vars|keys | if type==“string” then true else false end
TRACE: hass.jq: /data/options.json .env_vars|keys // empty
INFO: Starting Grafana
TRACE: hass.config.get: env_vars|keys
TRACE: hass.config.exists: env_vars|keys
TRACE: hass.jq.exists: /data/options.json .env_vars|keys
TRACE: hass.jq: /data/options.json .env_vars|keys
TRACE: hass.config.is_secret: env_vars|keys
TRACE: hass.jq.is_string: /data/options.json .env_vars|keys
TRACE: hass.jq.is: /data/options.json .env_vars|keys string
TRACE: hass.jq: /data/options.json .env_vars|keys | if type==“string” then true else false end
TRACE: hass.jq: /data/options.json .env_vars|keys // empty
TRACE: hass.config.is_secret: env_vars|keys
TRACE: hass.jq.is_string: /data/options.json .env_vars|keys
TRACE: hass.jq.is: /data/options.json .env_vars|keys string
TRACE: hass.jq: /data/options.json .env_vars|keys | if type==“string” then true else false end
TRACE: hass.jq: /data/options.json .env_vars|keys // empty
TRACE: hass.jq.is_string: /data/options.json .env_vars|keys
TRACE: hass.jq.is: /data/options.json .env_vars|keys string
TRACE: hass.jq: /data/options.json .env_vars|keys | if type==“string” then true else false end
TRACE: hass.jq: /data/options.json .env_vars|keys // empty


Unfortunately it dosen’t work for me and I’m on v1.1.0

I also have the same issue


And in the logs:
t=2018-10-03T19:24:16+0200 lvl=eror msg=“executable not found” logger=rendering executable=/usr/share/grafana/tools/phantomjs/phantomjs
t=2018-10-03T19:24:16+0200 lvl=eror msg=“Rendering failed - PhantomJS isn’t included in arm build per default” logger=context userId=1 orgId=1 uname=admin error=“PhantomJS executable not found”

I have the same issue in last Grafana Add-On onHomeAssistant 0.80 in Hass.io enviroment.

Umberto

Thank you @frenck for the continuous work on all your add-ons. Really appreciated

I updated to version 1.1.0 hoping to be able to use the “[Direct link rendered image]” option. Unfortunately, it appears the dependency to PhantomJS isn’t fully resolved.

Do you have an update in the pipe addressing this issue?

Thanks!

1 Like

Hi,

How can I create a widget to have the number of minutes/hours that a SW or Light is ON?

Regards,
Nuno

Do you mean something like this?

If so, you can use the “natel-discrete-panel” plugin, which you can get by adding it to your plugin options under the hassio config for grafana.

Yes @Silicon_Avatar! I will try that one! Thanks!

I wondered if any of you guys could give me some pointers in the right direction!? I’ve managed to get influx db and grafana up and running with no problems! Great work on the plug-ins and the documentation was very clear too.

I’m quite new to all of this and have managed to play around with it to make some nice graphs etc. What I would really like though is for singlestat panels to tell me how long an entity is in a certain state / day. IE how long was I asleep last night? (Ideally even a bar graph with hours slept each night).

I’ve done a lot of googling, found a few other people asking similar questions but no answers. Any pointers/help?

I am currently running Hass.io on a Raspberry Pi 3B+. I am worried that the addition of InfluxDB will wear out my SD Card prematurely. I also have a Synology NAS (DS1815+) and was wondering if it would be better moving everything over to Synology or maybe just run the InfluxDB on the NAS and keep the rest running on Raspberry 3B+ if that is a possibility. Any thoughts/recommendations?

Hey there,
Addon is running great, thank you for that! But I cant export png file to display them in the Dashboard because it seems there is no phantomjs included with the addon.
Anyone knows how I can fix that?

1 Like

You can’t. PhantomJS is not available for ARM machines (e.g., Raspberry Pi) (and therefore not compiled in by Grafana). Secondly, PhantomJS has officially been archived and dead now. Grafana is working on a alternative solution.

All depended on the amount of data you process, the quality of the SD card and so on…
Using the SD less, is always a good idea though.

Well giving a Grafana tutorial in a reply is kinda much… :wink:

He is a pretty nice video: https://www.youtube.com/watch?v=cM6Sxxx1faw

:tada: Release v1.2.0

This release upgrades Grafana to 5.4.0 :tada:, which offers a lot of new functionality! Especially folks using it with MySQL will be happy to see the graphical query builder in this release! :construction_worker_man:

PhantomJS has been removed from the build. :fire: It still works on AMD64 based machines (embedded into Grafana), but on ARM-based devices (e.g., Raspberry Pi), this has, and will, never work. I’ve tried several solutions and finally decided to add a note to the known issues and limitations in the documentation. For the record, Grafana simply does not support it, and the PhantomJS project has been abandoned as well. Grafana is planning on replacing it with Grafana 6.x.

Full Changelog

  • Changed past to paste (#13) (@dayofdoom)
  • Removes phantomjs
  • Upgrades Grafana to 5.4.0
  • Corrects the env var name (#16) (@goern)
  • Limits supported machines (#14) (@HoppingMonk)
  • Adds known issue and limitation about PhantomJS

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck or https://buymeacoff.ee/frenck

1 Like

Thank you @frenck, for this great addon!

People using the Discrete plugin may want to wait before updating, as there is currently a display problem with the plugin when used with Grafana 5.4.0 as mentioned in github.