Pi-Hole has been an absolute blessing for me. The amount of insights it gives you on how much extra traffic is going over the wire is insane.
One thing that can be confusing is understanding who is connected to the network.
Typically, your router will dish out an IP address and keep it static based off the MAC address. The behavior can’t be guaranteed but I would expect most routers to not cycle it until they ran out of IP addresses. You can configure your router to enforce this too.
For example, I have my router configured so my pi-hole has
If clicking the kudos button for all your friends on Strava becomes a slight burden, try this simple script to kudos everywhere in your feed view:
This works in the latest version of Chrome and likely in the latest version of other browsers too.
Disclaimer: I still read my feed to see what my friends do. I just don’t want to wear out my mouse from clicking kudos so many times.
You could in theory automate this even further to use an IFTTT every time your friends upload a run/ride but then you’d be an uncaring soul that doesn’t actually read their friends activities. If you’ve got too many friends in your feed, consider downsizing.
Strava has an incredible data set and I wanted to demonstrate how easy it is to get set up with real time data with their Webhooks API.
First, we need to create an application.
After you fill that out, it’ll ask you to upload an image (anything will work). Once you get through that, you should have the information you need to get going:
If you check their wonderful webhooks documentation, it describes how to create a subscription via a simple
curl -X POST https://api.strava.com/api/v3/push_subscriptions \
-F client_id=CLIENT_ID \
-F client_secret=CLIENT_SECRET \
-F 'callback_url=CALLBACK_URL' \
We know what the CLIENT_ID and CLIENT_SECRET are since we created them already. The
verify_token is simply a way of authenticating that the initial handshake of the subscription actually came from Strava. Read the documentation on more about that. But what about the CALLBACK_URL. This is essentially where Strava will
POST events to when new ones are created. It would likely be something like http://my-website.com/strava/event. …