Update README.md

This commit is contained in:
Michael Woolweaver 2019-04-16 02:04:59 -05:00 committed by GitHub
parent e039dd8caf
commit 45c65a19b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

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