Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

mystogan99/mqtt-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

mqtt-plugin

A plugin for Grafana to send data over to flask server then to mqtt broker and vice-versa. The react plugin hits the flask server(http request with AXIOS) with state of the device and the server sends the data to mqtt broker. Using flask server is optional you can specify any end point to send the data.

Setup

  • Run flask server to send all commands directly to flask.

Install

foo@bar:~$ cd Grafana-mqtt-plugin/React_plugin
foo@bar:~$ sudo yarn install / sudo npm install
foo@bar:~$ sudo yarn build / sudo npm run build
foo@bar:~$ sudo systemctl restart grafana-server.service