This shows you the differences between two versions of the page.
iothings:proiecte:2024:temperature_monitor [2025/01/14 12:22] alexandru.chirila01 |
iothings:proiecte:2024:temperature_monitor [2025/01/14 12:41] (current) alexandru.chirila01 |
||
---|---|---|---|
Line 13: | Line 13: | ||
- An arduino program which monitors the temperature and sends it to a Firebase database. The program runs on an ESP32 | - An arduino program which monitors the temperature and sends it to a Firebase database. The program runs on an ESP32 | ||
- A Python script which gets the temperature from the database. It can be run on any computer or even an Android phone or an iPhone (Python interpreter installation required) | - A Python script which gets the temperature from the database. It can be run on any computer or even an Android phone or an iPhone (Python interpreter installation required) | ||
+ | |||
+ | === Schematic === | ||
+ | ----- | ||
+ | |||
+ | {{:iothings:proiecte:2024:schema_2.png?600|}} | ||
=== Hardware Description === | === Hardware Description === | ||
Line 87: | Line 92: | ||
As said before, the data read from sensor is saved in Firebase and is updated in real time in the output of the python script. | As said before, the data read from sensor is saved in Firebase and is updated in real time in the output of the python script. | ||
- | === Running the Python script === | + | === Python script === |
---- | ---- | ||
- | Running the python script is as follows: | + | In order for the Python script to run, the playsound3 library needs to be installed. Here is a simple way to install it via pip: |
+ | pip install git+https://github.com/sjmikler/playsound3.git | ||
+ | |||
+ | Running the python script is done as follows: | ||
| | ||
{{:iothings:proiecte:2024:running_the_script.png?700|}} | {{:iothings:proiecte:2024:running_the_script.png?700|}} | ||
Line 96: | Line 104: | ||
https://randomnerdtutorials.com/esp32-firebase-realtime-database/ | https://randomnerdtutorials.com/esp32-firebase-realtime-database/ | ||
+ | |||
+ | https://github.com/sjmikler/playsound3 |