Skip to content

Commit 8ce9de7

Browse files
committed
new Layout
1 parent d7a9dcc commit 8ce9de7

35 files changed

+344
-510
lines changed

data/config.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
-->
2828
</table>
2929

30-
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">HOME</button>
31-
<button type="button" class="image-btn" onclick="window.location.href='log.html'"><img src="file-list.png" >LOG</button>
32-
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">SETUP</button>
30+
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">Home</button>
31+
<button style="width: 100px;" type="button" class="image-btn" > </button>
32+
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">Setup</button>
3333

3434
</body>
3535
</html>

data/config_template.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
varDEVICE_s_Name=ABL-Wallbox;
66

7-
varWIFI_s_Mode=STA;
8-
varWIFI_s_Password=mypassword;
9-
varWIFI_s_SSID=myssid;
7+
varWIFI_s_Mode=AP;
8+
varWIFI_s_Password=;
9+
varWIFI_s_SSID=;
10+
11+
;varWIFI_s_Mode=STA;
12+
;varWIFI_s_Password=mypassword;
13+
;varWIFI_s_SSID=myssid;
1014

1115
varABL_i_A_soll_low = 6;
1216
varABL_i_A_soll_high = 16;

data/current.png

491 Bytes
Loading

data/index.html

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!DOCTYPE HTML>
22
<html>
3-
43
<head>
54
<title>%DEVICEID%</title>
65
<meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport">
@@ -21,45 +20,42 @@
2120
<h2>%DEVICEID%</h2>
2221
<div class="outerring" id="RING_ID">
2322
<div class="innerring"></div>
24-
<div id="ABL_KWH_IST"class="ringtext_value">---</div>
23+
<div id="ABL_KWH_IST" class="ringtext_value">---</div>
2524
<div class="ringtext_unit">[kW/h]</div>
25+
<div class="ringtext_time" id="ABL_CHARGE_TIME">--:--</div>
2626
<div class="ringtext_status" id="ABL_STATUS">--</div>
2727
</div>
28-
<table>
28+
<table>
2929
<tr>
30-
<td class="mywidth" id="ABL_A_SOLL">--</td>
31-
<td id="ABL_KW_IST">--</td>
32-
<td class="mywidth" id="ABL_KWH_SUM">--</td>
30+
<td class="table" id="ABL_A_SOLL">--</td>
31+
<td class="table" id="ABL_KW_IST">--</td>
32+
<td class="table" id="ABL_KWH_SUM">--</td>
3333
</tr>
3434
<tr>
3535
<th>I-max</th>
3636
<th>kW-charge</th>
3737
<th>kW/h-sum</th>
3838
</tr>
39-
</table>
40-
</p>
39+
</table>
40+
</p>
41+
<!-- if you want to switch Ipwm from the index-page
4142
<p><form action="" method="POST" >
4243
<input class="buttonred" name="ihigh" type="submit" value="%I-HIGH%">
4344
</form></p>
4445
<p><form action="" method="POST" >
4546
<input class="buttongreen" name="ilow" type="submit" value="%I-LOW%">
4647
</form></p>
47-
<p><form action="" method="POST" >
48-
<input class="buttonyellow" name="pause" type="submit" value="PAUSE" id="BUTTON_PAUSE">
49-
</form></p>
50-
51-
<!--
52-
<a class="buttonlink" href="setup.html">Setup</a>
53-
</p>
54-
-->
48+
-->
49+
<p>
50+
<form action="" method="POST" >
51+
<input class="buttonyellow" name="pause" type="submit" value="PAUSE" id="BUTTON_PAUSE">
52+
</form></p>
5553

56-
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">HOME</button>
57-
<button type="button" class="image-btn" onclick="window.location.href='log.html'"><img src="file-list.png" >LOG</button>
58-
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">SETUP</button>
54+
<button type="button" class="image-btn" onclick="window.location.href='log.html'"><img src="file-list.png">Log</button>
55+
<button type="button" class="image-btn" onclick="window.location.href='setcurrent.html'"><img src="current.png" >Set-Current</button>
56+
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">Setup</button>
5957

