Overhaul garage door example (#93)
* script for controlling garage that is aware of door states * Overhaul garage door example Hardware now calls for reed relay in order to be able to tell the state of the switch. This way, we can have distinct open/close operations that error if the door is already in that state. Allows for potential better integration with home automation systems. * Prepare for push to GitHub * Restore defaults * Make HTTP auth realm match zeroconf networking name
This commit is contained in:
32
http/garage_door.html
Normal file
32
http/garage_door.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Garage control</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div align="center">
|
||||
|
||||
<h2>Door 1</h2>
|
||||
|
||||
<form action="garage_door.lua" method="post"/>
|
||||
<input type="hidden" name="door" value="1"/>
|
||||
<input type="submit" name="action" value="status"/>
|
||||
<input type="submit" name="action" value="open"/>
|
||||
<input type="submit" name="action" value="close"/>
|
||||
<input type="submit" name="action" value="toggle"/>
|
||||
</form>
|
||||
|
||||
<h2>Door 2</h2>
|
||||
|
||||
<form action="garage_door.lua" method="post"/>
|
||||
<input type="hidden" name="door" value="2"/>
|
||||
<input type="submit" name="action" value="status"/>
|
||||
<input type="submit" name="action" value="open"/>
|
||||
<input type="submit" name="action" value="close"/>
|
||||
<input type="submit" name="action" value="toggle"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user