Fix uploading data to AREDN Servers

This commit is contained in:
Tim Wilkinson 2022-03-18 17:42:20 -07:00 committed by Joe AE6XE
parent 321e58bd37
commit 85edc542fc
1 changed files with 2 additions and 2 deletions

View File

@ -265,10 +265,10 @@ end
if parms.button_uploaddata then
local si = capture("curl 'http://localnode:8080/cgi-bin/sysinfo.json?hosts=1' 2>/dev/null"):chomp()
-- strip closing }
si = si.sub(1, #si - 1)
si = si:sub(1, #si - 1)
-- get olsrd topo information
local topo = capture("url 'http://localnode:9090/links' 2>/dev/null"):chomp()
local topo = capture("curl 'http://localnode:9090/links' 2>/dev/null"):chomp()
-- add topo subdoc and close root doc
local newsi = string.format("%s,\"olsr\": %s}", si, topo)