You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Akamaru b0c5905bcc
Merge pull request #1 from Brawl345/master
5 years ago
.gitignore Initial commit 5 years ago
README.md pip -> pip3 5 years ago
config.ini.example Initial commit 5 years ago
pihole_tweeter.py Initial commit 5 years ago
requirements.txt Initial commit 5 years ago

README.md

Pi-Hole stats tweeter

Send a daily tweet with your Pi-Hole statistics!

How to use

  1. Install Python 3
  2. pip3 install -U -r requirements.txt
  3. Copy config.ini.example to config.ini and adjust it
    • api_path = Path to your /admin/api.php of Pi-Hole
    • Tokens: Create an application here
  4. Run it!

Cronjob

This will tweet your stats at 23:59 everyday and redirects output to /dev/null:

59 23 * * * python3 /path/to/pihole_tweeter.py >/dev/null 2>&1