Coder Social home page Coder Social logo

arduinotemps2mqtt's Introduction

arduinoTemps2mqtt

ESP8266 version here; https://github.com/matbor/esp8266Temps2mqtt

Arduino sketch, grab Onewire Temperature's and publish to a mqtt broker.

Setup

  • Change MAC address (if you have multiple Adruinos)
  • Change DHCP to static IP address if needed.
  • Change MQTT broker, mine is setup as mqtt.localdomain
  • The Topic you are publishing to is under charTopic[] If you do change it, the three lines below need to be modified to tell it where to start adding the HEX ROM value of the dalas onewire's (the XXXXXXX part).
  • PubSubClient Library

Planned improvements, let me know if you want to do this.

  • Specify username/password support, handy for remote sensors (TLS isn't supported),
  • Tidy up the topic naming
  • Realtime Clock, publish time stamp with temp to JSON topic as well
  • Or get the time from a topic you subscribe to

NOTE: My arduino I am using is an etherten from Freetronics.

Thanks for the Help,

acknowledgements..

Initial topic issues

OneWire DS18S20, DS18B20, DS1822 Temperature Example

The DallasTemperature library can do all this work for you!

And Jarek Sinicki for the help with multiple onewire pins.

arduinotemps2mqtt's People

Contributors

matbor avatar

Watchers

James Cloos 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.