diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup
index ca7c5c0b..283f0f8a 100755
--- a/files/www/cgi-bin/setup
+++ b/files/www/cgi-bin/setup
@@ -1537,7 +1537,7 @@ if wifi_enable == "1" then
if not changeh then
html.print("
Azimuth - ")
else
- html.print("Azimuth ")
+ html.print("Azimuth ° ")
end
if not changea then
html.print("Antenna " .. antenna .. " ")
@@ -1552,9 +1552,9 @@ if wifi_enable == "1" then
if not changeh then
html.print("Elevation - ")
else
- html.print("Elevation ")
+ html.print("Elevation ° ")
end
- html.print("Height ")
+ html.print("Height m")
end
html.print("
")
html.print("Timezone ")
diff --git a/files/www/cgi-bin/status b/files/www/cgi-bin/status
index 92b102a3..cec00f01 100755
--- a/files/www/cgi-bin/status
+++ b/files/www/cgi-bin/status
@@ -452,6 +452,18 @@ if tonumber(azimuth) then
else
azimuth = nil
end
+local elevation = cursor:get("aredn", "@location[0]", "elevation")
+if tonumber(elevation) then
+ elevation = elevation .. "°"
+else
+ elevation = nil
+end
+local height = cursor:get("aredn", "@location[0]", "height")
+if tonumber(height) then
+ height = height .. "m"
+else
+ height = nil
+end
local antenna
if not wifi_disabled then
antenna = aredn.hardware.get_current_antenna(wifi_iface)
@@ -459,7 +471,18 @@ if not wifi_disabled then
antenna = antenna.description
end
end
-col2[#col2 + 1] = "firmware version: model: " .. (antenna and "antenna: " or "") .. (azimuth and "azimuth: " or "") .. "" .. read_all("/etc/mesh-release") .. " " .. (aredn.hardware.get_radio() or { name = "unknown" }).name .. " " .. (antenna and antenna .. " " or "") .. (azimuth or "") .. " "
+col2[#col2 + 1] = "firmware version: model: " ..
+ (antenna and "antenna: " or "") ..
+ (azimuth and "azimuth: " or "") ..
+ (elevation and "elevation: " or "") ..
+ (height and "height: " or "") ..
+ "" ..
+ read_all("/etc/mesh-release") .. " " .. (aredn.hardware.get_radio() or { name = "unknown" }).name .. " " ..
+ (antenna and antenna .. " " or "") ..
+ (azimuth and azimuth .. " " or "") ..
+ (elevation and elevation .. " " or "") ..
+ (height or "") ..
+ " "
local sysinfo = nixio.sysinfo()
local uptime = string.format("%d:%02d", math.floor(sysinfo.uptime / 3600) % 24, math.floor(sysinfo.uptime / 60) % 60)