Telegram::CamshotBot - Telegram bot that send you a snapshot from IP camera using ffmpeg (don't forget to install it!)
version 0.01
To get list of all environment variables:
grep -o -P "CAMSHOTBOT_\w+" lib/Telegram/CamshotBot.pm | sort -u
List (useful for Docker):
CAMSHOTBOT_CONFIG CAMSHOTBOT_DOMAIN CAMSHOTBOT_FFMPEG_DOCKER CAMSHOTBOT_LAST_SHOT_FILENAME CAMSHOTBOT_POLLING CAMSHOTBOT_STREAM_URL CAMSHOTBOT_TELEGRAM_API_TOKEN
To check which variables are set you can run
printenv | grep CAMSHOTBOT_* | sort -u
Docker way
wget https://raw.githubusercontent.com/pavelsr/camshotbot/master/docker-compose.yml.example > docker-compose.yml
then edit CAMSHOTBOT_* variables
docker-compose up
Standalone way
1) Place .camshotbot file in home user directory or camshotbot.conf.json in directory from what you will run camshotbot Add all essential variables: telegram_api_token, stream_url, bot_domain
2) As alternative to (1) you can set all CAMSHOTBOT_* environment variables (see ENVIRONMENT VARIABLES section)
3) run
camshotbot daemon
If you want to run unit test without dzil test
prove -l -v t or perl -Ilib
Pavel Serikov <pavelsr@cpan.org>
This software is copyright (c) 2017 by Pavel Serikov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Telegram::CamshotBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Telegram::CamshotBot
CPAN shell
perl -MCPAN -e shell install Telegram::CamshotBot
For more information on module installation, please visit the detailed CPAN module installation guide.