Skip to content
Raspberry Weather code for DS18B20
Python Shell
Branch: master
Clone or download
Pull request Compare This branch is 23 commits ahead of peterkodermac:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
venv
.gitignore
README.md
contants.py
getInfo.py
requirements.txt
test_get_outside_temp.py
tests.py

README.md

Raspberry-Weather-DS18B20

=========================

Forked from https://github.com/peterkodermac/Raspberry-Weather-DS18B20

This python script uses two sensors and a Raspberry Pi to read temperature, humidity, as well as readings from openweathermap.org, and stores readings in Elasticsearch. For full write-up, visit alonsoarteaga.me.

Important env variables to set up

  • ES_URL: location of elasticsearch. I.e: http://test.com[:portNum for ES, 9200]
  • ES_INDEX: name of ES index. i.e: rpi_temps
  • OW_API_KEY: api key for openweathermaps.org

TODOS:

  • Include outside weather temp and; add test.
  • Fix dht22 sensor crash issue wiring error fixes
  • Find better solution for cronjob env variables fixed by writing vars in /etc/environment
  • Mock test api call to ES
  • Set up docker
  • Set up CI/CD
  • Set up automatic deployment to pi / git webhooks
  • Write better documentation/ include sources I used
  • Rewrite to golang
  • Find weatherproof/outdoor assembly for the pi to sit outside
  • Add a try/catch to check if OW_API_KEY is empty to skip this step if the value is empty
You can’t perform that action at this time.