Code Monkey home page Code Monkey logo

raspberry-pi-temperature's Introduction

Raspberry Pi temp with Grafana/InfluxDB

There are two parts to this set up

  1. Remote server to run Docker with grafana and influx containers provisioned with docker-compose.yml. This is where the Raspberry Pi is going to push its temp stats
  2. A Raspberry Pi, running rasbian, with a waterproof DS18B20 Digital temperature sensor

One the remote host (ie your local PC, a DigiatlOcean Droplet, ensure that docker is running.

then clone this repo and run docker-compose up

This will create a grafana/influxDB stack where we will be able to see our RPi Temp stats.

Copy the logger.py script on to the Raspberry Pi host. You may need to change the following variables, to match what you set for the grafana/influxdb stack:

influx_host = '192.168.0.5'
host = 'some-hostname'
port = 8086
dbname = 'dname'
user = 'user'
password = 'pass'
temp_sensor = '/sys/bus/w1/devices/28-0315906e8dff/w1_slave'

You can then import the grafana-dashboard.json from your grafana instance, and be able see the temp stats from your RPi! The dashboard is simple with a time graph, and s single stat gauge for near real time temp. I have also greated some alerts when temperatures are outside of a specified range

I use this in my home brewing rig, to monitor mash temperatures, and alert me when mash temp has deviated too much from the desired mash mash temperature.

You will need to rename some of the parameters in the dashboard for you own use case!

Feel free to reach out to me if you have any issues!

raspberry-pi-temperature's People

Contributors

wesleycharlesblake avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.