Jun
17
2005

Internet Usage Stats

Friday, June 17, 2005 - 08:28:06 am
(Posted Under: Geek)
For quite a while I've thought it'd be really cool to have my internet usages stats on my LAN webpages.

Basically I have a local portal on my server, and each page has a left pane with stuff like my server's uptime, whether my internet connection is up and how long it's been up. For a long time I've thought it'd be cool to also have my usage stats on there. However, the only way to get the stats is via a webpage on my ISP - which would have been fine typically, however it's a secure site, with a funky authentication process. Basically meaning that a simple wget and page scrape was out of the question. I've thought about it several times, and figured it just wasn't possible to automate downloading the page.

However last night I had a play around with curl and after about 40 minutes, got it working. Freakin' sweet! An hourly cron job to get the page and parse it, and biggity bam, I now have the usages stats on my portal. Awesome! Beats the hell out of keeping a seperate browser tab open constantly refreshing the page.

I love Linux!

Post Comment



All fields are required. Email addresses will not be published, but are required for anti-spam purposas.

Switch Styles

About Style Switching.

!Weblog Index

May June 2005 Jul
SU MO TU WE TH FR SA
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

Categories

RSS FeedRSS Feed