https://github.com/codetheweb/interpain
Automatically complain to your ISP (Comcast, CenturyLink, etc) about your internet speed and/or log to ThingSpeak
https://github.com/codetheweb/interpain
Last synced: 29 days ago
JSON representation
Automatically complain to your ISP (Comcast, CenturyLink, etc) about your internet speed and/or log to ThingSpeak
- Host: GitHub
- URL: https://github.com/codetheweb/interpain
- Owner: codetheweb
- License: mit
- Created: 2016-08-12T21:06:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T01:24:28.000Z (over 8 years ago)
- Last Synced: 2025-02-05T17:38:36.646Z (3 months ago)
- Language: Python
- Homepage: https://thingspeak.com/channels/144852
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# interpain
Automatically complain to your ISP (Comcast, CenturyLink, etc) about your internet speed and/or automatically log it to ThingSpeak.
More polished version of [pastebin.com/WMEh802V](http://pastebin.com/WMEh802V).
## Install
It's super easy to get started. Clone this repository in `pi`'s home folder:
```
git clone https://github.com/codetheweb/interpain.git
```Then
```
cd interpain
sh setup
```
Add ThingSpeak and/or Twitter credentials (see below section) to `main.py` with `nano main.py` (don't forget to update the speeds you pay for too!). If you don't want to use Twitter, set the `threshold` to `targetDownload`.
Then add a line to crontab with `crontab -e` that looks something like:```
*/30 * * * * env -i sh /home/pi/interpain/run.sh >/dev/null 2>&1
```This runs the script every half hour.
## Credentials
*Both* ThingSpeak and Twitter credentials are optional. (Although your Raspberry Pi isn't going to do much if you don't fill in either.)
The easiest setup would be an automated logging device by just pasting in the required keys for ThingSpeak.
### ThingSpeak
The keys for ThingSpeak are easiest to obtain. Go to [thingspeak.com](http://thingspeak.com) and sign up for an account. Create a channel, marking the fields as follows:* Field1: '**Ping (ms)**'
* Field2: '**Download (MB/s)**'
* Field3: '**Upload (MB/s)**'
* URL: if you're in a giving mood, you can link to this repo: github.com/codetheweb/interpain
Twitter is a bit tricker. You can either create a new account just for interpain or use your personal account. Either way, go to [apps.twitter.com](https://apps.twitter.com) and create a new app get the keys.