This project includes scripts sending notifications on various machine actions, such as bootup and shutdown. Scripts are oriented for my Raspberry PI and send messages to me via a Telegram bot.
- Clone this project using
git clone https://github.com/Avatcher/raspberry-notifications.git - Move cloned project into
/opt/script/telegram-notification - Define the next variables in root
.envfile:
# Telegram API token
TELEGRAM_API_TOKEN=
# ID of the chat to send notifications to.
# You can get chat id of your DMs using @getmyid_bot
TELEGRAM_CHAT_ID=- Run
./service-units/update.shwith sudo rights - Done!