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

90 posts

Master Geek
+1 received by user: 3

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



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 = "";



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



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





Create new topic
418 posts

Ultimate Geek
+1 received by user: 57

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






Cant help with the command sorry

90 posts

Master Geek
+1 received by user: 3

  # 1774653 2-May-2017 21:44
One person supports this post
Send private message



I found that the address:  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.






90 posts

Master Geek
+1 received by user: 3

  # 1774809 3-May-2017 10:34
One person supports this post
Send private message



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

Twitter and LinkedIn »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Dunedin selects Telensa to deliver smart street lighting for 15,000 LEDs
Posted 18-Jul-2019 10:21

Sprint announces a connected wallet card with built-in IoT support
Posted 18-Jul-2019 08:36

Educational tool developed at Otago makes international launch
Posted 17-Jul-2019 21:57

Symantec introduces cloud access security solution
Posted 17-Jul-2019 21:48

New Zealand government unveils new digital service to make business easier
Posted 16-Jul-2019 17:35

Scientists unveil image of quantum entanglement
Posted 13-Jul-2019 06:00

Hackers to be challenged at University of Waikato
Posted 12-Jul-2019 21:34

OPPO Reno Z now available in New Zealand
Posted 12-Jul-2019 21:28

Sony introduces WF-1000XM3 wireless headphones with noise cancellation
Posted 8-Jul-2019 16:56

Xero announces new smarter tools, push into the North American market
Posted 19-Jun-2019 17:20

New report by Unisys shows New Zealanders want action by social platform companies and police to monitor social media sites
Posted 19-Jun-2019 17:09

ASB adds Google Pay option to contactless payments
Posted 19-Jun-2019 17:05

New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35

Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39

TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18

Geekzone Live »

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

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

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.

Alternatively, you can receive a daily email with Geekzone updates.