Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


dazz1

95 posts

Master Geek


#214229 2-May-2017 20:58
Send private message

Hello

 

When Spark was Telecom, I used to use the following command in a perl script to get the data usage.

 

I have a USB mobile modem running on a remote headless server.
I want to be able to know how much data is left on my plan so I can throttle the data flow if needed.

 

 

my $url = "http://m.telecom.co.nz/yt";

 

 

my $line = `wget $url -q --delete-after -nd -O - | grep " remaining MB"`;

 

 

What url and command would I now use????

 

 

 

Dazz


Create new topic
firefuze
510 posts

Ultimate Geek


  #1774624 2-May-2017 21:23
Send private message

http://www.spark.co.nz/onliness/my-usage.html

 

or

 

http://spark.co.nz/yt

 

 

 

Cant help with the command sorry


 
 
 

Shop now on AliExpress (affiliate link).
dazz1

95 posts

Master Geek


  #1774653 2-May-2017 21:44
Send private message

 Hi

 

I found that the address:  http://m.spark.co.nz/yt  works.

 

It looks like Spark has changed the text around data usage.  I used that text to find it.  I need to change my search.

 

 

 

dazz


dazz1

95 posts

Master Geek


  #1774809 3-May-2017 10:34
Send private message

 Hi

 

The text  (2 consecutive lines) with data used and data remaining is:

 

<span class="remaining-data">54MB used</span>
<span class="expires-data-right-align">1.44GB remaining</span>

 

This is true May 2017.


Create new topic





News and reviews »

Synology DS925+ Review
Posted 23-Apr-2025 15:00


Synology Announces DiskStation DS925+ and DX525 Expansion Unit
Posted 23-Apr-2025 10:34


JBL Tour Pro 3 Review
Posted 22-Apr-2025 16:56


Samsung 9100 Pro NVMe SSD Review
Posted 11-Apr-2025 13:11


Motorola Announces New Mid-tier Phones moto g05 and g15
Posted 4-Apr-2025 00:00


SoftMaker Releases Free PDF editor FreePDF 2025
Posted 3-Apr-2025 15:26


Moto G85 5G Review
Posted 30-Mar-2025 11:53


Ring Launches New AI-Powered Smart Video Search
Posted 27-Mar-2025 16:30


OPPO RENO13 Series Launches in New Zealand
Posted 27-Mar-2025 05:00


Sony Electronics Announces the WF-C710N Truly Wireless Noise Cancelling Earbuds
Posted 26-Mar-2025 20:37


New Harman Kardon Portable Home Speakers Bring Performance and Looks Together
Posted 26-Mar-2025 20:30


Data Insight Launches The Data Academy
Posted 26-Mar-2025 20:21


Oclean AirPump A10 Portable Water Flosser Wins iF Design Award 2025
Posted 20-Mar-2025 12:05


OPPO Find X8 Pro Review
Posted 14-Mar-2025 14:59


Samsung Galaxy Ring Now Available in New Zealand
Posted 14-Mar-2025 13:52









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.