60-
61-
62-
<script type="text/javascript">
58+
<script type="text/javascript">
6359
//var t = new Date();
6460
function reqListener ()
6561
{
@@ -76,9 +72,10 @@ <h2>%DEVICEID%</h2>
7672
document.getElementById('ABL_STATUS').innerHTML = myArray[2];
7773
document.getElementById('ABL_KWH_IST').innerHTML = myArray[3];
7874
document.getElementById('ABL_KWH_SUM').innerHTML = (myArray[4]/1000);
75+
document.getElementById('ABL_CHARGE_TIME').innerHTML = myArray[5];
7976
}
8077
myStatus = String(myArray[2]);
81-
// Beispiel : https://code-boxx.com/change-override-css-with-javascript
78+
// example : https://code-boxx.com/change-override-css-with-javascript
8279
if (myStatus.startsWith('A'))
8380
{
8481
document.getElementById('ABL_STATUS').style.color = 'green';
@@ -135,9 +132,6 @@ <h2>%DEVICEID%</h2>
135132
oReq.open("GET", "/fetch");
136133
oReq.send();
137134
}, 2000);
138-
139-
140-
</script>
135+
</script>
141136
</body>
142-
143137
</html>

data/index_old.html

Lines changed: 0 additions & 139 deletions
This file was deleted.

data/info.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
4+
<script type="text/javascript">
5+
function myConfirm ()
6+
{
7+
return confirm('Neustart ?')
8+
}
9+
</script>
10+
11+
<head>
12+
<title>Config</title>
13+
<meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport">
14+
<link rel="stylesheet" type="text/css" href="style.css">
15+
</head>
16+
<body>
17+
<table>
18+
<form action="config.html" method="POST">
19+
<p>Info</p>
20+
<textarea autocorrect="off" name="info">%INFO%</textarea>
21+
</form>
22+
</table>
23+
24+
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">Home</button>
25+
<button style="width: 100px;" type="button" class="image-btn" > </button>
26+
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">Setup</button>
27+
28+
</body>
29+
</html>

data/log.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
<a class="buttonlink" href="setup.html">back</a>
2323
-->
2424

25-
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">HOME</button>
26-
<button type="button" class="image-btn" onclick="window.location.href='log.html'"><img src="file-list.png" >LOG</button>
27-
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">SETUP</button>
25+
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">Home</button>
26+
<button style="width: 100px;" type="button" class="image-btn" > </button>
27+
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">Setup</button>
2828

2929
<script>
3030
var stopscroll=false;

data/ota.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
<html lang="de">
33
<head>
44
<title>OTA-Update</title>
5-
<meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport">
5+
<meta content="width=device-width, initial-scale=0.9, user-scalable=yes" name="viewport">
66
<link rel="stylesheet" type="text/css" href="style.css">
77
<meta charset="UTF-8">
88
</head>
99
<body>
1010

1111

1212
<form method='POST' action='/ota_update' enctype='multipart/form-data'>
13-
1413
<!--
1514
<INPUT id="otaspiffs" type="radio" name="otatype" value="spiffs">
1615
<label for="otaspiffs">SPIFFS-DATA</label>
1716
1817
<INPUT id="otaprog" type="radio" name="otatype" value="prog" checked>
1918
<label for="otaprog">PROGRAM</label>
2019
-->
21-
<p></p>
22-
<div>Select a file 'spiffs.bin' (SPIFFS-Data) or 'firmware.bin' (Program) </div>
20+
</p>
21+
<div>Select a file 'spiffs.bin' (SPIFFS-Data) or 'firmware.bin' (Program)</div>
2322

2423
<input class='container' type='file' name='update' accept='.bin'>
25-
<input class='buttonred' type='submit' name="startupdate" value='START-UPLOAD'><BR>
26-
24+
<input class='buttonred' type='submit' name="startupdate" value='START-UPLOAD'><BR>
2725
</form>
2826
</p>
2927
<a class="buttonlink" href="reboot.html">REBOOT!</a>
3028
</p>
31-
<a class="buttonlink" href="setup.html">back</a>
29+
<button type="button" class="image-btn" onclick="window.location.href='index.html'"><img src="home.png">HOME</button>
30+
<button type="button" class="image-btn" > </button>
31+
<button type="button" class="image-btn" onclick="window.location.href='setup.html'"><img src="settings.png">Setup</button>
3232

3333
</body>
3434
</html>

data/ota2.html

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)