Get persnoal Hetzner Cloud Server's daily traffic
pip install -r requirements.txt
Install requirements.txt file that includes python-telegram-module, hcloud, schedule
<YOUR_SERVER> HetznerTrafficAlertBot % python3 main.py
Run main.py from Project main folder, which main.py file located.
{
"telegram": {
"token": "<YOUR BOT TOKEN>",
"chatID": "<YOUR CHAT ID>"
},
"hetzner": {
"token": "<YOUR HETZNER CLOUD API TOKEN"
}
}
- "telegram" Section
- Get bot_token from @Bot_Father and Get chatID from telegram.
- "hetzner" Section
- Get API Token from Hetzner Cloud.
[]: https://schedule.readthedocs.io/en/stable/examples.html "Python Schedule HELP document."