A Grafana Panel that can communicate with SolarThing REST
- Communicate with SolarThing REST
- See below
- Install
nvm
on your machine- If you're having trouble installing or using, make sure to use
bash
or a common shell - Run
nvm install 14.0 && nvm use 14.0 && nvm alias default 14.0
- I don't recommend versions other than 14. I tested 16, and couldn't get it to work
- WebStorm or your IDE may default to using
/usr/bin/node
, so make sure to change it if you need to- "Language & Frameworks" -> "Node.js and NPM"
- If you're having trouble installing or using, make sure to use
- Running Grafana in docker: With your current working directory as this folder,
docker run -d -p 3000:3000 -v "$(pwd)":/var/lib/grafana/plugins/solarthing-grafana --name=grafana-solarthing-grafana grafana/grafana:7.0.0
yarn dev
docker restart grafana-solarthing-grafana
- Password admin/admin
- Note that data is completely purged if you recreate the container
This template is a starting point for building Grafana Panel Plugins in Grafana 7.0+
Panels are the building blocks of Grafana. They allow you to visualize data in different ways. While Grafana has several types of panels already built-in, you can also build your own panel, to add support for other visualizations.
For more information about panels, refer to the documentation on Panels
-
Install dependencies
yarn install
-
Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
-
Build plugin in production mode
yarn build
- Build a panel plugin tutorial
- Grafana documentation
- Grafana Tutorials - Grafana Tutorials are step-by-step guides that help you make the most of Grafana
- Grafana UI Library - UI components to help you build interfaces using Grafana Design System