{"id":30069374,"url":"https://github.com/wesleycharlesblake/raspberry-pi-temperature","last_synced_at":"2025-08-08T11:09:20.587Z","repository":{"id":45382765,"uuid":"83547568","full_name":"WesleyCharlesBlake/raspberry-pi-temperature","owner":"WesleyCharlesBlake","description":"OneWire temp logger on RPI, with a remote Grafana and InfluxDB stack deployed with Docker","archived":false,"fork":false,"pushed_at":"2021-12-16T13:35:32.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-02T06:01:49.857Z","etag":null,"topics":["docker","docker-compose","grafana-influxdb","onewire","python","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WesleyCharlesBlake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-01T11:33:29.000Z","updated_at":"2021-12-16T13:35:36.000Z","dependencies_parsed_at":"2022-09-19T09:31:05.203Z","dependency_job_id":null,"html_url":"https://github.com/WesleyCharlesBlake/raspberry-pi-temperature","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/WesleyCharlesBlake/raspberry-pi-temperature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCharlesBlake%2Fraspberry-pi-temperature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCharlesBlake%2Fraspberry-pi-temperature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCharlesBlake%2Fraspberry-pi-temperature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCharlesBlake%2Fraspberry-pi-temperature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WesleyCharlesBlake","download_url":"https://codeload.github.com/WesleyCharlesBlake/raspberry-pi-temperature/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesleyCharlesBlake%2Fraspberry-pi-temperature/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269410221,"owners_count":24412157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","grafana-influxdb","onewire","python","raspberry-pi"],"created_at":"2025-08-08T11:09:17.892Z","updated_at":"2025-08-08T11:09:20.574Z","avatar_url":"https://github.com/WesleyCharlesBlake.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi temp with Grafana/InfluxDB\n\nThere are two parts to this set up\n\n1. Remote server to run [Docker](https://www.docker.com) with grafana and influx containers provisioned with [docker-compose.yml](https://github.com/WesleyCharlesBlake/raspberry-pi-temperature/blob/master/docker-compose.yml). This is where the Raspberry Pi is going to push its temp stats\n2. A Raspberry Pi, running rasbian, with a [waterproof DS18B20 Digital temperature sensor](https://www.adafruit.com/product/381)\n\nOne the remote host (ie your local PC, a [DigiatlOcean Droplet](https://m.do.co/c/94369a3baff9), ensure that docker is running.\n\nthen clone this repo and run\n```docker-compose up```\n\nThis will create a grafana/influxDB stack where we will be able to see our RPi Temp stats.\n\nCopy the [logger.py](https://github.com/WesleyCharlesBlake/raspberry-pi-temperature/blob/master/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:\n\n```\ninflux_host = '192.168.0.5'\nhost = 'some-hostname'\nport = 8086\ndbname = 'dname'\nuser = 'user'\npassword = 'pass'\ntemp_sensor = '/sys/bus/w1/devices/28-0315906e8dff/w1_slave'\n``` \n\nYou can then import the [grafana-dashboard.json](https://github.com/WesleyCharlesBlake/raspberry-pi-temperature/blob/master/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 a single stat gauge for near real time temp. I have also greated some alerts when temperatures are outside of a specified range\n\nI 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. \n\nYou will need to rename some of the parameters in the dashboard for you own use case!\n\nFeel free to reach out to me if you have any issues!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleycharlesblake%2Fraspberry-pi-temperature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleycharlesblake%2Fraspberry-pi-temperature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleycharlesblake%2Fraspberry-pi-temperature/lists"}