Encore une fois, complètement refactorisé ma structure de mesure de puissance et de température afin de pouvoir être le plus générique possible ;-)

This commit is contained in:
Christian Zufferey
2019-09-22 17:25:06 +02:00
parent b9816641b8
commit 05950befe6
185 changed files with 10 additions and 7 deletions

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset='utf-8' name='viewport' content='width=device-width, initial-scale=1.0'>
<title>API HUB Temp</title>
</head>
<body>
<h1>API HUB Temp 190727.1321</h1>
<br>
<%
if (vars ~= nil) then
zout("<br>vars: "..vars.."<br>")
for k, v in string.gmatch(vars, "(%w+)=(%w+%p+%w+)&*") do
_GET[k] = v
zout(k..": "..v.."<br>")
end
end
if (_GET.field1 ~= nil) then
ztemp1 = _GET.field1
zout("<br>temp1: "..ztemp1.."°C")
end
if (_GET.field2 ~= nil) then
ztemp2 = _GET.field2
zout("<br>temp2: "..ztemp2.."°C")
end
if (_GET.field3 ~= nil) then
ztemp3 = _GET.field3
zout("<br>temp3: "..ztemp3.."°C")
end
%>
</body>
</html>