Update housing and code
--add local timezone --add sunrise/sunset calculation and LED illumination accordingly --remove touch sensor check --change mqtt messages
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<title>FingerprintDoorbell</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
|
||||
<link rel="icon" href="data:,">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="bootstrap.min.css">
|
||||
<style>
|
||||
.alert-custom{
|
||||
background-color:#cecece;
|
||||
@@ -15,6 +15,10 @@
|
||||
margin-left: 15px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
form i {
|
||||
margin-left: -30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -39,6 +43,14 @@
|
||||
}, false);
|
||||
|
||||
}
|
||||
function togglevisibility() {
|
||||
var x = document.getElementById("pincode");
|
||||
if (x.type === "password") {
|
||||
x.type = "text";
|
||||
} else {
|
||||
x.type = "password";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<nav class="navbar navbar-inverse">
|
||||
@@ -62,10 +74,17 @@
|
||||
<legend>Settings</legend>
|
||||
|
||||
<!-- Text input-->
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label" for="mqtt_server">PIN Code</label>
|
||||
<div class="col-md-4">
|
||||
<input id="pincode" name="pincode" type="password" maxlength="10" placeholder="Desired pin code" class="form-control input-md" value="%PIN_CODE%" required><input type="checkbox" onclick="togglevisibility()">Show Pin</input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label" for="mqtt_server">MQTT Server (Broker)</label>
|
||||
<div class="col-md-4">
|
||||
<input id="mqtt_server" name="mqtt_server" type="text" placeholder="Address of your MQTT Broker" class="form-control input-md" value="%MQTT_SERVER%" required>
|
||||
<input id="mqtt_server" name="mqtt_server" type="text" placeholder="Address of your MQTT Broker" class="form-control input-md" value="%MQTT_SERVER%">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user