Angular7 | NodeJS | Arduino |
---|
SmartHome is a web application that was created to display current temperature and humidity in house.
Arduino Uno connected with esp8266 in master-slave relation sending data to API. API stores data in data base and angular app make request via HTTP protocol to get data and display it in chart or table form.
Application provides alarms after logginig in. If we turn on alarm arduino gets armed and after getting closer to device it will alarm. Alarms status is shown in navbar and depends on status it is green or red.
https://sleepy-garden-23787.herokuapp.com
Application was written in Agular 7. It uses HTTP protocol to communicate with API. Application make GET request to obtain data and store it. Then after choosing date it seperate the appropriate one and then put it in HTML code via string interpolation.
To arm the alarm, user needs to loggin. After loggin API returns token which is used to make PUT request and update status of alarm. Received token is put in the header of request. On success boolean flag is changing status and view in browser updates.
Application uses open source ChartJS to display data in chart form.
https://dkrakowczyk.github.io/smartHome/
API uses JWT (JSON Web Token) authentication to secure from unwelcome requests.
Mateusz Wolski - Angular app Dawid Krakowczyk - NodeJS API Konrad Wasiak - Arduino device