From bf27481cde10c98c2ab10bd86301e0bed31e1341 Mon Sep 17 00:00:00 2001 From: Ross Drew Date: Sun, 9 Feb 2020 22:12:24 +0000 Subject: [PATCH] InxlufDB, Grafana and Python setup notes --- setup.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 setup.md diff --git a/setup.md b/setup.md new file mode 100644 index 0000000..704eb9c --- /dev/null +++ b/setup.md @@ -0,0 +1,32 @@ + +### Install InfluxDB: https://gist.github.com/boseji/bb71910d43283a1b84ab200bcce43c26 +`curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -` +`lsb_release -a` + +Get release codename + +`sudo apt install apt-transport-https` +`echo "deb https://repos.influxdata.com/debian stable" | sudo tee /etc/apt/sources.list.d/influxdb.list` +`sudo apt update` +`sudo apt-get install influxdb` + +#### start on startup +`sudo systemctl enable influxdb` + +#### start +`sudo service influxdb start` + +### Grafana: https://pimylifeup.com/raspberry-pi-grafana/ +`wget https://dl.grafana.com/oss/release/grafana_6.6.0_armhf.deb` +`sudo dpkg -i grafana_6.6.0_armhf.deb` +#### start on startup +`sudo systemctl enable grafana-server` + +#### start +`sudo systemctl start grafana-server` + +Should be running on :3000 + +### Python setup +`python3 -m venv .venv` +`.venv/bin/pip3 install -r requirements.txt`