The final script contains more than just urllib2 and BeautifulSoup: regex for parsing the time string and the logic for periodically checking the router and validating uptime, this stuff is just the usual python glue. My usage of BeautifulSoup was very basic, all I needed to do was navigate to the desired element and then extract the uptime string:įor elem in soup('td', text="Connected time so far"): Opener.open(topLevelUrl + "/logout.html") # logout or nobody else can login
Page = opener.open(topLevelUrl + "/welcome.html") # page with uptime info Handler = urllib2.HTTPBasicAuthHandler(passwordManager) PasswordManager.add_password(None, topLevelUrl, "username", "password") PasswordManager = urllib2.HTTPPasswordMgrWithDefaultRealm()
MY INTERNET UPTIME MONITOR HOW TO
See below for how to open a page that requires authentication: This complicates things slightly, but not a great deal. The usage of urllib2 was almost the simplest use case except that my router requires a username/password combination to log in. I used this to parse the page with the uptime information and extract the uptime string. The boisterously named BeautifulSoup is a html parser that allows direct navigation of the underlying html. I used this to log in to my router and then read the contents of the page containing the uptime information. Urllib2 allows you to retrieve files, pages etc from the web from within a python script. To make the script work there are two main python libraries that are necessary: urllib2 and BeautifulSoup.
This approach is sound and is exactly the implementation I ended up with. My router has a web management interface that reports the current uptime of the connection to the internet so my thinking was to write a python script to log in to the router, extract the uptime data and from that detect when I had lost internet connection. The task to achieve this seemed immediately straightforward to me. Anyway the Diablo experience enraged me enough that I decided to get some hard data about the stability of my internet connection. Was this an isolated incident or was my connection dropping consistently without my knowledge? I’ve had a few other drops in the past but not enough to really think there was a problem. But I was annoyed at my internet connection as well. Blizzard take a bunch of the blame for making the game online only even for single player (seriously, what the hell?). Understandably I was a little irritated by this. We wanted to bump your account up to Integrity so you now have a month of data and can send emails to your ISP via the dashboard if you ever want to send a quick complaint their way.So recently I was playing my hardcore character in Diablo 3 (hardcore means that death is permanent and irreversible) when my router lost internet connection and my character promptly died. It legit looks like you've been running the app since the day we posted to reddit, a true OG.
MY INTERNET UPTIME MONITOR TRIAL
To purchase a license or register your license, just click Trial Version Click to Register or Purchase License at the bottom of the NUM. With uptime monitoring, keep a check on your internal services to ensure that your website is working smoothly. Whenever your website is down, you will be notified via multiple channels instantly, thereby enabling you to bring the website back up. When the internet connection went down, the NAS could trigger a notification or queue an email. An uptime monitoring tool checks your website regularly at custom intervals for its availability.
MY INTERNET UPTIME MONITOR FULL
A license for Net Uptime Monitor removes the time limits from the trial version and lets you use the full program on one computer. I had a TP-Link router that was faulty, but one thing it did well was forward logs to my NAS. In the event they want to measure more than one, this is the easiest way to make it happen.Īgain, can't thank you enough for the support. The internet is fast when everything’s working. I honestly don't think I could have described our platform so succinctly myself! The only thing I want to add for OP is that we also offer a new feature called imUp Orgs where they can see unlimited endpoints running our app all from one dashboard. Hey jc88usus, we appreciate the kind words and shoutout! We're just normal people who got fed up with bad internet and threw together a tool to help save money - so it is pretty wild to see folks tag us on Reddit recommending our app.