200 lines
5.7 KiB
HTML
200 lines
5.7 KiB
HTML
|
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset='UTF-8'>
|
||
|
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
||
|
<title>CanGrow - Ruderalis Indica</title>
|
||
|
|
||
|
<link rel='icon' href='data:;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAABcElEQVQ4y42TzU/bQBDFf7Nx1qGuAYVgQSuo2khBggPhyIH//9AiJAQ9tEeLqCKiUD6sxF52OMSEBCdW57aa9968fTsr3V5XWVLPO6sANNL7ZRAMNeU6Ea4T1UEI6pr55kcAwhpMrYOpk2/r/yEQmKWkIonf+TZVgex4Fw0bIEtIAALF3gbZ8U5VwKa3PJ18JT9IpiLvyflBwuhLG5veVUM0/0aoCONPa2hQjWZ8uEVeupJnXSBwO8YOH8iTeAKc2Q4Xt2C1VZL93F7MjbK/bxDnp5Zn7b+So+9pdQ+K/Q5qJlrRj5Ts6DM+rK7Ih7Mr3HaM7jYQVZqXQ6Tb6yqBYdTfomhHiFfUyMI3f+01/z7RHNzTGDyWGThP63SA2d8EEfIkrgQpzmOvH0AV+3M4zegNpUwagAYG8Yp4BS0nl4Kz5Mpf0JXJMby6w/66Aa+M+9uE53/Iexsggq4ESOYWC0jmsBfX8xdXhcJjL4cLc3kBl8uJGQ/CrpAAAAAASUVORK5CYII='>
|
||
|
<style>
|
||
|
body {
|
||
|
color: #cae0d0;
|
||
|
background-color: #1d211e;
|
||
|
font-family: helvetica;
|
||
|
}
|
||
|
|
||
|
.center {
|
||
|
width: 100%;
|
||
|
margin: auto;
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5 {
|
||
|
text-align: center;
|
||
|
}
|
||
|
a:link, a:visited {
|
||
|
color: #04AA6D;
|
||
|
}
|
||
|
a:hover {
|
||
|
color: #64AA6D;
|
||
|
}
|
||
|
a:active {
|
||
|
color: #04AA6D;
|
||
|
}
|
||
|
.infomsg , .warnmsg {
|
||
|
color: #fff;
|
||
|
border-radius: 3px;
|
||
|
padding: 4px;
|
||
|
width: fit-content; min-width: 200px; max-width: 420px;
|
||
|
margin: auto;
|
||
|
margin-bottom: 5px;
|
||
|
font-weight: bold;
|
||
|
text-align: center;
|
||
|
text-decoration: none;
|
||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
|
||
|
}
|
||
|
.infomsg {
|
||
|
background: #04AA6D;
|
||
|
}
|
||
|
.warnmsg {
|
||
|
background: #aa4204;
|
||
|
}
|
||
|
.inputShort {
|
||
|
width: 42px;
|
||
|
}
|
||
|
|
||
|
.nav {
|
||
|
background: #333;
|
||
|
width: 100%;
|
||
|
margin: auto;
|
||
|
margin-bottom: 10px;
|
||
|
padding: 0;
|
||
|
position: relative;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
.nav li {
|
||
|
display: inline-block;
|
||
|
list-style: none;
|
||
|
}
|
||
|
|
||
|
.nav li:first-of-type {
|
||
|
background: #026b45;
|
||
|
border-top-left-radius: 3px;
|
||
|
border-bottom-left-radius: 3px;
|
||
|
}
|
||
|
.nav li a , .nav span, .button, .button:link, input[type=button], input[type=submit], input[type=reset] {
|
||
|
color: #ddd;
|
||
|
display: block;
|
||
|
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
|
||
|
font-size:0.8em;
|
||
|
padding: 10px 20px;
|
||
|
text-decoration: none;
|
||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
|
||
|
}
|
||
|
|
||
|
.nav li a:hover , .activeMenu, .button:link:hover, .button:visited:hover, input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
|
||
|
background: #04AA6D;
|
||
|
color: #fff;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
.nav li a:active {
|
||
|
background: #026b45;
|
||
|
color: #cae0d0;
|
||
|
}
|
||
|
|
||
|
.activeMenu {
|
||
|
background: #444;
|
||
|
}
|
||
|
|
||
|
.MenuTime {
|
||
|
background: #292929;
|
||
|
}
|
||
|
|
||
|
.button, .button:link, .button:visited, input[type=button], input[type=submit], input[type=reset] {
|
||
|
background: #026b45;
|
||
|
color: #fff;
|
||
|
border-radius: 3px;
|
||
|
padding: 6px 12px;
|
||
|
text-align: center;
|
||
|
text-decoration: none;
|
||
|
display: inline-block;
|
||
|
border: none;
|
||
|
}
|
||
|
|
||
|
.button:link:active, .button:visited:active, input[type=button]:active, input[type=submit]:active, input[type=reset]:active {
|
||
|
background: #026b45;
|
||
|
color: #cae0d0;
|
||
|
}
|
||
|
|
||
|
input[type=text], input[type=date], input[type=number], input[type=password], select {
|
||
|
background: #cae0d0;
|
||
|
color: #1d211e;
|
||
|
border: 1px solid #026b45;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
@media only screen and (min-width: 1280px) {
|
||
|
.center, .nav {
|
||
|
width: 60%; min-width: 420px;
|
||
|
}
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<ul class='nav'><li><a href='/'>🌱 Ruderalis Indica</a></li>
|
||
|
<li><a href='/growSettings' >🔆 Grow settings</a></li>
|
||
|
<li><a href='/systemSettings' class='activeMenu'>⚙ System settings</a></li>
|
||
|
<li><a href='/wifiSettings' >📡 WiFi settings</a></li>
|
||
|
<li><a href='/help' >❓ Help</a></li>
|
||
|
<li><span class='MenuTime'>00:03:39</span></li>
|
||
|
<li><a href='https://git.la10cy.net/DeltaLima/CanGrow' target='_blank'>CanGrow v0.1</a></li>
|
||
|
</ul><div class='center'><h2>⚙ System settings</h2><p>here you can set which features and sensors you use<br></p><form method='post' action='/systemSettings/save'>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>Use FAN: </td>
|
||
|
<td>
|
||
|
<select id='UseFan' name='UseFan' required>
|
||
|
<option value='1' selected >Yes</option>
|
||
|
<option value='0'>No</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Use PUMP: </td>
|
||
|
<td><select id='UsePump' name='UsePump' required>
|
||
|
<option value='1' selected >Yes</option>
|
||
|
<option value='0'>No</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>Use relais for LED:
|
||
|
</td>
|
||
|
<td>
|
||
|
<select id='UseLEDrelais' name='UseLEDrelais' required>
|
||
|
<option value='1'>Yes</option>
|
||
|
<option value='0' selected >No</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>Use relais for FAN: </td>
|
||
|
<select id='UseFANrelais' name='UseFANrelais' required>
|
||
|
<option value='1'>Yes</option>
|
||
|
<option value='0' selected >No</option>
|
||
|
</select>
|
||
|
</tr>
|
||
|
PUMP ON time: <input class='inputShort' type='number' name='PumpOnTime' min='0' max='255' value='3' required> Seconds<br>
|
||
|
Soilmoisture sensor: <select id='MoistureSensor_Type' name='MoistureSensor_Type' required>
|
||
|
<option value='1' selected >Analog capacitive</option>
|
||
|
<option value='2'>I2C chirp</option>
|
||
|
</select><br>
|
||
|
Soilmoisture low: <input class='inputShort' type='number' name='SoilmoistureLow' min='0' value='20' required> %<br>
|
||
|
Temperature sensor: <select id='TemperatureSensor_Type' name='TemperatureSensor_Type' required>
|
||
|
<option value='1' selected >DHT11/22</option>
|
||
|
<option value='2'>I2C chirp</option>
|
||
|
</select><br>
|
||
|
NTP offset: <input class='inputShort' type='number' name='NtpOffset' min='-12' max='14' value='2' required> Hours<br>
|
||
|
Maintenance Duration: <input class='inputShort' type='number' name='MaintenanceDuration' min='0' max='900' value='300' required> Seconds<br>
|
||
|
<input type='submit' value='Save'>
|
||
|
|
||
|
</table>
|
||
|
</form>
|
||
|
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|