I didn't know how much this stuff is universal across NetGear models.
NetGear uses templates, like "wwanadv.json.tmpl" to generate json.
The templates are goofy with control characters and character counts.
They are not really possible to generate with a text editor.
192.168.???.1/model.json is actually 192.168.???.1/api/model.json through a rewrite rule.
This tells you what you want to know in JSON but it's a big pig and has lots of junk that you don't care about.
Moreover, it takes 200-300 milliseconds to serve.
It's better to make your own template that has just what you need.
I want to "cherry pick" from wwan.json and wwanadv.json.
I made a template for my LM1200 called modem.json.tmpl that serves in 30 milliseconds.
Code: Select all
{
"wwan":
{
"connection":"Connected",
"dataUsage":
{
"generic":
{
"billingCycleLimit":107374182400,
"dataTransferred":16567206752
}
},
"IP":<redacted>
},
"wwanadv":
{
"cellId":<redacted>,
"chanId":5230,
"chanIdUl":23230,
"country":"USA",
"curBand":"LTE B13",
"LAC":<redacted>,
"MCC":"311",
"MNC":"480",
"MNCFmt":3,
"plmnSrvErrBitMask":0,
"primScode":-1,
"RAC":0,
"radioQuality":68,
"rxLevel":-93,
"srvCellInfo":"",
"txLevel":-50
}
}
Then there is the next issue. Most of this info is not available unless you are logged in. If you want to have an Android app that polls this you'll either have to have it log in or else change the permissions for the variables. You can patch NetgearWebApp to loosen the permissions.