Code Monkey home page Code Monkey logo

smartthermostat's Introduction

Smart-Thermostat

Smart-Thermostat is a simple way to control temperature and humidity in your house from your smartphone, you can control thermostats by app

Thermostat funtions:

  • Switch to manual mode for power on/off the boiler
  • Switch to automatic mode for setting the temperature that you want
  • Show humidity inside your house
  • Show outside temperature and humidity
  • Automatic reconnection if WiFi disconnect
  • Set operating time
  • Send email in case of error
  • If inside temperature is less than zero switch on boiler to prevent freezing
  • OTA Update

Getting Started

Clone the repository, create firebase account and create a database with this parameters. You can also check out my example server example server.

Now you can set FIREBASE_HOST and FIREBASE_AUTH. You can find your database secret key in firebase, in this project i used this key to connect my board with firebase, for more details look here. Now register in OpenWeatherMap to get weather data and set your key on Weather setup and set Weather Setup parameters. I use Firebase-Arduino API to dialog with nodemcu and firebase. I used this library to send email Gsender. Now you are ready to control temperature and humidity in your house.

Parameters setup

//Weather Setup
    KEY = "your open weather key";
    COUNTRY = "your country";
    STATE = "your state";   //like: US
    UNITS = "metric";       //imperial
    UTC = 2;

//Firebase connection parameters.
    FIREBASE_HOST "*************.firebaseio.com"
    FIREBASE_AUTH "****************************"

//Wifi connection parameters
    WIFI_SSID "****************"
    WIFI_PASSWORD "************"

Email[] = {
   "your email"
};

Building and component

If you want build this you can watch my wire diagram here

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

smartthermostat's People

Contributors

supercaliman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

smartthermostat's Issues

ESP32 adaptation

Hello,
I wanted to know if it was possible to easily adapt this project to the ESP32 because i found it exactly as I had thought it.

Thank you.

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.