Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We are using Node-Red, InfluxDB and Grafana to store data and generate dashboards.

Note that this installation is a Raspberry Pi

Here is the link to set up all of these

Make sure that the RasberryPi and Node-Red password are changed from their default setting.

...

Installing and Running Node-Red

To install Node-Red, you can refer to the RPI Documentation or run the command below.

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

To start Node-Red run

node-red-start

Once it is up and running you can access Node-Red by going to this URL

http://127.0.0.1:1880/admin

...

Installing InfluxDB.chronograf

To install and run InfluxDB you can refer to to the installation instructions or run the commands below.

Code Block
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/os-release

echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable"
 | sudo tee /etc/apt/sources.list.d/influxdb.list

sudo apt-get update && sudo apt-get install influxdb chronograf
sudo systemctl enable influxdb.service
sudo systemctl start influxdb
sudo systemctl enable chronograf.service
sudo systemctl start chronograf

Once it is up and running you can access InfluxDB by going here

http://127.0.0.1:8888

...

Installing Grafana

Code Block
sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget
curl https://packages.grafana.com/gpg.key | sudo apt-key add -

echo "deb https://packages.grafana.com/oss/deb stable main"| sudo tee 
/etc/apt/sources.list.d/grafana.list

sudo apt-get update
sudo apt-get install grafana
sudo systemctl grafana-server.service
sudo systemctl start grafana-server

Once it is up and running you can access Grafana by going to this URL

http://127.0.0.1:3000/

login: admin

password: admin