RaspberryBackup icon indicating copy to clipboard operation
RaspberryBackup copied to clipboard

Send notification to Telegram

Open GeyerA opened this issue 4 years ago • 3 comments

https://github.com/lkn94/RaspberryBackup/blob/ca9807a5e52771c4d9a65dfb710a0785aa1d0f3b/backup.sh#L24

Hi, I am following your repository and thought might be a good idea to offer to send to Telegram too. So the user got both options. We ususally do have the Telegram already for home automation.. Just a proposal. Regards, Andreas

GeyerA avatar Aug 09 '21 06:08 GeyerA

Thanks for your idea. It might be a good idea to send a telegram notification especially for home automation users. Currently I'm not sure if I got enough time to change the script. But feel free to integrate this function.

lkn94 avatar Aug 25 '21 11:08 lkn94

Hi, already done and confirm working. If you want, you can add to your code. MESSAGE="Monthly backup PIWeewx done" curl -s -X POST https://api.telegram.org/PUTYOURBOTHERE/sendMessage -d text="$MESSAGE" -d chat_id=PUTYOURCHATIDHERE

GeyerA avatar Aug 25 '21 14:08 GeyerA

Thanks for your changes!

lkn94 avatar Aug 29 '21 12:08 lkn94