mirror of https://github.com/aredn/aredn.git
report node hardware better on Status page 06/07/2022 (#383)
* report hwtype better for UBNT nodes * add Ubiquiti mfg to radios.json * change field name * edit field name to model
This commit is contained in:
parent
c4bd018a5c
commit
6aff2636c0
|
@ -464,7 +464,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe005" : {
|
||||
"name" : "NanoStation M5",
|
||||
"name" : "Ubiquiti NanoStation M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -473,7 +473,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe009" : {
|
||||
"name" : "NanoStation Loco M9",
|
||||
"name" : "Ubiquiti NanoStation Loco M9",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -482,7 +482,7 @@
|
|||
"rfband" : "900"
|
||||
},
|
||||
"0xe012" : {
|
||||
"name" : "NanoStation M2",
|
||||
"name" : "Ubiquiti NanoStation M2",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "18",
|
||||
|
@ -491,7 +491,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe035" : {
|
||||
"name" : "NanoStation M3",
|
||||
"name" : "Ubiquiti NanoStation M3",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -500,7 +500,7 @@
|
|||
"rfband" : "3400"
|
||||
},
|
||||
"0xe0a2" : {
|
||||
"name" : "NanoStation Loco M2",
|
||||
"name" : "Ubiquiti NanoStation Loco M2",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "18",
|
||||
|
@ -509,7 +509,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe0a5" : {
|
||||
"name" : "NanoStation Loco M5",
|
||||
"name" : "Ubiquiti NanoStation Loco M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -518,7 +518,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe105" : {
|
||||
"name" : "Rocket M5",
|
||||
"name" : "Ubiquiti Rocket M5",
|
||||
"comment" : "Rocket M5 with USB",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -527,7 +527,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe112" : {
|
||||
"name" : "Rocket M2 with USB",
|
||||
"name" : "Ubiquiti Rocket M2 with USB",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "18",
|
||||
|
@ -536,7 +536,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe1b2" : {
|
||||
"name" : "Rocket M2",
|
||||
"name" : "Ubiquiti Rocket M2",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "18",
|
||||
|
@ -545,7 +545,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe1b5" : {
|
||||
"name" : "Rocket M5",
|
||||
"name" : "Ubiquiti Rocket M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -554,7 +554,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe1b9" : {
|
||||
"name" : "Rocket M9",
|
||||
"name" : "Ubiquiti Rocket M9",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -563,7 +563,7 @@
|
|||
"rfband" : "900"
|
||||
},
|
||||
"0xe1c3" : {
|
||||
"name" : "Rocket M3",
|
||||
"name" : "Ubiquiti Rocket M3",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -572,8 +572,8 @@
|
|||
"rfband" : "3400"
|
||||
},
|
||||
"0xe1c5" : {
|
||||
"name" : "Rocket M5 GPS",
|
||||
"comment" : "Rocket M5 with GPS",
|
||||
"name" : "Ubiquiti Rocket M5 GPS",
|
||||
"comment" : "Ubiquiti Rocket M5 with GPS",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
"pwroffset" : "5",
|
||||
|
@ -581,7 +581,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe1d2" : {
|
||||
"name" : "Rocket M2 Titanium",
|
||||
"name" : "Ubiquiti Rocket M2 Titanium",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "18",
|
||||
|
@ -590,7 +590,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe1d5" : {
|
||||
"name" : "Rocket M5 Titanium GPS",
|
||||
"name" : "Ubiquiti Rocket M5 Titanium GPS",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -599,7 +599,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe202" : {
|
||||
"name" : "Bullet M2 HP",
|
||||
"name" : "Ubiquiti Bullet M2 HP",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "16",
|
||||
|
@ -608,7 +608,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe205" : {
|
||||
"name" : "Bullet M5",
|
||||
"name" : "Ubiquiti Bullet M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -617,7 +617,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe212" : {
|
||||
"name" : "airGrid M2",
|
||||
"name" : "Ubiquiti airGrid M2",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "28",
|
||||
|
@ -626,7 +626,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe215" : {
|
||||
"name" : "airGrid M5",
|
||||
"name" : "Ubiquiti airGrid M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -635,7 +635,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe232" : {
|
||||
"name" : "NanoBridge M2",
|
||||
"name" : "Ubiquiti NanoBridge M2",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "21",
|
||||
|
@ -644,7 +644,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe235" : {
|
||||
"name" : "NanoBridge M5",
|
||||
"name" : "Ubiquiti NanoBridge M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -653,7 +653,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe239" : {
|
||||
"name" : "NanoBridge M9",
|
||||
"name" : "Ubiquiti NanoBridge M9",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -671,7 +671,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe243" : {
|
||||
"name" : "NanoBridge M3",
|
||||
"name" : "Ubiquiti NanoBridge M3",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -680,7 +680,7 @@
|
|||
"rfband" : "3400"
|
||||
},
|
||||
"0xe252" : {
|
||||
"name" : "airGrid M2 HP",
|
||||
"name" : "Ubiquiti airGrid M2 HP",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -689,7 +689,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe245" : {
|
||||
"name" : "airGrid M5 HP",
|
||||
"name" : "Ubiquiti airGrid M5 HP",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -698,7 +698,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe255" : {
|
||||
"name" : "airGrid M5 HP",
|
||||
"name" : "Ubiquiti airGrid M5 HP",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -707,7 +707,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe2b5" : {
|
||||
"name" : "NanoBridge M5",
|
||||
"name" : "Ubiquiti NanoBridge M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -716,7 +716,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe2c2" : {
|
||||
"name" : "NanoBeam M2 International",
|
||||
"name" : "Ubiquiti NanoBeam M2 International",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "18",
|
||||
|
@ -725,7 +725,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe2c4" : {
|
||||
"name" : "Bullet M2 XW",
|
||||
"name" : "Ubiquiti Bullet M2 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -734,7 +734,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe2d2" : {
|
||||
"name" : "Bullet M2 Titanium HP",
|
||||
"name" : "Ubiquiti Bullet M2 Titanium HP",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "16",
|
||||
|
@ -743,7 +743,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe2d5" : {
|
||||
"name" : "Bullet M5 Titanium",
|
||||
"name" : "Ubiquiti Bullet M5 Titanium",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -752,7 +752,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe302" : {
|
||||
"name" : "PicoStation M2",
|
||||
"name" : "Ubiquiti PicoStation M2",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "16",
|
||||
|
@ -761,7 +761,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe3e5" : {
|
||||
"name" : "PowerBeam M5 XW 300",
|
||||
"name" : "Ubiquiti PowerBeam M5 XW 300",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -770,7 +770,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe4a2" : {
|
||||
"name" : "AirRouter",
|
||||
"name" : "Ubiquiti AirRouter",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -779,7 +779,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe4b2" : {
|
||||
"name" : "AirRouter HP",
|
||||
"name" : "Ubiquiti AirRouter HP",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -788,7 +788,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe4d5" : {
|
||||
"name" : "Rocket M5 Titanium",
|
||||
"name" : "Ubiquiti Rocket M5 Titanium",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -797,7 +797,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe4e5" : {
|
||||
"name" : "PowerBeam M5 400",
|
||||
"name" : "Ubiquiti PowerBeam M5 400",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -806,7 +806,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe6e5" : {
|
||||
"name" : "PowerBeam M5 400-ISO",
|
||||
"name" : "Ubiquiti PowerBeam M5 400-ISO",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -815,7 +815,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe805" : {
|
||||
"name" : "NanoStation M5",
|
||||
"name" : "Ubiquiti NanoStation M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -824,7 +824,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe825" : {
|
||||
"name" : "NanoBeam M5 19",
|
||||
"name" : "Ubiquiti NanoBeam M5 19",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -833,7 +833,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe835" : {
|
||||
"name" : "AirGrid M5 XW",
|
||||
"name" : "Ubiquiti AirGrid M5 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -842,7 +842,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe845" : {
|
||||
"name" : "NanoStation Loco M5 XW",
|
||||
"name" : "Ubiquiti NanoStation Loco M5 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -851,7 +851,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe855" : {
|
||||
"name" : "NanoStation M5 XW",
|
||||
"name" : "Ubiquiti NanoStation M5 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -860,7 +860,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe865" : {
|
||||
"name" : "LiteBeam M5",
|
||||
"name" : "Ubiquiti LiteBeam M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "19",
|
||||
|
@ -869,7 +869,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe866" : {
|
||||
"name" : "NanoStation M2 XW",
|
||||
"name" : "Ubiquiti NanoStation M2 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -878,7 +878,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe867" : {
|
||||
"name" : "NanoStation Loco M2 XW",
|
||||
"name" : "Ubiquiti NanoStation Loco M2 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "21",
|
||||
|
@ -887,7 +887,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe868" : {
|
||||
"name" : "Rocket M2 XW",
|
||||
"name" : "Ubiquiti Rocket M2 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "21",
|
||||
|
@ -896,7 +896,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe885" : {
|
||||
"name" : "PowerBeam M5 620 XW",
|
||||
"name" : "Ubiquiti PowerBeam M5 620 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -905,7 +905,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe8a5" : {
|
||||
"name" : "NanoStation Loco M5",
|
||||
"name" : "Ubiquiti NanoStation Loco M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -914,7 +914,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe6b5" : {
|
||||
"name" : "Rocket M5 XW",
|
||||
"name" : "Ubiquiti Rocket M5 XW",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -923,7 +923,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe812" : {
|
||||
"name" : "NanoBeam M2 13",
|
||||
"name" : "Ubiquiti NanoBeam M2 13",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -932,7 +932,7 @@
|
|||
"rfband" : "2400"
|
||||
},
|
||||
"0xe815" : {
|
||||
"name" : "NanoBeam M5 16",
|
||||
"name" : "Ubiquiti NanoBeam M5 16",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
@ -941,7 +941,7 @@
|
|||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"0xe1a5" : {
|
||||
"name" : "PowerBridge M5",
|
||||
"name" : "Ubiquiti PowerBridge M5",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "22",
|
||||
|
|
|
@ -360,7 +360,7 @@ if config == "mesh" and not wifi_disabled then
|
|||
col2[#col2] = col2[#col2] .. " <button type=button onClick='window.location=\"signal?realtime=1\"' title='Display continuous or archived signal strength on a chart'>Charts</button></nobr></td>"
|
||||
end
|
||||
|
||||
col2[#col2 + 1] = "<th align=right><nobr>firmware version</nobr><br><nobr>hardware type</nobr></th><td>" .. read_all("/etc/mesh-release") .. "<br>" .. aredn.hardware.get_type() .. "</td>";
|
||||
col2[#col2 + 1] = "<th align=right><nobr>firmware version</nobr><br><nobr>model</nobr></th><td>" .. read_all("/etc/mesh-release") .. "<br>" .. aredn.hardware.get_radio().name .. "</td>";
|
||||
|
||||
local sysinfo = nixio.sysinfo()
|
||||
local uptime = string.format("%d:%02d", math.floor(sysinfo.uptime / 3600) % 24, math.floor(sysinfo.uptime / 60) % 60)
|
||||
|
|
Loading…
Reference in New Issue