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.



38 posts

Geek


Topic # 113368 15-Jan-2013 11:26 Send private message

Hello

I have a remote webcam system that uploads images to an ftp server via the Telecom Xt network.  The webcam system consists of a PC running Ubuntu server.  It connects using an MF636 modem.

I want the webcam system to be able to get access to the Telecom usage meter to control the number of image uploads and stay within my monthly data cap.

I have no problem monitoring data to/from the telecom network as measured by the webcam box.  I run vnstat on the box.  I understand that at least some of the data packets going to/from the network are not measured by Telecom.  If so, this means that reading traffic flow to/from the network with vnstat will overstate the data usage compared to the Telecom usage meter.

The on-line Telecom usage meter webpage is OK for human viewing but would be difficult for a machine to read and understand.

Is there a facility to allow machine readible access to the Telecom usage meter??

Dazz

Create new topic
894 posts

Ultimate Geek

Trusted
Telecom NZ

  Reply # 745000 15-Jan-2013 12:31 Send private message

There is no public API, but other online use the mobile version of the mobile usage meter at http://m.telecom.co.nz/yt and that gives an easier html page to extract out the data you need.




I work for Telecom, but as always my views are my own.



38 posts

Geek


  Reply # 750091 24-Jan-2013 11:51 Send private message

Hi

I want to develop a script that will search the webpage for the traffic info. I want to do that on a PC with wired connection to the internet rather than the wireless and headless box.

I can log-on to the page above from my wired PC. I believe the log-on password screen is not shown when the PC connection is via a T-stick modem.

Is the web page showing traffic I see on my PC by logging-in the same as the webpage I would see on a mobile device with the modem?


1309 posts

Uber Geek

Trusted

  Reply # 750114 24-Jan-2013 12:39 Send private message

A bit of Googling around will give you what you are looking for (hint google for "wget amdistauth")

wget --no-check-certificate --save-cookies=cookie.txt --keep-session-cookies --post-data "IDToken1=027xxxxxxx&IDToken2=**YourPassword**" "https://login.telecom.co.nz/amdistauth/UI/Login?realm=/TelecomDevices&goto=http%3A%2F%2Fm.telecom.co.nz%2Fyt" -q -O - | grep "remaining data" | awk "{print $1}"

That will work when you're not coming in over 3G.. Otherwise you can just go to m.telecom.co.nz/yt and pick it up directly as over 3G you don't need to login.

To logout use:

wget --no-check-certificate --load-cookies=cookie.txt "http://m.telecom.co.nz/logout" -O -

Otherwise you run into issues where if you have established more than 5 sessions you can't login.




Check out my Mobile Cell Site Google Maps KML Files in my blog.
Now using Google Fusion Tables or Address Lookup or GPS using Smartphone
I update it on a monthly basis automatically from RSM.



38 posts

Geek


  Reply # 750821 25-Jan-2013 15:37 Send private message

Hi
Thanks.
There is no way I would have found those key words by myself for a Google search.

Dazz

Create new topic



Twitter »
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 new jobs are posted to our jobs board:



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




News »

Trending now »
Hot discussions in our forums right now:

A reason not to shop at dick smith
Created by dsnz1, last reply by AKLWestie on 17-May-2013 22:45 (82 replies)
Pages... 4 5 6


A new project coming to Geekzone
Created by freitasm, last reply by plambrechtsen on 19-May-2013 21:49 (199 replies)
Pages... 12 13 14


HTC One (2013) owners' discussion
Created by Dingbatt, last reply by Finch on 19-May-2013 22:02 (1441 replies)
Pages... 95 96 97


Track my Phone, Car, how to best do it in .nz?
Created by DonGould, last reply by sonyxperiageek on 19-May-2013 22:24 (15 replies)

Sitting on a boring conference call
Created by SaltyNZ, last reply by SepticSceptic on 17-May-2013 16:52 (14 replies)

Samsung Galaxy SIII Discussion and Owners Thread
Created by networkn, last reply by Johnk on 19-May-2013 16:32 (5523 replies)
Pages... 367 368 369


Chorus is cutting the cost of VDSL to service providers from June 7
Created by maxzzz, last reply by Zeon on 19-May-2013 19:40 (46 replies)
Pages... 2 3 4


Office 365 service outage 2013-05-18
Created by freitasm, last reply by nitrotech on 19-May-2013 18:58 (18 replies)
Pages... 2



Geekzone Jobs »
Most recent NZ jobs in technology:

Exciting Intern Opportunity
Posted 19-May-2013 20:27

Business Analyst
Posted 19-May-2013 18:27

Senior Business Analyst
Posted 19-May-2013 18:27

Senior Business Analyst
Posted 19-May-2013 18:27

Project Coordinator, Reputable Company, Career Pro
Posted 19-May-2013 18:27

Change Manager - Large Financial Services Organiza
Posted 19-May-2013 18:27

Software Developer - Join a market leading company
Posted 19-May-2013 18:27


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.

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