<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>Bend in the Weather (Entries tagged as firefox)</title>
    <link>http://matt.bottrell.com.au/</link>
    <description>A blog about Linux, Life and the 'Net</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:matt@bottrell.com.au" />
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 14 Oct 2009 11:14:14 GMT</pubDate>

    <image>
        <url>http://matt.bottrell.com.au/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Bend in the Weather - A blog about Linux, Life and the 'Net</title>
        <link>http://matt.bottrell.com.au/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Internet Usage Monitoring - conky style!</title>
    <link>http://matt.bottrell.com.au/archives/305-Internet-Usage-Monitoring-conky-style!.html</link>
            <category>Coding</category>
            <category>Linux</category>
    
    <comments>http://matt.bottrell.com.au/archives/305-Internet-Usage-Monitoring-conky-style!.html#comments</comments>
    <wfw:comment>http://matt.bottrell.com.au/wfwcomment.php?cid=305</wfw:comment>

    <slash:comments>18</slash:comments>
    <wfw:commentRss>http://matt.bottrell.com.au/rss.php?version=2.0&amp;type=comments&amp;cid=305</wfw:commentRss>
    

    <author>mbottrell@gmail.com (Matt)</author>
    <content:encoded>
    &lt;table&gt;&lt;tr valign=&quot;top&quot;&gt;&lt;td&gt;&lt;img src=&quot;http://matt.bottrell.com.au/uploads/Usage.gif&quot; title=&quot;ISP Usage meter using Conky&quot; alt=&quot;ISP Usage meter using Conky&quot;/&gt;&lt;/td&gt;&lt;td&gt;In Australia Internet users are limited to the amount they may download.   Each Internet Service plan normally involves a speed and download limit.  Failing to keep an eye on this and exceed your limit normally effects the user in question either by:&lt;ol&gt;&lt;li&gt;Paying exorbitant excess fees  that can be as much as $150/GB!&lt;/li&gt;&lt;li&gt;Being &#039;throttled&#039; by your ISP, in effect turning your lovely xDSL/Cable connection into something slower than dial-up.&lt;/li&gt;&lt;/ol&gt;As you can image, most people wish to avoid these.  As a result ISPs provide a usage meter normally on their site, however you have to remember to view it, which unless you&#039;re diligent in doing so, you can still run over your quota.&lt;br /&gt;
