Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Home::1: Difference between revisions

Content deleted Content added
Adsb (talk | contribs)
m Processing JSON to grab just the quota_remaining_gb field
AA-Andrew (talk | contribs)
Line 29: Line 29:
The figure on the homepage is a real time counter of the usage, this may differ slightly from the stats on the [https://control.aa.net.uk/ Control Pages] as the control pages uses data that is only updated hourly.
The figure on the homepage is a real time counter of the usage, this may differ slightly from the stats on the [https://control.aa.net.uk/ Control Pages] as the control pages uses data that is only updated hourly.


The quota figure on the homepage can also be viewed using the URL: https://quota.aa.net.uk/info.cgi you can request a json version too, eg:
The quota figure on the homepage can also be viewed as an svg image using the URL: https://quota.aa.net.uk you can request a json or plain text version too, eg:
curl -L https://quota.aa.net.uk --header "Accept: application/json"
curl -L https://quota.aa.net.uk --header "Accept: application/json"
curl -L https://quota.aa.net.uk --header "Accept: text/plain"
wget https://quota.aa.net.uk --header="Accept: application/json" -q -O -
wget https://quota.aa.net.uk --header="Accept: application/json" -q -O -
wget https://quota.aa.net.uk --header="Accept: application/plain" -q -O -
and you can grab just the ''quota_remaining_gb'' field with:
wget https://quota.aa.net.uk --header="Accept: application/json" -q -O- | jq -r '.quota_remaining_gb'


==Usage Tracking==
==Usage Tracking==