Measure temperature and humidity with Micropython and ESP8266.
Clone or download
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.
tests
.gitignore
README.md
config.py
main.py
sensors.py
utils.py

README.md

Record temperature and humidity using Micropython and send data to a remote logging service via HTTP/GET.

Supported sensors:

  • DHT11
  • DHT22
  • DS18B20

Supported logging services:

  • thingspeak
  • phant / data.sparkfun.com
  • arbitrary HTTP API via configuration

Tested only using Wemos D1 mini ESP8266, but should be easily portable for similar hardware.

Install

Install micropython firmware, copy all *.py files (e.g. using mpfshell) and configure as described below.

Configuration

To create a config.json file run on MicroPython REPL prompt (e.g via piccoom):

import config
config.setup()

To rewrite the configuration file, reset the ESP8266, interrupt the running main.py by CTRL+C and then follow above instructions.