Tech Feast
Published © GPL3+

Boltomation_Wifi

Home automation using bolt iot with more knowledge on code and electronics

IntermediateFull instructions provided2 hours430
Boltomation_Wifi

Story

Read more

Schematics

Schematic

Code

home automation code

HTML
<!DOCTYPE html>
<html>
<head>
<title>Bolt IoT Platform</title>
<script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
<script>setKey('{{ApiKey}}','{{Name}}');</script>
</head>
<body bgcolor="#000000">
<center>
<p><button style="background-color:#00ff00;" onclick="digitalWrite(0, 'HIGH');">Relay 1 ON</button></p>
<p><button style="background-color:#ff0000;" onclick="digitalWrite(0, 'LOW');">Relay 1 OFF</button></p>
<p><button style="background-color:#00ff00;" onclick="digitalWrite(4, 'HIGH');">Relay 2 ON</button></p>
<p><button style="background-color:#ff0000;" onclick="digitalWrite(4, 'LOW');">Relay 2 OFF</button></p>
<p><button style="background-color:#00ff00;" onclick="digitalWrite(2, 'HIGH');">Relay 3 ON</button></p>
<p><button style="background-color:#ff0000;" onclick="digitalWrite(2, 'LOW');">Relay 3 OFF</button></p>
<p><button style="background-color:#00ff00;" onclick="digitalWrite(3, 'HIGH');">Relay 4 ON</button></p>
<p><button style="background-color:#ff0000;" onclick="digitalWrite(3, 'LOW');">Relay 4 OFF</button></p>
</center>
</body>
</html>

Credits

Tech Feast
1 project • 1 follower

Comments