Tutorial - Grafana rendering on Raspberry Pi

I got Grafana rendering working on RPi 4 (4Gb) running openhabian using a mix of the steps above and some more. Rendering takes approximately 5 seconds, so the webview solution is faster. But here we go:

InfluxDB and Grafana should be fairly straightforward to install in openhabian using sudo openhabian-config.
However, nodejs needed to be version 12 for yarn run build, whereas the the default repositories will install v10 and the latest will install v13. To install nodejs v12 i followed the instruction titled “Major version upgrades” here but make sure to change 13 to 12 like so:

sudo su
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
apt install nodejs
node -v

Then I followed the OP:

I cannot tell which of the following steps were necessary, but I did them as a part of trial and error:

(There was no grpc-plugin.ts to edit - no need)
Apparently yarn install was important too:

yarn install --pure-lockfile
yarn run build
cp plugin_start_linux_amd64 plugin_start_linux_arm

Now after restarting grafana, grafana renderer would complain in the log /var/log/grafana/grafana.log about executable not found, so we install chromium (1Gb):

sudo apt-get install chromium-browser

And make the renderer plugin use the chromium executable as pointed out above:

Finally:

I have likely missed something, but this is roughly how I got it working. I’m not an expert - I just put the pieces together. Hope it helps.

8 Likes