Adding dirty telegram workaround to motioneye
This project started as a problem solver for ourself and did his job very well. Unfortunately, as things move on, development has stopped a long time ago. This is why it is officially being archived. There is a chance that it will continue to work for some people. If you like it - good. If it doesn't work - Sorry for wasting your time, feeling bad for you.
We noticed that people are really using motioneye-telegram, that is awesome. If you encounter any problems or can't find something you are searching for, feel free to start a discussion, contact us (of course) via Telegram or by adding an issue. Any ideas are welcome!
For these scripts to run, you have to ensure that your environment meets the follwing prerequisites:
/newbot
"chat": {
"id": <your chat id, eg. 321654987>,
(... some more content ...)
},
/setprivacy
/setdescription - changes the bot-description
/setabouttext - changes the bot-about-description
/setuserpic - changes the photo in your bot-profile
cd ~
sudo apt install -y arping tree git
git clone https://github.com/DaniW42/motioneye-telegram.git
cd motioneye-telegram
./install-tg.sh
to install the cronjob for presence check we have to run install-cron.sh as root (using sudo).
as we should never run unknown scripts as root, we kindly invite you to take a sneek peak at install-cron.sh before continuing. to install the cronjob (which runs bin/presencecheck.sh every minute):
sudo ./install-cron.sh
/home/pi/motioneye-telegram/bin/motion-send.sh %$ %t
%$
important because it passes the camera name to the script%t
important because it passes the camera id to the script