Cron job and english translation. #2

Closed
mwoolweaver wants to merge 30 commits from cron-job into master
Showing only changes of commit 45c65a19b4 - Show all commits

View File

@ -2,16 +2,8 @@
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](https://apps.twitter.com/)
4. Run it!
1. Create an application [here](https://apps.twitter.com/). You will need the tokens for this to work
# Cronjob
This will tweet your stats at 23:59 everyday and redirects output to /dev/null:
2. curl -sSL https://raw.githubusercontent.com/mwoolweaver/Pi-Hole-stats-tweeter/master/install.sh | bash
```
59 23 * * * python3 /path/to/pihole_tweeter.py >/dev/null 2>&1
```
the install script will ask if you want to install as a cronjob