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.
Pi-Hole-stats-tweeter/README.md

18 lines
507 B
Markdown
Raw Normal View History

2017-11-22 19:57:35 +01:00
# Pi-Hole stats tweeter
Send a daily tweet with your Pi-Hole statistics!
2017-04-27 13:33:46 +02:00
# How to use
2017-11-22 19:57:35 +01:00
1. Install Python 3
2. `pip install -U - r requirements.txt`
3. Copy config.ini.example to config.ini and adjust it
3.1. `api_path` = Path to your /admin/api.php of Pi-Hole
3.2. Tokens: Create an application [here](https://apps.twitter.com/)
4. Run it!
2017-04-27 13:33:46 +02:00
2017-05-11 10:50:18 +02:00
# Cronjob
2017-11-22 19:57:35 +01:00
This will tweet your stats at 23:59 everyday and redirects output to /dev/null:
2017-05-06 16:48:17 +02:00
2017-11-22 19:57:35 +01:00
```
59 23 * * * python3 /path/to/pihole_tweeter.py >/dev/null 2>&1
```