-
Autor
Hallo,
ist es möglich den Shelly über eine lokale HTML Webseite + Firefox zu schalten?
Beispiel:
<script>
function sendOnRequest() {
var url = 'http://' + ip + '/relay/0?turn=on'
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
callback(xmlHttp.responseText);
}
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
</script>