Giter Club home page Giter Club logo

node_mcu_control_temperature's Introduction

Notice: This repository is protected with license, corporate/commercial use is restricted.

Interfacing Node MCU with LMT84LP temperature sensor and controlling Actuator

What does it do?

Following objective is achieved:

  1. For monitoring temperature sensor readings on Graphite:
No. Operation File name
1. a) Read temperature readings from LMT84 temperature sensor. read_sensor_update_server.lua
2. a) Read temperature sensor data from HTTP server (Node MCU).
b) Trigger an E-mail if event happens
read_sensor_trigger_email.py
3. a) Push Data to Graphite feed_data_tographite.sh
  1. For storing temperature readings in SQL and controlling actuator:
No. Operation File name
1. a) Read temperature readings from LMT84 temperature sensor.
b) Allow access of temperature with the help of REST APIs
c) Allow control of actuators through Rest APIs
rest_api_control.lua
2. a) Read temperature sensor data from HTTP server (Node MCU).
b) Trigger an E-mail if event happens
read_sensor_trigger_email.py
3. a) Push temperature Data to SQL (And control actuators on web app, plus plot the data) push_pull_app.cpp

How to use?

  1. Load .lua file to node MCU.
  2. Compile .py file in terminal.
  3. Do "make all" in repository folder. It will generate pull_push_app binary, which have to be started at system boot time (wrap this binary with a script kept in init.d).

Supported REST APIs

No. HTTP Method REST APIs Description
1. POST http://nodemcu/power/{PowerLevel} Sets power level of actuator.
Valid Power levels are: on, off, one, two and three.
2. GET http://nodemcu/temp?sensor={SensorNo} Gets temperature from sensor.
Valid sensor numbers for this project are: 1, 2, 3 and 4.

Block Diagram of circuit

Block Diagram

Environment

  1. Node MCU v0.9 and Python 2.7.3
  2. GCC 5.4

Demo Video

Following is a demo video, shows temperature sensor data plotted on Graphite:

IMAGE ALT TEXT HERE

node_mcu_control_temperature's People

Contributors

mishrashivendra avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.