Hallo,
da ich kompletter Laie bin bräuchte ich mal eure Hilfe.
Hier mal der Code. Es soll eine 1 Ausgegeben werden wenn die Variable ${JSON:ROBOT_STATE} WORKING ausgibt.
Gruß Matze
da ich kompletter Laie bin bräuchte ich mal eure Hilfe.
Hier mal der Code. Es soll eine 1 Ausgegeben werden wenn die Variable ${JSON:ROBOT_STATE} WORKING ausgibt.
Gruß Matze
HTML:
<html>
<body>
<p id="status"></p>
<script>
{
var ${JSON:ROBOT_STATE};
if (WORKING) {
status = "1";
} else {
status = "0";
}
document.getElementById("status").innerHTML = status;
}
</script>
</body>
</html>