You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Tanner Collin b6f9687e4d Update telegram library, add docs 1 week ago
.gitignore Initial commit 1 year ago
README.md Update telegram library, add docs 1 week ago
campcam.py Update telegram library, add docs 1 week ago
requirements.txt Update telegram library, add docs 1 week ago
secrets.py.example Update telegram library, add docs 1 week ago

README.md

Campcam

This lets my deranged friend monitor his drunken campground shenanigans from a Telegram bot.

Usage

Add @robbcampbot to your Telegram group.

Send the /campcam command.

Installation

$ sudo raspi-config  # enable the camera
$ sudo apt install python3 python3-pip python3-virtualenv
$ git clone https://git.tannercollin.com/tanner/campcam.git
$ cd campcam/
$ virtualenv -p python3 env
$ . env/bin/activate
(env) $ pip install -r requirements.txt
# edit secrets.py.example, save as secrets.py
(env) $ python campcam.py

Process Control

$ sudo apt install supervisor

Append to /etc/supervisor/supervisor.conf, replace tanner with your Linux username:

[program:campcam]
user=tanner
directory=/home/tanner/campcam
command=/home/tanner/campcam/env/bin/python -u campcam.py
stopsignal=INT
stopasgroup=true
killasgroup=true
autostart=true
autorestart=true
stderr_logfile=/var/log/campcam.log
stderr_logfile_maxbytes=10MB
stdout_logfile=/var/log/campcam.log
stdout_logfile_maxbytes=10MB
$ sudo supervisorctl reread; sudo supervisorctl update