Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert " edit Config.h instead of config.h in WiFiSetup.cpp (because of error of platformio build)" #200

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
cd35c89
add slovak language
petob77 Nov 27, 2018
0091547
Update slovak.json
Nov 28, 2018
830b08a
Update slovak.json
Nov 28, 2018
c6c2477
Update slovak.json
Nov 28, 2018
72d6610
slovak update
petob77 Nov 28, 2018
b057887
slovak update
petob77 Nov 28, 2018
5268580
Merge branch 'master' of https://github.com/vitotai/BrewPiLess
petob77 Dec 2, 2018
cdd1847
slovak update
petob77 Dec 2, 2018
76b95c0
slovak update
petob77 Dec 2, 2018
a72ce5c
Update slovak.json
Dec 4, 2018
70d65bc
Update gruntfile.coffee
Dec 5, 2018
64b071c
slovak update
Dec 5, 2018
fe8e187
slovak update
Dec 5, 2018
2de6641
slovak update
Dec 5, 2018
1c276c3
slovak update
petob77 Dec 5, 2018
42f9ae8
slovak update
Dec 12, 2018
113b3c5
slovak update
Dec 13, 2018
dc8a74a
slovak update
petob77 Dec 13, 2018
eb81f20
platformio.ini edit
petob77 Dec 20, 2018
0eeaaee
edit
petob77 Dec 20, 2018
ec0b717
edit
petob77 Dec 20, 2018
51ee931
edit Config.h instead of config.h (because of error of platformio build)
petob77 Dec 20, 2018
e620212
edit Config.h instead of config.h (because of error of platformio build)
petob77 Dec 20, 2018
9d9aea9
Merge branch 'master' of https://github.com/petobena/BrewPiLess
petob77 Dec 20, 2018
bfade10
version 3.5
petob77 Feb 2, 2019
517b7f6
platformio.ini edit
petob77 Feb 2, 2019
15563f7
platformio.ini update
petob77 Feb 2, 2019
223b2c5
update
petob77 Feb 3, 2019
8eddb8e
slovak update
petob77 Feb 3, 2019
16d6710
update
petob77 Feb 13, 2019
af2345c
Merge branch 'master' of https://github.com/vitotai/BrewPiLess
petob77 Feb 13, 2019
a8b3ae2
platformio.ini edit
petob77 Feb 16, 2019
e5ce064
Merge branch 'master' of https://github.com/vitotai/BrewPiLess
petob77 Feb 16, 2019
7596108
3.6
petob77 Aug 5, 2019
547622c
add italian translation
vonfritz Nov 6, 2019
50dc85f
Merge pull request #195 from vonfritz/italian
vitotai Nov 10, 2019
521b138
update
petob77 Nov 15, 2019
5b6e55b
Merge branch 'master' of https://github.com/vitotai/BrewPiLess
petob77 Nov 15, 2019
c352d74
slovak update
petob77 Nov 15, 2019
834fc6f
slovak update
petob77 Nov 15, 2019
9c2575a
Merge pull request #154 from petobena/master
vitotai Nov 16, 2019
7f8663d
Merge pull request #198 from petobena/my-single-change
vitotai Nov 16, 2019
b2b4312
Revert " edit Config.h instead of config.h in WiFiSetup.cpp (because …
vitotai Nov 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions htmljs/dist/italian/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file added htmljs/dist/italian/BPLLogViewer.htm.gz
Binary file not shown.
124 changes: 124 additions & 0 deletions htmljs/dist/italian/BPLog.htm

Large diffs are not rendered by default.

