diff --git a/webpage.lua b/webpage.lua index 99a8116..1cea9c8 100644 --- a/webpage.lua +++ b/webpage.lua @@ -25,6 +25,7 @@ function sendWebPage(conn,answertype) buf = buf .."SNTP ServerServer to sync the time with. Only one ntp server is allowed." buf = buf .."Offset to UTC timeDefine the offset to UTC time in hours. For example +1 hour for Germany" buf = buf .. "
" + buf = buf .. "
" buf = buf .."" if answertype==2 then buf = buf .. "

New configuration saved" diff --git a/webserver.lua b/webserver.lua index 20cc558..b6d3bde 100644 --- a/webserver.lua +++ b/webserver.lua @@ -39,6 +39,10 @@ function startWebServer() end postRequestData=nil + --- Do the magic! + if (_POST.action ~= nil and _POST.action == "Reboot") then + node.restart() + end print("Inform user via Web") if (sendWebPage == nil) then