Skip to content

C4NU/Hetzner-Traffic-Alert-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hetzner Server Traffic Alert Bot

Description

Get persnoal Hetzner Cloud Server's daily traffic

Install & Run

Install requirements.txt

pip install -r requirements.txt

Install requirements.txt file that includes python-telegram-module, hcloud, schedule

Run main.py

<YOUR_SERVER> HetznerTrafficAlertBot % python3 main.py

Run main.py from Project main folder, which main.py file located.

HOW TO USE

Edit keys.json

{
	"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.

ADDITIONAL DOCUMENTS TO READ

Schedule

[]: https://schedule.readthedocs.io/en/stable/examples.html "Python Schedule HELP document."

Releases

No releases published

Packages

No packages published

Languages