Mac Widget: Vidéotron Internet Usage Monitor

Do you want to skip all this text and just get the widget?
Then click
here.


Having received earlier this week a letter from Vidéotron, my ISP, about my account getting capped at 100GB monthly in the upcoming months, I decided I needed an easy way to monitor my monthly bandwidth usage. A Dashboard widget was a good fit.

I downloaded a couple of widget samples from Apple.com, and started a new widget from there.

The end result:

A nice little widget, sitting on my Dashboard, that can tell me how much of my monthly quota I’ve used so far.
Preferences are: Vidéotron username (something that looks like vlxxxxxx), and the internet access type (Basic, High-Speed, Extreme, Extreme Plus, Ultimate). Optionally, if you bought extra data transfer packages for the current month, you’ll be able to enter those too. Data transfer packages will be reset when the billing month changes.

Note: I had to data-scrape an HTML page to fetch the information from Vidéotron website, and decided it was much easier to do that in PHP, and keep it on my own web server, than to do it in JavaScript and have to release a new version of my widget each time Vidéotron would change their web page.
So if you install this, and see an outgoing connection to dataproxy.pommepause.com, that’s normal.
(BTW, I posted the source of the PHP script this widget is using here.)

Enjoy, fellow Vidéotron users.

Downloads

You can download the latest version of the Vidéotron Internet Usage Monitor widget for Mac OS X here, or on MacUpdate, or on i use this, or on Version Tracker.

Changelog

  • 1.2.4 – Updated Vidéotron logo; bug fixed: accumulated daily surplus and ‘now’ arrow were 1 day off; clarified that the last updated date was in fact “$date @ 23h59″; visual fix when new versions are available.
  • 1.2.3 – Changed text in options, to clarify that the data transfer packages are ‘extras’, and the ‘Plan’ option is what will define your monthly limit.
  • 1.2.2 – Added option to select data transfer packages bought this month. The selected value will be reset when the billing month changes.
  • 1.2.1 – Missing Business plans from 1.2.0; added an option to display upload using a different color on the graph.
  • 1.2.0 – Easier configuration; new version available notification; now displaying numeric deviation from daily limit (surplus) – this was only shown using a small arrow on the graph before; added overcharge ($) you should expect on your invoice, if you’re over your limit.
  • 1.1.6 – Better handling for wrong username; people entering anything else than their VLXXXXXX Vidéotron username will now get a relevant error message.
  • 1.1.5 – Fetch new data less often; was previously checking for new data every 15 minutes when the Dashboard was open; changed that to once a day.
  • 1.1.4 – Added small arrows on meters to show the current date. If the meter is higher than the arrow, it means you’ve transferred too much in regard to the current date versus the date you’re invoiced. Red arrow = bad; green arrow = good.
  • 1.1.3 – Beta for 1.1.4
  • 1.1.2 – Small visual changes: loading animated GIF, numbers formatted as 0.xx instead of .xx.
  • 1.1.1 – New French localization option; new minimal look option; fixed incorrect dates (all dates were one month early).
  • 1.0.1 – Fixed missing percentage when using combined quota.
  • 1.0 – First version.
GD Star Rating
loading...
Mac Widget: Vidéotron Internet Usage Monitor4.5510
Share:
  • Facebook
  • Twitter
  • Digg
  • del.icio.us
  • FriendFeed
  • Reddit

