Skip to main content

Collection of python scripts used to automate a raspberry pi and telegram powered nanny cam.

Project description


This project is to create a telegram-enabled nanny cam using a raspberry pi and a usb webcam.

Project Installation

Run the script

Edit the /etc/default/motion file: sudo vim /etc/default/motion

# set to 'yes' to enable the motion daemon



Edit motion config file: sudo vim /etc/motion/motion.conf The option on_picture_save is commented out. Remove the comment and add the following.

on_picture_save /opt/nannypi/venv/bin/ --delete --file %f

Python Script info

This is part of a larger repo created to create a telegram-enabled nanny camera. See the main repo for full information: nannypi.

Install Python Scripts

pip install nannypi

This script will send media to telegram using cli arguments.

python -h
usage: [-h] [-f [FILE [FILE ...]]] [-t TOKEN]
                              [-c CHAT_ID] [-d]

Send media images to a Telegram Chat.

optional arguments:
  -h, --help            show this help message and exit
  -f [FILE [FILE ...]], --file [FILE [FILE ...]]
                        Files to send
  -t TOKEN, --token TOKEN
                        telegram token. Can also be specified with the env
                        variable TELEGRAM_BOT_TOKEN.
  -c CHAT_ID, --chat-id CHAT_ID
                        telegram chat id. Can also be specified with the env
                        variable TELEGRAM_CHAT_ID
  -d, --delete          delete file after sending

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nannypi, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size nannypi-0.1.2.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page