Skip to content

david-curran-90/baby-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitpod Ready-to-Code

Baby Monitor

A baby monitor written in Python that is controlled via telegram.

Features:

  • telegram commands
  • take a picture and send it to a chat
  • stream video

Requirements:

Dependencies

python3 -m pip install -r requirements.txt
sudo apt install libatlas-base-dev libjasper-dev libqtgui4 libqt4-test python3-pyqt5 python3-opencv

install

git clone https://github.com/schizoid90/baby-monitor.git

Edit the monitor.service file to point to where you've downloaded the script to

ExecStart=/usr/bin/python3 {/path/to/your/script}

Move the file into place (systemd)

sudo mv monitor.service /etc/systemd/system/monitor.service
sudo chown root:root /etc/systemd/system/monitor.service
sudo chmod +x /etc/systemd/system/monitor.service

Then you should be able to start the monitor application with systemd

sudo systemctl daemon-reload
sudo systemctl enable monitor.service
sudo systemctl start monitor.service

Usage

  • start
export TELE_APIKEY={{your_API_KEY}}
python3 telegram.py

This will start a connection to your telegram bot and start listening for commands

type /help in your chat screen to see a list of commands

Video

Video streaming is served via flask and shows a stream of jpg images on port 5000

Start by sending /video and stop with /stopvideo. It is also possible to send a POST request to the flask server running on port 5000

curl -X POST http://192.168.0.150:5000/shutdown

Picture

You can instruct the Pi to take a pciture and send it to that chat with /picture. This will also delete the picture sending so there's no need to worry about storage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages