Skip to content

Commit

Permalink
Исправлен баг в таймерах, начали делать гаджет для управления кранами…
Browse files Browse the repository at this point in the history
… + - другие мелкие фиксы
  • Loading branch information
renat2985 committed Aug 21, 2017
1 parent b94f2ee commit 924c90f
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file added data/block-leakag.htm.gz
Binary file not shown.
29 changes: 29 additions & 0 deletions data/config.modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,34 @@
{
"type": "MQTT"
}
],
"Leakag": [
{
"type": "Serial 115200"
},
{
"type": "wifi 20 13"
},
{
"type": "NTP"
},
{
"type": "Upgrade"
},
{
"type": "SSDP"
},
{
"type": "HTTP"
},
{
"type": "DDNS"
},
{
"type": "TIMERS"
},
{
"type": "MQTT"
}
]
}
Binary file modified data/css/build.css.gz
Binary file not shown.
1 change: 1 addition & 0 deletions data/first-connect.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"Sonoff-rf":"Sonoff-rf / Sonoff / Wi-Fi Smart socket",
"RGB":"RGB (WS2811-12/NeoPixel)",
"Jalousie":"Jalousie",
"Leakag":"Leakag",
"Smart-Room":"Smart-Room"
}
},
Expand Down
Binary file modified data/help.htm.gz
Binary file not shown.
Binary file modified data/js/build.chart.js.gz
Binary file not shown.
Binary file modified data/lang/lang.en.json.gz
Binary file not shown.
Binary file modified data/lang/lang.lv.json.gz
Binary file not shown.
Binary file modified data/lang/lang.ru.json.gz
Binary file not shown.
Binary file modified data/lang/lang.ua.json.gz
Binary file not shown.
Binary file modified data/page.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/relay.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
{
"type": "text",
"module": "movement",
"title": "{{LangPir2}}",
"title": "{{LangPir2}} {{LangSoon}}",
"class": "alert alert-info",
"style": "width:60%;float:left;"
},
Expand Down
2 changes: 1 addition & 1 deletion data/rgb.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
{
"type": "text",
"module": "movement",
"title": "{{LangPir2}}",
"title": "{{LangPir2}} {{LangSoon}}",
"class": "alert alert-info",
"style": "width:60%;float:left;"
},
Expand Down
Binary file modified data/timer.htm.gz
Binary file not shown.
17 changes: 17 additions & 0 deletions dev_data/block-leakag.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div class="col-md-6">
<div class="block">
<h5 class="alert-success"><a href="http://{{ip}}">{{SSDP}}</a></h5>
<div class="alert alert-dismissible alert-warning {{g691423-{{ip}}}}">
<button class="close" onclick="hide('g691423-{{ip}}',this);" type="button">×</button>
<a href="http://{{ip}}/timer.htm" target="_blank" class="close"><i class="popup-img"></i></a>
<ul>{{timerList}}</ul>
</div>
<hr>
<input type="button" onclick="ajax('{{ip}}', 'cmd?command=leakagnot', this);" value="{{stateLeakag}}" class="btn btn-block btn-lg btn-primary">
<hr>
<div class="btn-group btn-block">
<a href="http://{{ip}}/page.htm?jalousie" class="btn btn-default" style="width:80%"><i class="set-img"></i>{{LangOptions1}}</a>
<a href="http://{{ip}}/page.htm?setup" class="btn btn-default" style="width:20%"><i class="opt-img"></i></a>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion dev_data/page.htm
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
dev_html += ' <div class="btn-group"><a href="#" class="btn btn-default btn-sm dropdown-toggle" onclick="toggle(\'repos-spiffs\');return false">Spiffs <span class="caret"><\/span><\/a><ul class="dropdown-menu hidden" id="repos-spiffs" style="min-width:350px"><li><a href="#" onclick="toggle(\'sonoff-spiffs\');loadBuild(\'sonoff\',\'spiffs\');return false"><b>Sonoff<\/b> (Relay) <span class="caret"><\/span><\/a><a href="https://github.com/tretyakovsa/Sonoff_WiFi_switch/commits/master" style="float:right;margin-top:-27px" target="_blank"><i class="help-img"><\/i> History<\/a><ul class="hidden" id="sonoff-spiffs" style="margin-right:20px"><li><a href="#">'+jsonResponse.LangLoading+'<\/a><\/li><\/ul><\/li><li><a href="#" onclick="toggle(\'rgb-spiffs\');loadBuild(\'rgb\',\'spiffs\');return false""><b>RGB<\/b> (WS2811-12/NeoPixel) <span class="caret"><\/span><\/a><a href="https://github.com/renat2985/rgb/commits/master" style="float:right;margin-top:-27px" target="_blank"><i class="help-img"><\/i> History<\/a><ul class="hidden" id="rgb-spiffs" style="margin-right:20px"><li><a href="#">'+jsonResponse.LangLoading+'<\/a><\/li><\/ul><\/li><\/ul><\/div>';
}
dev_html += '<form method="POST" style="float:right" action="/update" enctype="multipart/form-data"><div class="btn-group"><input type="file" class="btn btn-primary btn-xs" name="update" style="height:33px" accept=".bin"><input type="submit" class="btn btn-default btn-sm" value="Download" onclick="this.value=\''+jsonResponse.LangLoading+'\';" style="height:33px"><\/div><\/form><hr>';
dev_html += jsonResponse.LangType+': <select class="btn btn-default btn-sx" onchange="send_request(this, \'/configs?set=\'+this.value,\'\')"><option value="RGB">Select Please<\/option><option value="Sonoff-rf">Sonoff-rf / Sonoff / Wi-Fi Smart socket<\/option><option value="RGB">RGB (WS2811-12/NeoPixel)<\/option><option value="Jalousie">Jalousie<\/option><option value="Smart-Room">Smart-Room<\/option><\/select>';
dev_html += jsonResponse.LangType+': <select class="btn btn-default btn-sx" onchange="send_request(this, \'/configs?set=\'+this.value,\'\')"><option value="RGB">Select Please<\/option><option value="Sonoff-rf">Sonoff-rf / Sonoff / Wi-Fi Smart socket<\/option><option value="RGB">RGB (WS2811-12/NeoPixel)<\/option><option value="Jalousie">Jalousie<\/option><option value="Leakag">Leakag<\/option><option value="Smart-Room">Smart-Room<\/option><\/select>';
dev_html += '<\/span><\/span><\/div>';
document.getElementById('contents').innerHTML += dev_html;
}
Expand Down

0 comments on commit 924c90f

Please sign in to comment.