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:
37
Mesures/temp/temp_zf/api_hub_temp.html
Normal file
37
Mesures/temp/temp_zf/api_hub_temp.html
Normal 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>
|
||||
Reference in New Issue
Block a user