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

# 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
425 posts

Ultimate Geek

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






Cant help with the command sorry

90 posts

Master Geek

  # 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

  # 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 »

Intel expands 10th Gen Intel Core Mobile processor family
Posted 23-Aug-2019 10:22

Digital innovation drives new investment provider
Posted 23-Aug-2019 08:29

Catalyst Cloud becomes a Kubernetes Certified Service Provider (KCSP)
Posted 23-Aug-2019 08:21

New AI legaltech product launched in New Zealand
Posted 21-Aug-2019 17:01

Yubico launches first Lightning-compatible security key, the YubiKey 5Ci
Posted 21-Aug-2019 16:46

Disney+ streaming service confirmed launch in New Zealand
Posted 20-Aug-2019 09:29

Industry plan could create a billion dollar interactive games sector
Posted 19-Aug-2019 20:41

Personal cyber insurance a New Zealand first
Posted 19-Aug-2019 20:26

University of Waikato launches space for esports
Posted 19-Aug-2019 20:20

D-Link ANZ expands mydlink ecosystem with new mydlink Mini Wi-Fi Smart Plug
Posted 19-Aug-2019 20:14

Kiwi workers still falling victim to old cyber tricks
Posted 12-Aug-2019 20:47

Lightning Lab GovTech launches 2019 programme
Posted 12-Aug-2019 20:41

Epson launches portable laser projector
Posted 12-Aug-2019 20:27

Huawei launches new distributed HarmonyOS
Posted 12-Aug-2019 20:20

Lenovo introduces single-socket servers for edge and data-intensive workloads
Posted 9-Aug-2019 21:26

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.