1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Request

Discussion in 'Tomato Firmware' started by devlin016, Sep 3, 2013.

  1. devlin016

    devlin016 Networkin' Nut Member

    Can someone make me a startup script that checks my monthly bandwidth usage and if its higher then 230GB it perform a action. I cant think of a way on how to do this. Please help!
     
  2. FlashSWT

    FlashSWT LI Guru Member

    Very interesting idea.

    I don't know how to help personally but I can see the potential in this script if it is possible.
     
  3. Planiwa

    Planiwa LI Guru Member

    Asking the right question(s), seeing the essence, the big picture, and the major challenges.

    One approach:

    1. Find out the data volume in the current billing period.
    2. Display this on a web page accessible to the local users.

    Which tools can you think of using for this purpose?
    Which do you think is easier?
     
  4. rs232

    rs232 Network Guru Member

  5. kyrios

    kyrios Serious Server Member

    Gargoyle?
     
    Marcel Tunks likes this.
  6. Planiwa

    Planiwa LI Guru Member

    The OP's request, in essence, asks: How can I tell how much data I have moved this month?

    As long as the router does not crash, you can get an estimate from the router.

    (FWIW, the "stable" FW that I recently installed in my personal router crashes continually.)

    The source that matters ($) for that information is the ISP. The ISP's access to that information can be extremely cumbersome.

    In any case, the particulars depend on that ISP.


    (The problem of trying to limit data volume ("usage") by limiting bandwidth is that the typical monthly usage allowance is a tiny fraction of the total channel capacity in a month. A 25/10 Mb/s DSL line can move 300 GB in 20 hours. Thus, to limit monthly usage to 300 GB, the total data rate must be reduced to 3%, or something like 1 Mb/s down and 64 kb/s up.

    This is similar to Zip-car rental, where you might have a daily allowance of 200 km. To ensure the distance limit by limiting the speed, the speed would have to be limited to 8 km/h. Obviously this is not a sensible "solution".)
     
    Last edited: Sep 4, 2013

Share This Page