GithubHelp home page GithubHelp logo

esp8266mqttdht22's Introduction

ESP8266 Publish Temperature / Humidity Sensor Data to MQTT

Updating my code for use with AWS IoT Core

This was developed on an Adafruit Huzzah ESP8266 Wifi.

  • Periodically check Temperature and Humidity Settings
  • Maintain a Wifi Connection to your network
  • Maintain MQTT Connection and Publish using your designated queues

Hardware

Software

This project assumes you already have an MQTT server up and running on your network. Testing was done with Mosquitto MQTT running on Ubuntu.

I currently use this with OpenHAB open-source home automation server. OpenHAB can be configured to subscribe to a Mosquitto message queue and use rrdtool to log the data over time. I can move this sensor around the house, and track the heating / cooling. This was useful to figure out how early to have the digital thermostat in our bedroom turn on in order to hit a target temperature when we wake up. Devices like the Nest will do this automatically for you, but this is a lot cheaper. :)

You may recognize this chart style if you're familiar with RRDTool. That's what OpenHAB is using under the hood to store this. The chart says bedroom humidity, but this is me measuring the cellar where the furnace is located. So you'll notice when the furnace is running the temperature rises and the humidity drops.

OpenHAB Chart

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.