42 Responses to “Mac Widget: Vidéotron Internet Usage Monitor”

  1. Tres cool, ton travail. Marche parfaitement. C'est cool de voir quelque chose de (tres) local sur la scene internationale (freemacware.com) pour OS X. Nice!

  2. Yves says:

    Can you PLEASE PLEASE PLEASE have the same for COGECO cable – sister company of Videotron.

    • If you can give me the web page where you can see your monthly usage, I might be able to integrate it into my widget.

      You can use the contact form if you'd like to contact me directly.

  3. Merci beaucoup Guillaume pour le widget!

  4. HL says:

    When will there be a version for Firefox ?

  5. Vincent AM says:

    We did exactly the same thing, but web oriented, so no need to have a mac. You can also receive your bandwidth usage by mail with http://graphotron.com

  6. Martin Miller says:

    I just contacted Videotron, regarding the new Limit (100 G/Month, UL+DL) Starting October 1st. 2007.

    They told me that for the transition, you will get 100G from oct 1st to your 1st day of your month, and then its going to be 100G again.

    So if you internet month start on the 18, you'll get 100G from oct 1 – oct 17, and then 100G from 18 to 18.

    Thanks for this widget btw !!

  7. jonatan says:

    I found really useful your widget, but I have just one "little" problem, I'm windows user so I can't use it… so I was wondering if I could use your code to make it available as a internet widget (usable on netvibes google yahoo and other web based widget platforms. I suppose would be usable on win vista widget bar but I can't say for sure…

  8. Michel says:

    Salut,

    Ton widget est vraiment utile, je l'utilise tous les jours.

    Mais y a un truc qui me serais utile. J'aurais besoin d'un autre thermomètre qui indiquerais si je utilise trop de bande passante par raport au trente jours qui me sont alloué.

    Par exemple j'ai droit à 100 Go par mois donc aujourd'hui le 17 je devrais ne pas avoir dépensé plus de 57 Go.

    Si tu pouvais faire ça: ça serait probablement intéressant pour pas mal de monde. Pas juste pour moi.

    Anyway, c'est juste une suggestion.

    Merci pour le beau travail.

  9. Yannick says:

    Totalement génial! Merci pour ton travail sur ce widget. Videotron devrait de payer une prime.

  10. Dominic says:

    Super ton widget, je l'utilise tous les jours.

    J'ai une petite suggestion pour amélioration future, il serait super d'avoir l'option d'une alarme ou message d'avertissement et coupure d'internet quand on atteint un certain pourcentage de notre quota mensuel. Je m'explique, tu download la nuit ou le jour et tu dépasses ta limite de download sans te rendre compte, à 90% le widget coupe le réseau avec un message. Au moins comme ça tu ne paies de pénalité.

    • Je pourrais envoyer une notification Growl à un certains pourcentage, mais je ne crois pas qu'un Widget puisse désactiver les interfaces réseaux. Je vais regarder et voir ce qui peut être fait.

  11. stefokebec says:

    Excellent! J,en ai rêvé, Guillaume l'a fait. Merci beaucoup!

  12. stefokebec says:

    Vraiment génial. Il ne reste plus qu'à travailler le look du widget… ;-)

  13. Anonymous says:

    Merci!!!!!!!!!!

  14. Steph says:

    I love the widget!!! great job! I only have one comment… I'm using a Mac and when I activate the widget page, the white of the screen is way brighter then all other widgets… Tone down the brightness of the white on the widget for it to keep the sweet Mac look.. Or maybe use the Videotron Gold and Black with white lettering…
    Other then that small detail… GREAT JOB and great initiative!

  15. LiverBoy says:

    Super c'est exactement ce qu'il me fallait!

    Et je pensais que les Widgets fonctionnaient autant dans OS X que Windows?

    • Pas tous les widgets fonctionnent sur Mac & Wndows. Je n'ai pas de Windows Vista sous la main, donc je ne peux pas l'utiliser pour tester et ajuster le code du widget pour le rendre compatible.

  16. QuebecAnglo says:

    Thanks! Needed this as I have too many computers grabbing too much data.

  17. Frank says:

    A quickie to let fellow Mac heads know that Guillaume's widget works nicely with Snow Leopard (10.6.1)
    And once again I've blown my quota.. *sigh*

  18. Ça fonctionne encore très bien sérieux (nous sommes en janvier 2010).

    Merci.

  19. Eric says:

    can you make it update about every 4-5 hours because i keep seeing that I’m over my limit two days ago but not today, it would be nice for it to also update on command

  20. Francois Pruneau says:

    Merci Guillaume pour ton super travaille voudrais tu faire un Widget internet Affairre pour la limite donwlode de la vitesse TGV affaire merci

  21. mike says:

    I can’t seem to flip the widget back around once I entered my Videotron info on the new version, is it just me? There’s no “Done” button or anything like on other widgets. I’m not on Snow Leopard yet, but I doubt that matters. Any help much appreciated!

    • Open Console.app, select Console Messages on the left, type “com.apple.Dock.agent” in the filter (top-right), and click the Clear Display toolbar button.
      Then go in your Dashboard, select the Videotron widget, hit Cmd-R, and try to enter your username.
      In Console.app, you should see an error message. What is it?

    • Try deleting old preferences for the widget.

      Do this in a Terminal window (Applications > Utilities > Terminal.app):

      defaults delete widget-com.pommepause.widget.videotron_internet_usage_monitor

      Then re-add the widget in your Dashboard.

      • mike says:

        i get this:
        2010-02-03 18:04:58.174 defaults[67048:807]
        Domain (widget-com.pommepause.widget.videotron_internet_usage_monitor) not found.
        Defaults have not been changed.

      • mike says:

        hey i just deleted the widget, restarted the computer and re-downloaded it and now it works. thanks for all the help. the preferences were no where to be found on my system for some reason, not sure why but if it happens to anyone else that’s something to try. thanks again!!

  22. nada says:

    Hello, super le widget!
    Mais depuis quelques jours, plus rien et j’ai ça qui est écrit à la place de ma barre de consommation:
    “Oh noes! There’s been a error.
    Response is not XML.”

    Que faire???
    Merci!

    • Lit le message dans le haut de cette page, ça explique pourquoi la vieille version donne une erreur:
      http://www.pommepause.com/blog/2010/01/mac-widget-videotron-internet-usage-monitor/

      • crobi says:

        oui mais le message est en anglais et je comprends rien

        • Pour traduire du texte que tu ne comprend pas, tu peux utiliser Google Translate:
          http://translate.google.com
          Tu entres l’adresse que tu veux traduire, et tu choisis les langues, et ça te traduit la page.
          C’est pas parfait, mais c’est compréhensible.

          Par exemple, ça donne ceci pour le message dans le haut de la page:
          “Update: la version 1.2.3 vient de sortir. Notez que depuis les versions antérieures à 1.2.0 n’ont aucun moyen d’afficher une ‘Nouvelle version disponible’ message, ces versions affichera une erreur jusqu’en Février 7th 2010. Après cela, même si vous ne mettez pas à niveau, ces versions devraient continuer à travailler normalement. Mais vous devriez vraiment mettre à niveau.”

          Donc, morale de l’histoire, soit tu attends le 7 février prochain, soit tu installes la nouvelle version.

  23. Aaron says:

    looks like Ultimate internet 30 & 50 have increased their combined limits to 100GB and 125GB respectively. Hopefully there is an update to this widget soon, since i love it so much!

    • I did push an update this am.
      To get it, just click anywhere on the widget, and hit Cmd-R. This will refresh the widget, and clear it’s cache.
      Do you know if the new limit apply to everyone, or just new contracts? I left the 70 & 100GB limits there too for now, until someone can confirm that even people with old contracts are not limited in such ways.
      Thanks for the heads up.

      • Aaron says:

        I upgraded to ultimate internet 30 in january. I just called and the guy on the phone said that i do indeed have 100gb of bandwith. Maybe its worth a call to confirm but I assume everyone gets it as of today March 1st.

        • Thx for checking. I removed the 2 new plans I added this am, and changed the limits of the existing plans. That means if you selected one of the two new plans this am, you’ll have to refresh and select the correct plan again.

          • Guizmo says:

            Affaires TGV 30Mbit est passé à 250Gig mensuel
            Affaires TGV 50Mbit est passé à 300Gig mensuel

            Les nouvelles limites, autant Affaires que Résidentiel sont offerts aux nouveaux client ou aux clients actuels qui désire renouveler leur contrat en date d’aujourd’hui.

            Donc si tu as TGV 30 Mbit avec 70Gig depuis 3 mois, tu peux appeler et demander de “resetter” ton contrat de 12 mois à partir d’aujourd’hui, pou bénéficier de la nouvelle limite de bande passante.

            Donc si tu n’appelles pas pour renouveler ton contrat, tu resteras avec la vieille limite jusqu’à l’expiration de ton contrat.

            Il faudrait donc laisser les 4 vieux forfaits et les 4 nouveaux forfaits dans l’application.

            Extreme Plus 20Mbit n’est plus du tout offert et Extreme 10Mbit n’est offert qu’au client actuel ayant le service. ce service ne sera cependant pas renouvelable à échéance du contrat.

            Ma blonde travaille chez Vidéotron et elle vient de tout m’expliquer cela.

            Pour terminer je voulais simplement te dire que j’aime beaucoup ton application. Même si je suis sur Affaire 7.5Mbit illimité, je m’en sert pour voir combien de bande passante je consomme mensuellement. Ça m’évite beaucoup de cliques de souris pour me rendre sur le site de Vidéotron à chaque fois.

            PS: On ne voit pas l’image CAPTCHA dans Firefox 3.6 n’y Safari 4.0.4 sur OS X 10.6. J’ai dûs utilisé le truc sonore.

            Merci beaucoup!
            Guizmo

Leave a Reply