Binary file added htmljs/dist/italian/BPLog.htm.gz
Binary file not shown.
1 change: 1 addition & 0 deletions htmljs/dist/italian/classic-config.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="it"><head><meta http-equiv=content-type content="text/html; charset=utf-8"><title> BrewPiLess Configurazione </title><script>function invoke(e){var n=new XMLHttpRequest;n.onreadystatechange=function(){4==n.readyState&&(200==n.status?e.success(n.responseText):n.onerror(n.status))},n.ontimeout=function(){void 0!==e.timeout?e.timeout():n.onerror(-1)},n.onerror=function(n){void 0!==e.fail&&e.fail(n)},n.open(e.m,e.url,!0),void 0!==e.data?(n.setRequestHeader("Content-Type",void 0!==e.mime?e.mime:"application/x-www-form-urlencoded"),n.send(e.data)):n.send()}var BWF={BrewProfile:"/brewing.json",process:function(msg){if(null==this.raw)for(var key in eval("m={"+msg+"}"),m)void 0!==this.handlers[key]&&this.handlers[key](m[key]);else this.raw(msg)},on:function(n,e){this.handlers[n]=e},send:function(n){1==this.ws.readyState&&this.ws.send(n)},reconnecting:!1,connect:function(){var e=this;if("undefined"!=typeof WebSocket){var n=new WebSocket("ws://"+document.location.host+"/ws");(e.ws=n).onopen=function(){console.log("Connected"),e.onconnect()},n.onclose=function(){e.reconnecting||(console.log("WS close"),e.error(-2),e.auto&&setTimeout(function(){e.reconnect()},5e3))},n.onmessage=function(n){e.process(n.data)}}else alert("Error! WebSocket Not Supported!")},reconnect:function(n){n=void 0!==n;var e=this;e.reconnecting||(n||1!=e.ws.readyState)&&(console.log("reconnect forced:"+n+" state:"+e.ws.readyState),e.reconnecting=!0,e.ws.close(),e.connect(),e.reconnecting=!1)},init:function(n){var e=this;e.error=void 0===n.error?function(){}:n.error,e.handlers=void 0===n.handlers?{}:n.handlers,e.raw=void 0===n.raw?null:n.raw,e.onconnect=void 0===n.onconnect?function(){}:n.onconnect,e.auto=void 0===n.reconnect||n.reconnect,e.connect()},save:function(n,e,o,t){invoke({m:"POST",url:"/fputs",data:"path="+n+"&content="+encodeURIComponent(e),success:function(){o()},fail:function(n){t(n)}})},load:function(n,e,o){invoke({m:"GET",url:n,success:function(n){e(n)},fail:function(n){o(n)}})}}</script><script>function s_ajax(t){var e=new XMLHttpRequest;e.onreadystatechange=function(){4==e.readyState&&(200==e.status?t.success(e.responseText):e.onerror(e.status))},e.ontimeout=function(){void 0!==t.timeout?t.timeout():e.onerror(-1)},e.onerror=function(e){void 0!==t.fail&&t.fail(e)},e.open(t.m,t.url,!0),void 0!==t.data?(e.setRequestHeader("Content-Type",void 0!==t.mime?t.mime:"application/x-www-form-urlencoded"),e.send(t.data)):e.send()}var Q=function(e){return document.querySelector(e)}</script><script>function formatIP(n){return"0.0.0.0"==n?"":n}function loadSetting(){s_ajax({url:"config?cfg=1",m:"GET",success:function(n){var t=JSON.parse(n);window.oridata=t,Object.keys(t).map(function(n){var e=Q("input[name="+n+"]");e?e.classList.contains("iptype")?e.value=formatIP(t[n]):"checkbox"==e.type?e.checked=0!=t[n]:e.value=t[n]:(e=Q("select[name="+n+"]"))&&(e.value=t[n])})},fail:function(n){alert("errore lettura dati:"+n)}})}function waitrestart(){Q("#waitprompt").style.display="block",Q("#inputform").style.display="none",setTimeout(function(){window.location.reload()},15e3)}function save(){var i=document.querySelectorAll("#sysconfig input"),a={},s=!1;Object.keys(i).map(function(n,e){var t;"submit"!=i[e].type&&(i[e].name&&""!=i[e].name&&(t="checkbox"==i[e].type?i[e].checked?1:0:i[e].value.trim(),a[i[e].name]=t,window.oridata[i[e].name]==t||i[e].classList.contains("nb")||(s=!0)))});var n=Q("select[name=wifi]");a.wifi=n.value,console.log(JSON.stringify(a)),s_ajax({url:"config"+(s?"":"?nb"),data:"data="+encodeURIComponent(JSON.stringify(a)),m:"POST",success:function(n){s&&waitrestart()},fail:function(n){alert("errore scrittura dati:"+n)}})}function load(){Q("#verinfo")&&(Q("#verinfo").innerHTML="v"+JSVERSION,getActiveNavItem()),loadSetting(),Net.init(),Q("#submitsave").onclick=function(n){return n.preventDefault(),save(),!1}}function validIP(n){var e=n.split("."),t=0;if(4!=e.length)return!1;for(var i=0;i<4;i++){var a=parseInt(e[i]);if(t=(t<<8)+a,255<a)return!1}return t}function modechange(n){}var Net={select:function(n){return document.getElementById("ssid").value=n.innerText||n.textContent,document.getElementById("nwpass").focus(),!1},init:function(){this.litem=Q(".nwlist"),this.litem.parentNode.removeChild(this.litem),this.setupEvent(),this.hide()},nwevent:function(n){void 0!==n.list?this.list(n.list):void 0!==n.ssid&&(""!=n.ssid&&(Q("#connnected-ssid").innerHTML=n.ssid),void 0!==n.ip&&""!=n.ip&&(Q("#sta-ip").innerHTML=n.ip))},rssi:function(n){return 0<n?"?":Math.min(Math.max(2*(n+100),0),100)},list:function(n){var e=Q("#networks");e.innerHTML="";for(var t=0;t<n.length;t++){var i=this.litem.cloneNode(!0);i.getElementsByTagName("a")[0].innerHTML=n[t].ssid;var a=i.getElementsByTagName("span")[0];a.innerHTML=this.rssi(n[t].rssi)+"%",n[t].enc&&(a.className=a.className+" l"),e.appendChild(i)}},setupEvent:function(){var e=this;BWF.init({handlers:{W:function(n){e.nwevent(n)}}})},scan:function(){return Q("#networks").innerHTML="Scanning...",s_ajax({m:"GET",url:"/wifiscan",success:function(){}}),!1},save:function(){var n="nw="+encodeURIComponent(Q("#ssid").value);""!=Q("#nwpass").value&&(n=n+"&pass="+encodeURIComponent(Q("#nwpass").value));var e=validIP(Q("#staticip").value),t=validIP(Q("#gateway").value),i=validIP(Q("#netmask").value);validIP(Q("#dns").value);return e&&t&&i&&(n=n+"&ip="+Q("#staticip").value.trim()+"&gw="+Q("#gateway").value.trim()+"&nm="+Q("#netmask").value.trim()+"&dns="+Q("#dns").value.trim()),s_ajax({m:"POST",url:"/wificon",data:n,success:function(){}}),this.hide(),!1},show:function(){Q("#networkselection").style.display="block"},hide:function(){Q("#networkselection").style.display="none"}}</script><style>#waitprompt{display:none}.modal{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;top:0;left:0;right:0;bottom:0;overflow-y:auto;overflow-x:hidden;z-index:1000;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1);transition:all .5s cubic-bezier(.23,1,.32,1);-webkit-transition-delay:0s;transition-delay:0s;background:rgba(0,0,0,.3)}.modal-content{position:relative;padding:2.4rem;background:#fff;background-clip:padding-box;-webkit-box-shadow:0 12px 15px 0 rgba(0,0,0,.25);box-shadow:0 12px 15px 0 rgba(0,0,0,.25);-webkit-transition:all .25s cubic-bezier(.23,1,.32,1);transition:all .25s cubic-bezier(.23,1,.32,1);max-width:600px;padding:2rem}.modal-header{font-weight:700;font-size:1.2em}.center{text-align:center}div,input{padding:5px;font-size:1em}.modal input{width:95%}body{text-align:center;font-family:verdana}.modal button{border:0;border-radius:.3rem;background-color:#1fa3ec;color:#fff;line-height:2.4rem;font-size:1.2rem;width:96%;margin:4px}.scannednetwork{float:right;width:64px;text-align:right}.l{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAALVBMVEX///8EBwfBwsLw8PAzNjaCg4NTVVUjJiZDRUUUFxdiZGSho6OSk5Pg4eFydHTCjaf3AAAAZElEQVQ4je2NSw7AIAhEBamKn97/uMXEGBvozkWb9C2Zx4xzWykBhFAeYp9gkLyZE0zIMno9n4g19hmdY39scwqVkOXaxph0ZCXQcqxSpgQpONa59wkRDOL93eAXvimwlbPbwwVAegLS1HGfZAAAAABJRU5ErkJggg==) no-repeat left center;background-size:1em}#networkselection{text-align:left;display:inline-block;min-width:260px}</style></head><body onload=load()><div id=waitprompt> Configuration saved. Wait for restart... (note: if the hostname is changed, the page won't be reloaded.) </div><div id=inputform><div id=sysconfig><form action=# action=post><table><tr><td> LCD auto off </td><td><input name=aoff type=text size=5 maxlength=5 class=nb> secondi </td></tr><tr><td> Titolo </td><td><input name=title type=text size=12 maxlength=24></td></tr><tr><td> Host/Rete Nome </td><td><input name=name type=text size=12 maxlength=16></td></tr><tr><td> HTTP Porta </td><td><input name=port type=text size=5 maxlength=5></td></tr><tr><td> User Name </td><td><input name=user type=text size=12 maxlength=16 class=nb></td></tr><tr><td> Password </td><td><input name=pass type=password size=12 maxlength=16 class=nb></td></tr><tr><td> Chiedi sempre la password </td><td><input type=checkbox name=protect></td></tr><tr><td> Modalità rete </td><td><select name=wifi class=nb onchange=modechange(this)><option value=1>Station</option><option value=2>AP</option><option value=3>Station + AP</option></select></td></tr><tr class=staconfig><td> Rete </td><td><button id=connnected-ssid onclick="return Net.show(),!1">...</button></td></tr><tr class=staconfig><td> IP </td><td><span id=sta-ip></span></td></tr><tr><td> Salva modifiche </td><td><input type=submit id=submitsave name=submit></td></tr></table></form></div></div><div id=networkselection class=modal><div class=modal-content><div class=modal-header> Selezione rete </div><div id=networks><div class=nwlist><a href=# onclick=Net.select(this) class=ssid>N</a>&nbsp;<span class=scannednetwork></span></div></div><div class=center><a href=# onclick="return Net.scan()"> Scan </a></div><form method=get action=#><input id=ssid name=ssid length=32 placeholder=SSID><br><input id=nwpass name=nwpass length=64 type=password placeholder=password><br><br><input id=staticip name=ip length=1 placeholder="IP fisso" class="nb iptype"><br><input id=gateway name=gw length=1 placeholder="Gateway" class="nb iptype"><br><input id=netmask name=mask length=1 placeholder="Netmask" class="nb iptype"><br><input id=dns name=dns length=1 placeholder="DNS" class="nb iptype"><br><br><button type=button onclick="return Net.save()">Salva modifiche</button> <button onclick="return Net.hide(),!1">Cancella</button></form></div></div></body></html>
Binary file added htmljs/dist/italian/classic-config.htm.gz
Binary file not shown.
1 change: 1 addition & 0 deletions htmljs/dist/italian/classic-gdc.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="it"><head><meta http-equiv=content-type content="text/html; charset=utf-8"><title> Dispositivo densità </title><script>function s_ajax(t){var e=new XMLHttpRequest;e.onreadystatechange=function(){4==e.readyState&&(200==e.status?t.success(e.responseText):e.onerror(e.status))},e.ontimeout=function(){void 0!==t.timeout?t.timeout():e.onerror(-1)},e.onerror=function(e){void 0!==t.fail&&t.fail(e)},e.open(t.m,t.url,!0),void 0!==t.data?(e.setRequestHeader("Content-Type",void 0!==t.mime?t.mime:"application/x-www-form-urlencoded"),e.send(t.data)):e.send()}var Q=function(e){return document.querySelector(e)}</script><script>var gdcurl="/gdc";function toFixed(){for(var e=document.querySelectorAll("input[type=text]"),t=0;t<e.length;t++)e[t].onchange=function(){this.value.match(/[\-\d\.]+e[\+\-][\d]+/)&&(this.value=Number(this.value).toFixed(9))}}function fill(e){for(var t in e){var n=Q("input[name="+t+"]");n&&("checkbox"==n.type?n.checked=e[t]:n.value=e[t])}}function save(){for(var e=document.getElementsByTagName("input"),t={},n=0;n<e.length;n++){var a=e[n];"checkbox"==a.type?t[a.name]=a.checked:"text"==a.type&&(t[a.name]=a.value)}s_ajax({url:gdcurl,m:"POST",mime:"aplication/json",data:JSON.stringify(t),success:function(e){alert("Done")},fail:function(e){alert("mancato aggiornamento dati:"+e)}})}function init(e){void 0===e&&(e=!1),e||(getActiveNavItem(),Q("#verinfo").innerHTML="v"+JSVERSION),toFixed(),s_ajax({url:gdcurl+"?data",m:"GET",success:function(e){fill(JSON.parse(e))},fail:function(e){}})}</script></head><body onload=init(!0)><form action="" method=post><table><tr><td> Usa Plato </td><td><input type=checkbox name=plato value=1></td></tr><tr><td>iSpindel</td><td><input type=checkbox name=ispindel value=1></td></tr><tr><td> Calcolato da BPL </td><td><input type=checkbox name=cbpl value=1></td></tr><tr><td> Coefficiente </td><td><input type=text name=a3 size=15>*x^3 + <input type=text name=a2 size=15>*x^2+ <input type=text name=a1 size=15>*x + <input type=text name=a0 size=15></td></tr><tr><td> Correzione temperatura </td><td><input type=checkbox name=tc value=1> @ <input type=text name=ctemp size=4>&deg;C</td></tr><tr><td> Coefficiente banda inferiore filtro </td><td><input type=text name=lpc size=4></td></tr><tr><td> Soglia densità stabile </td><td><input type=text name=stpt size=4> punti, 1= 0.001 per SG, e 0.1&deg;P per Plato </td></tr><tr><td> Salva modifiche </td><td><input type=submit name=submit onclick="return save(),!1"></td></tr></table></form></body></html>
Binary file added htmljs/dist/italian/classic-gdc.htm.gz
Binary file not shown.
Loading