Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
b64d5150
Commit
b64d5150
authored
Feb 14, 2022
by
Eric Duminil
Browse files
Make some space
parent
81dc2d70
Pipeline
#5812
passed with stage
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_server.cpp
View file @
b64d5150
...
...
@@ -71,15 +71,15 @@ namespace web_server {
body_template
=
PSTR
(
"<tr><th colspan='2'>%s</th></tr>
\n
"
"<tr><td>CO<sub>2</sub>
concentration
</td><td>%5d ppm</td></tr>
\n
"
"<tr><td>CO<sub>2</sub></td><td>%5d ppm</td></tr>
\n
"
"<tr><td>Temperature</td><td>%.1f℃</td></tr>
\n
"
"<tr><td>Humidity</td><td>%.1f%%</td></tr>
\n
"
"<tr><td>Last measurement</td><td>%s</td></tr>
\n
"
"<tr><td>
Measurement t
imestep</td><td>%5d s</td></tr>
\n
"
"<tr><td>
T
imestep</td><td>%5d s</td></tr>
\n
"
"<tr><th colspan='2'>CSV</th></tr>
\n
"
//TODO: Gray out if !config::csv_active
"<tr><td>Last write</td><td>%s</td></tr>
\n
"
"<tr><td>Timestep</td><td>%5d s</td></tr>
\n
"
"<tr><td>Available
drive
space</td><td>%d kB</td></tr>
\n
"
"<tr><td>Available space</td><td>%d kB</td></tr>
\n
"
"<tr><th colspan='2'>MQTT</th></tr>
\n
"
//TODO: Gray out if !config::mqtt_active
"<tr><td>Connected?</td><td>%s</td></tr>
\n
"
"<tr><td>Last publish</td><td>%s</td></tr>
\n
"
...
...
@@ -102,6 +102,7 @@ namespace web_server {
"<tr><td>Frag</td><td>%3d%%</td></tr>
\n
"
"<tr><td>Max loop duration</td><td>%5d ms</td></tr>
\n
"
"<tr><td>Board</td><td>%s</td></tr>
\n
"
"<tr><td>ID</td><td>%s</td></tr>
\n
"
"<tr><td>Ampel firmware</td><td>%s</td></tr>
\n
"
"<tr><td>Uptime</td><td>%2d d %4d h %02d min %02d s</td></tr>
\n
"
"</table>
\n
"
...
...
@@ -210,7 +211,7 @@ namespace web_server {
#endif
config
::
temperature_offset
,
config
::
auto_calibrate_sensor
?
"Yes"
:
"No"
,
config
::
ampel_name
(),
config
::
ampel_name
(),
wifi
::
local_ip
,
wifi
::
local_ip
,
ampel
.
macAddress
,
ESP
.
getFreeHeap
(),
esp_get_max_free_block_size
(),
esp_get_heap_fragmentation
(),
ampel
.
max_loop_duration
,
ampel
.
board
,
ampel
.
version
,
dd
,
hh
,
mm
,
ss
);
esp_get_heap_fragmentation
(),
ampel
.
max_loop_duration
,
ampel
.
board
,
ampel
.
sensorId
,
ampel
.
version
,
dd
,
hh
,
mm
,
ss
);
Serial
.
print
(
F
(
" - Body size : "
));
Serial
.
print
(
strlen
(
content
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment