Skip to content

About

IOT class

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

IOT_SMART_HOME

Project by

Shon Itay Bar, Valeri Podvisozky

How to Start: 1.Open CMD from the directory of the project 2.Run the next command : "python data_manager.py" To start the main application 3.Open another CMD for the sensor 4.Run the next command : "python single_sensor.py" To start the sensor application #note: You can run multiple instances of the Sensor if you want to display multiple rooms

5.In the data_manager application press "Connect" buttom to connect to the broker you should see the next three lines

[2026-01-29 11:29:59] Connecting to MQTT broker... [2026-01-29 11:29:59] Subscribed to: pr/home/# [2026-01-29 11:30:00] MQTT pr/home/relay_123_YY/cmndpr/home/relay_123_YY/cmndpr/home/relay_123_YY/cmndpr/home/relay_123_YY/cmndpr/home/relay_123_YY/cmnd: {"value":1}

if the connection was succesful

6.In the single_sensor choose what room you want the sensor to be in.(the default is "Living Room") 7.In the single_sensor press the "Connect" buttom for the sensor to connect to the broker 8.In the single_sensor press the "Start Publishing" for the sensor to send random data to the broker. 9.In the data_manager you can confirm the data beign transited as the numbers keeps changing on the UI #note: you need to be on the room you choose to send the data to see the data comming in

Notes: 1.To change the threshhold of the data received to see an Alert change the values of the "Temp\Hun\Lux THR" 2.In the single_sensor you can press the "Stop Publishing" if you want to stop the data transaction 3.In the single_sensor you can change the Base value of the "Temperature\Humidity\Light" so the data sent will be near the Base value. 4.In the data_manager you can press "History" to see the data that was received and stored in the DataBase of the application. 5.In the data_manager you can press "Hide Console" to hide the console from the UI.

About

IOT class

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages