Giter Site home page Giter Site logo

iot-smart-temperature-switch-with-alexa-nodemcu's Introduction

IOT-Temperature-Switch-With-Alexa-NodeMcu

Control a relay switch based on temperature and humidity

In This project you will be able to control a device with Alexa skills that uses temperature and humidity based trigger. You can set a trigger to turn on or off a device based on your preset temperature or humidity trigger.

  1. Download this project and unzip.

  2. Deploy this project to Heroku by clicking this button Deploy

  3. Copy following folders to "C:\Program Files (x86)\Arduino\libraries"

    arduinoWebSockets

    ArduinoJson

    DHT

  4. Update and flash your NudeMcu with "Temperature-Humidity-Switch/Temperature-Humidity-Switch.ino"

  5. Create an Alexa skills and add Heroku app URL as an end-point

  6. Test and enjoy.

iot-smart-temperature-switch-with-alexa-nodemcu's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iot-smart-temperature-switch-with-alexa-nodemcu's Issues

Heroku problem

Good day Mr. Nassir,
I wanted to try the way like you have done with Sonoff switch and Alexa but I am not success. And seems to be this is because of Heroku. First fail was because of Python. Heroku was telling me that app is using old unsuported Python. Then I cloned your repository on github to fix that and tried launch app on Heroku once again. Generaly it looks OK but my sonof refuses to connect:
Current humidity = 50.00% temperature = 22.00C 71.60F
Disconnected!
Connecting...
Current humidity = 50.00% temperature = 22.00C 71.60F
Disconnected!
Connecting...
Disconnected!
Connecting...
Current humidity = 49.00% temperature = 23.00C 73.40F
Current humidity = 48.00% temperature = 23.00C 73.40F
Disconnected!
Connecting...
Current humidity = 49.00% temperature = 22.00C 71.60F
Disconnected!
Connecting...
And that is forever.
My setting in sketch:
char host[] = "smartempswitch.herokuapp.com// "; //- better your Heroku domain name like "smarttempswitch.herokuapp.com"
Might be you have some thoughts about that.
Thank you.
Barcors

Heroku didn't accept the code

hi, i'm trying to make this project, but in Heroku show this message:
Build app Hide build log
There was an issue building your app. This can mean your app.json's project is not a valid Heroku application. Please ensure your app is deployable to Heroku and try again.

-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
! Requested runtime (python-3.6.3) is not available for this stack (heroku-20).
! Aborting. More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app.
! Push failed

can u help me??

Issues with skill in English (US)

I done everything, but during certification appears the following issues:
Issues with skill in English (US)
The skill does not respond to one or more launch requests from Alexa. Please note that the skill should handle all launch requests from Alexa gracefully without an error response from the endpoint.

The skill must respond without error when the example phrases associated with the skill are used. One or more of the example phrases returned an error response when tested. Please make sure that the example phrases do not provide users with error responses

Something not working

Hey,
I wanted to try it out, but something is not working how it should be. When I try to create an Heroku app it tells me this :

-----> Python app detected
! The latest version of Python 3 is python-3.6.3 (you are using python-3.6.1, which is unsupported).
! We recommend upgrading by specifying the latest version (python-3.6.3).
Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.6.1

But in the Code, I wrote it like so, so it should be ok?

char host[] = "smarthomesensor.herokuapp.com";

And when I then run the code it just gives me this :

Disconnected!
Connecting...
Disconnected!
Connecting...
Disconnected!
Connecting...
Disconnected!
Connecting...

And when I try it with Alexa, she keeps saying that there is something wrong with the Answer of the Skill.
I would really appreciate if you could help me.

I just saw that the Amazon Consol tells me an HTTP Error ("HTTP 503 : Service Unavailable") so does that mean there is something wrong with Heroku ?

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.