To Run:
Ensure that you are working on the correct virtual environment and in the correct directory.
python3 babymonitor.py
On a device connected to the same network search for hostname:5000 in any browser. eg. http://192.168.1.101:5000/
hostname -l (will display the correct hostname)
Hardware:
Raspberry Pi 4
Camera - this works for me as it has a built in microphone. The Rpi camera will work but small changes to the code will be required. A separate microphone will be required.
Temperature Probe - I used one of these. It seems fairly accurate compared to a normal thermometer.
To Do:
- Improve the index.html so that the webpage looks better.
- Create a threshold for the microphone - it is very sensitive.
- Reduce the time delay of the microphone.
Guides:
Setting up opencv
Setting up the temperature probe - I used a breadboard for testing and then soldered.
Video Streaming
Setting up the microphone
Twilio Blog
Contributing:
Feel free to create pull requests to the develop branch. I will try to answer any issues that you have.
Finally:
I am not an expert and this is one of my first little projects.