5 ms·
Docker container to tweet at your ISP when your speed drops below threshold
I got pretty fed up with my ISP giving me substandard speeds (usually 10 to 15mbps) than what I pay for (30mbps) so I build a docker container that runs a speed test and if its below the level you set it will tweet at your ISP with the speedtest results, go to sllep for 15 minutes and run another speedtest, if the speed is above your threshold it will simply sleep for 5 min and run again.
You can see it in action on my twitter: https://twitter.com/monoxane
And of course I believe in OSS so its all available on my github: https://github.com/monoxane/docker-speedtweet
- mistat 9y agoI can only imagine the posts if people with NBN use this
- monoxane 9y agoMaybe ISPs would get around to fixing their network if hundreds or thousands of people had it running.
- mistat 9y agoIt's not quite that simple here in AU. But I hope this takes off!
- dragonwriter 9y agoMore likely they'll just update their ToS to prohibit running it.
- monoxane 9y agoThen I'll just modify it to directly input a support ticket into their system >:D
- grizzles 9y agoThis is cool. I periodically have a related idea that coincides with my isp downtime. I once had 3 straight weeks of downtime. It's an app to monitor a connection for downtime and give exact reports for when the connection is down. Then treat the data collection server as a quasi political group and use the data to push the FTC, ACCC, etc to force ISPs to give pro-rata refunds for these downtime and or substandard speed periods. Nothing would speed up a fix like lost $$.
- sigjuice 9y agoDocker is a bit of an overkill for such a tiny app IMHO
- monoxane 9y agoOh yea it entirely is but I wanted to experiment with docker as ive never used it before, you can just pull the python and use export to set the vars if you want. Edit: Docker is also an easy way to run in the background.
- stephenr 9y agoA bit of an overkill? According to the developer, this is a Python script. So, rather than running on any desktop OS with minimal resources, it requires Docker, which requires a Linux Kernel. So for the vast majority of desktop users, this will require a Virtual Machine. To send a fucking tweet. This is the perfect example of developers doing dumb things, "because devops".
- monoxane 9y agoI've added instructions for pure python if you want it. I used docker because I've never used docker.
- stephenr 9y agoI've never used a concrete trowel to make waffle batter, doesn't mean I'm going to try it.
- charsifood 9y agoA bit of an overreaction don't you think? Especially after the OP explained that he is using docker for educational purposes and even included instructions for pure python. Seems unnecessary to continue ragging on him.
- stephenr 9y ago
- stephenr 9y agoUsing fucking docker to run a python script that tweets about poor network performance is the epitome of technical irony. Although, on the upside we've finally found something that can be referenced for X in the statement "well at least Electron apps aren't as bad as $X"
- monoxane 9y agoIts one hundred and ten percent overkill, like I've said, you can just run the python if you want and I used docker because I've never used docker and wanted too
- goralph 9y agoSince you're using docker for educational purposes, just a tip. You have multiple `RUN` commands. Each command will create an individual docker layer, causing your image to take up unnecessary amounts of space. Instead you should run all of the bootstrap (apt-get, etc) under a single run, using `&&` to chain commands.
- msh 9y agoHow does it know you are not filling up the pipe yourself?
- jklein11 9y agoThis is a pretty cool hack! Next time, when you you are showing off a project you may want to consider doing a Show HN[1] 1.https://news.ycombinator.com/showhn.html https://news.ycombinator.com/showhn.html