diff --git a/public/index.html b/public/index.html index dbe55ef..fb1ef09 100755 --- a/public/index.html +++ b/public/index.html @@ -41,20 +41,20 @@

Relay 1

- - + +

Relay 2

- - + +

Relay 3

- - + +

Relay 4

- - + + diff --git a/public/main.js b/public/main.js index f4002db..e04fa0c 100755 --- a/public/main.js +++ b/public/main.js @@ -40,10 +40,10 @@ async function main() { const relay3Div = document.getElementById('relay3'); const relay4Div = document.getElementById('relay4'); - relay1Div.innerText = await (await fetch("http://10.242.84.111:8080/status/19")).text(); - relay2Div.innerText = await (await fetch("http://10.242.84.111:8080/status/13")).text(); - relay3Div.innerText = await (await fetch("http://10.242.84.111:8080/status/6")).text(); - relay4Div.innerText = await (await fetch("http://10.242.84.111:8080/status/5")).text(); + relay1Div.innerText = await (await fetch("http://10.242.84.110:8080/status/19")).text(); + relay2Div.innerText = await (await fetch("http://10.242.84.110:8080/status/13")).text(); + relay3Div.innerText = await (await fetch("http://10.242.84.110:8080/status/6")).text(); + relay4Div.innerText = await (await fetch("http://10.242.84.110:8080/status/5")).text(); } main(); diff --git a/relay-off.sh b/relay-off.sh index f746a1c..9e6cec6 100755 --- a/relay-off.sh +++ b/relay-off.sh @@ -5,4 +5,4 @@ # Relay 3: GPIO 6 # Relay 4: GPIO 5 -curl --retry 5 --retry-all-errors 10.242.84.111:8080/off/19 +curl --retry 5 --retry-all-errors 10.242.84.110:8080/off/19 diff --git a/relay-on.sh b/relay-on.sh index 6cc4845..a864afc 100755 --- a/relay-on.sh +++ b/relay-on.sh @@ -5,4 +5,4 @@ # Relay 3: GPIO 6 # Relay 4: GPIO 5 -curl --retry 5 --retry-all-errors 10.242.84.111:8080/on/19 +curl --retry 5 --retry-all-errors 10.242.84.110:8080/on/19