Skip to content

Instantly share code, notes, and snippets.

@dayne
Created December 4, 2019 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dayne/44140dfb4f289d8be4af3b4957080a7c to your computer and use it in GitHub Desktop.
Save dayne/44140dfb4f289d8be4af3b4957080a7c to your computer and use it in GitHub Desktop.
radar setup notes

secure pi

  • change password
  • change hostname

stuff

  • enable node-red autostart
  • install mosquitoo
  • rtl2mqtt

install docker

  • insert docker install notes here

sudo usermod pi -G docker

setup cmemory

See /boot/config.txt

https://medium.com/@petey5000/monitoring-your-home-network-with-influxdb-on-raspberry-pi-with-docker-78a23559ffea

install influxdb & auto launch it

docker run -dit --restart unless-stopped --volume=/var/influxdb:/data -p 8086:8068 hypriot/rpi-influxdb

reality was:

docker run -dit --restart unless-stopped --name=influxdb --net=host --volume=/var/influxdb:/data -p 8086:8068

configure influxdb

https://docs.influxdata.com/influxdb/v1.7/administration/authentication_and_authorization/

`docker exec -it ((ID)) /usr/bin/influx

CREATE DATABASE tempdb
SHOW DATABASES
USE tempdb

CREATE USER root WITH PASSWORD '*admin-user-pass*' WITH ALL PRIVILEGES
GRANT ALL PRIVILEGES ON tempdb TO root

CREATE USER view WITH PASSWORD '*view-user-pass*' 
GRANT READ ON tempdb TO view

telegraph setup

Note: the 95 below is from a docker ps and is first 2 digits of the innodb container

docker run --net=container:95 arm32v7/telegraf

once up and running control-c it and

docker run --rm arm32v7/telegraf telegraf config > telegraf.conf

modify as needed

docker run -d --net=container:95 -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro arm32v7/telegraf

docker run -dit --restart unless-stopped --name=telegraf --net=host \
       -v $HOME/telegraf.conf:/etc/telegraf/telegraf.conf:ro arm32v7/telegraf

grafana setup

docker run -i -p 3000:3000 --name grafana grafana/grafana

http://localhost:3000

default user/password is admin/admin you need to change that.

create persistent storage for grafana

docker volume create grafana-storage

docker run -dit --restart unless-stopped -v grafana-storage:/var/lib/grafana \
           --name grafana --net=host --volumes-from grafana-storage grafana/grafana`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment