This repository has been archived on 2023-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
mwoolweaver 88590c126e reset
2019-04-15 23:06:27 -05:00
.gitignore Initial commit 2017-11-22 19:57:35 +01:00
config.ini.example Initial commit 2017-11-22 19:57:35 +01:00
pihole_tweeter.py reset 2019-04-15 23:06:27 -05:00
README.md pip -> pip3 2017-11-22 20:05:33 +01:00
requirements.txt Initial commit 2017-11-22 19:57:35 +01:00

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