Refactorisé l'api hub pour la concetration des températures (ne fonctionne pas encore)

This commit is contained in:
Christian Zufferey
2019-07-27 09:38:03 +02:00
parent 93e84bd64f
commit c2f5efce9c
5 changed files with 92 additions and 8 deletions

View File

@@ -0,0 +1,31 @@
<!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.0935</h1>
<br>
<%
ztemp1 = 0 ztemp2 = 0 ztemp3 = 0
if (_GET.field1 ~= nil) then
ztemp1 = _GET.field1
zout("<br>temp1: "..ztemp1)
end
if (_GET.field2 ~= nil) then
ztemp2 = _GET.field2
zout("<br>temp2: "..ztemp2)
end
if (_GET.field3 ~= nil) then
ztemp3 = _GET.field3
zout("<br>temp3: "..ztemp3)
end
%>
</body>
</html>