&lt;br /&gt;
Previously I&#039;ve relied on the fabulous Firefox extension &lt;a href=&quot;http://netusage.iau5.com/&quot;&gt;NetUsage&lt;/a&gt;, however this meant you had to have a browser open.  This isn&#039;t always the case, and I found it frustrating to have to load a browser just to check my usage.  (I could just login to the ISP&#039;s usage meter if I had a browser open).&lt;br /&gt;
&lt;br /&gt;
I&#039;ve seen others produce &lt;a href=&quot;http://www.darryn.net/2004/monitoring-bigpond-broadband-usage-with-mrtg-windows/darryn/191/&quot;&gt;mrtg graphs&lt;/a&gt; and even &lt;a href=&quot;http://www.users.on.net/~scullywag/Cacti-ISP-Quota/index.html&quot;&gt;Cacti graphs&lt;/a&gt; to display their usage; however they too also rely on having a browser open.&lt;br /&gt;
&lt;br /&gt;
Ideally, I want to have my usage available, when I wanted, and without loading a browser.&lt;br /&gt;
&lt;br /&gt;
I use &lt;a href=&quot;http://conky.sourceforge.net/&quot;&gt;conky&lt;/a&gt; on my desktop to display a range of information.  It seemed a logical step would be to integrate a meter into my conky setup.&lt;br /&gt;
&lt;br /&gt;
As you can see from the graph in the picture to the left, it displays a raw percentage of what has been used, as well as a visual bar graph.  Below that is the raw data, showing exactly how much I&#039;ve downloaded (~11.5GB), what my ISP believes my quota to be (55GB in this case), and when this billing period ends (the 13&lt;sup&gt;th&lt;/sup&gt; of every month).&lt;br /&gt;
&lt;br /&gt;
I can now view my current Internet usage at a glance, without the need to load any additional program.  &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/cool.png&quot; alt=&quot;8-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
So how did I achieve it?     Like many ISPs, my ISP provides an interface to the raw data.  This is used by 3&lt;sup&gt;rd&lt;/sup&gt; party utilities like NetUsage and others to parse and generate the information.   &lt;a href=&quot;http://www.internode.on.net/&quot;&gt;Internode&lt;/a&gt; (my ISP) has &lt;a href=&quot;https://customer-webtools-api.internode.on.net/cgi-bin/padsl-usage&quot;&gt;such an interface&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
A quick and dirty script and I was able to spit out the graph in a format conky liked.  &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/cool.png&quot; alt=&quot;8-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;    Whilst this works directly with Internode, similiar ISPs have such interfaces and you will be able to hack the script to suit your own environment.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;
Below is the simple bash shell script used to generate the data:&lt;br /&gt;
&lt;tt&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Get usage information from Internode&#039;s web page.  &lt;br /&gt;
# Setup to run once every half hour.&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# Set the username and password&lt;br /&gt;
Username=INTERNODE_USERNAME&lt;br /&gt;
Password=INTERNODE_PASSWORD&lt;br /&gt;
&lt;br /&gt;
# Grab the details&lt;br /&gt;
Temp=`wget -q -O - --post-data &quot;username=${Username}&amp;password=${Password}&quot; --user-agent=&quot;Conky ISP Quota Grabber 0.1&quot; https://customer-webtools-api.internode.on.net/cgi-bin/padsl-usage`&lt;br /&gt;
&lt;br /&gt;
# Generate the percent used.&lt;br /&gt;
echo $Temp|gawk &#039;{print $1/$2*100}&#039;&gt; /tmp/node-graph.txt&lt;br /&gt;
Percent=`cat /tmp/node-graph.txt`&lt;br /&gt;
echo $(printf %.0f $Percent) &gt; /tmp/node-percent.txt&lt;br /&gt;
&lt;br /&gt;
# Break up the values into their respective parts&lt;br /&gt;
Values=($Temp)&lt;br /&gt;
echo &quot;Used: $(printf %.0f ${Values[0]})MB  Quota: ${Values[1]}MB  Period Ends: ${Values[2]}&quot; &gt; /tmp/node-text.txt&lt;br /&gt;
&lt;br /&gt;
# Time to leave.&lt;br /&gt;
exit&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
Sure it&#039;s not the most secure script (It stores your username/password in plain text).  For me, the script sits on my desktop machine... and is protected by file permissions.  The password I use for my ISP I also don&#039;t consider highly sensative. (It&#039;s important to note that most people throw around their password in clear-text across the Internet when picking up their mail with POP3! &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/tongue.png&quot; alt=&quot;:-P&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;  ).   It does however do the job.&lt;br /&gt;
&lt;br /&gt;
The above shell script I run every 30 minutes from cron.   &lt;br /&gt;
&lt;br /&gt;
It is then up to your ~/.conkyrc file to display the results.  Here is the snippet of the appropriate code for the ~/.conkyrc file that will do that for you:&lt;br /&gt;
&lt;br /&gt;
&lt;tt&gt;${color orange}INTERNET USAGE ${hr 2}$color&lt;br /&gt;
${execi 900 cat /tmp/node-percent.txt}% ${execibar 900 cat /tmp/node-graph.txt}&lt;br /&gt;
${execi 900 cat /tmp/node-text.txt}&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
There you have it, a simple ISP usage meter sitting right on your desktop.   &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
It&#039;s not the most elegant or complicated program, however it serves it&#039;s purpose extremely well.  YMMV. 
    </content:encoded>

    <pubDate>Mon, 19 Jan 2009 03:18:00 +1100</pubDate>
    <guid isPermaLink="false">http://matt.bottrell.com.au/archives/305-guid.html</guid>
    <category>accounting</category>
<category>apps</category>
<category>browser</category>
<category>coding</category>
<category>email</category>
<category>firefox</category>
<category>internet</category>
<category>isp</category>
<category>linux</category>
<category>monitoring</category>
<category>networking</category>
<category>open source</category>
<category>software</category>
<category>sysadmin</category>
<category>web</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Firefox 3 - What The?!</title>
    <link>http://matt.bottrell.com.au/archives/228-Firefox-3-What-The!.html</link>
            <category>Apps</category>
            <category>Linux</category>
            <category>Windows</category>
    
    <comments>http://matt.bottrell.com.au/archives/228-Firefox-3-What-The!.html#comments</comments>
    <wfw:comment>http://matt.bottrell.com.au/wfwcomment.php?cid=228</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://matt.bottrell.com.au/rss.php?version=2.0&amp;type=comments&amp;cid=228</wfw:commentRss>
    

    <author>mbottrell@gmail.com (Matt)</author>
    <content:encoded>
    &lt;a class=&#039;serendipity_image_link&#039; href=&#039;http://matt.bottrell.com.au/uploads/certificate-ie.png&#039;&gt;&lt;!-- s9ymdb:67 --&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;110&quot; height=&quot;85&quot; style=&quot;float: left; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://matt.bottrell.com.au/uploads/certificate-ie.thumb.png&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;It seems various people are getting certificates for helping the &lt;a href=&quot;http://www.spreadfirefox.com/en-US/worldrecord/&quot;&gt;Mozilla team set a new world record for the number of downloads in a day&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
It&#039;s always interesting to see some of the organisations that made it possible!   &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/eek.png&quot; alt=&quot;:-O&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; &lt;a href=&quot;http://matt.bottrell.com.au/uploads/certificate-ie.png&quot; alt=&quot;&quot; /&gt;Click on the image&lt;/a&gt; to see a larger version. 
    </content:encoded>

    <pubDate>Mon, 23 Jun 2008 12:40:00 +1000</pubDate>
    <guid isPermaLink="false">http://matt.bottrell.com.au/archives/228-guid.html</guid>
    <category>apps</category>
<category>firefox</category>
<category>ie</category>
<category>linux</category>
<category>mozilla</category>
<category>web</category>
<category>windows</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Firefox 3 - Come break a world record!</title>
    <link>http://matt.bottrell.com.au/archives/224-Firefox-3-Come-break-a-world-record!.html</link>
            <category>Apps</category>
            <category>Linux</category>
            <category>Web</category>
            <category>Windows</category>
    
    <comments>http://matt.bottrell.com.au/archives/224-Firefox-3-Come-break-a-world-record!.html#comments</comments>
    <wfw:comment>http://matt.bottrell.com.au/wfwcomment.php?cid=224</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://matt.bottrell.com.au/rss.php?version=2.0&amp;type=comments&amp;cid=224</wfw:commentRss>
    

    <author>mbottrell@gmail.com (Matt)</author>
    <content:encoded>
    &lt;!-- s9ymdb:44 --&gt;&lt;a href=&quot;http://www.spreadfirefox.com/en-US/worldrecord&quot; title=&quot;Firefox 3 - Download Day 2008&quot;&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;250&quot; height=&quot;200&quot; style=&quot;float: left; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://matt.bottrell.com.au/uploads/dday_badge_fox.png&quot; alt=&quot;Firefox 3 - Download Day 2008&quot; /&gt;&lt;/a&gt;At 3:00am AEST on Wednesday 18&lt;sup&gt;th&lt;/sup&gt; of June will herald the release of Firefox 3.&lt;br /&gt;
&lt;br /&gt;
It&#039;s a big jump ahead from the heady days of Firefox 1 and Firefox 2 days.   &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/cool.png&quot; alt=&quot;8-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;   This version includes over 15,000 enhancements from the 2.x series.   It&#039;s faster, funkier and doesn&#039;t eat anywhere near the memory Firefox 2 did!&lt;br /&gt;
&lt;br /&gt;
The guys over at &lt;a href=&quot;http://www.spreadfirefox.com/&quot;&gt;SpreadFirefox&lt;/a&gt; are attempting to &lt;a href=&quot;http://www.spreadfirefox.com/en-US/worldrecord&quot;&gt;set a world record&lt;/a&gt;, with the most downloads in a given 24 hour period.  You too can be part of it!    &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m currently running one of the Release Candidates, and I&#039;ve found it brilliant, all my favourite add-ons are now working flawlessly in it.&lt;br /&gt;
&lt;br /&gt;
So help spread the world,  &lt;a href=&quot;http://mozillalinks.org/wp/2008/01/firefox-global-market-share-reaches-211/&quot;&gt;Australia has around 30% of it&#039;s Internet users using Firefox&lt;/a&gt; these days.  So people do understand and utilise the crazy fox based browser.&lt;br /&gt;
&lt;br /&gt;
Moving more people off Internet Explorer will also ensure that Australian websites that wish to remain &#039;visible&#039; will also start writing websites that are browser agnostic and follow the &lt;a href=&quot;http://www.w3.org/&quot;&gt;W3C standards&lt;/a&gt; (something IE only websites break heavily).&lt;br /&gt;
&lt;br /&gt;
Microsoft claim that they are &lt;a href=&quot;http://blog.wired.com/monkeybites/2008/03/microsoft-backs.html&quot;&gt;going to be moving fully to standards compliance&lt;/a&gt; with &lt;a href=&quot;http://www.microsoft.com/windows/products/winfamily/ie/ie8/default.mspx&quot;&gt;IE8&lt;/a&gt;, but don&#039;t hold your breath.  We&#039;ve been hearing that for years.   As long as &lt;a href=&quot;http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;amp;articleId=9061101&quot;&gt;nasty ActiveX&lt;/a&gt; still hangs around like a bad fart in a crowded elevator it&#039;s not going to be compliant (or safe for that matter).   And yes, &lt;a href=&quot;http://blogs.msdn.com/ie/archive/2008/05/07/ie8-security-part-ii-activex-improvements.aspx&quot;&gt;IE8 will ship with ActiveX&lt;/a&gt;.  &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
So hop to it!  &lt;a href=&quot;http://www.spreadfirefox.com/en-US/worldrecord&quot;&gt;Pledge to download Firefox 3&lt;/a&gt; on Wednesday, and become a World Record Holder!   &lt;img src=&quot;http://matt.bottrell.com.au/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;  
    </content:encoded>

    <pubDate>Tue, 17 Jun 2008 23:25:00 +1000</pubDate>
    <guid isPermaLink="false">http://matt.bottrell.com.au/archives/224-guid.html</guid>
    <category>apps</category>
<category>firefox</category>
<category>internet</category>
<category>linux</category>
<category>microsoft</category>
<category>mozilla</category>
<category>security</category>
<category>web</category>
<category>windows</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>

</channel>
</rss>