diff --git a/README.md b/README.md
index 32f44724..57d73e0b 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,11 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571
-##### Rolling - (2020-09-16)
+##### Rolling - (2020-09-20)
+
+* Update HTML-Backround (thanks to michaeljoos72)
+
+2020-09-16
* Impovements in hostname
diff --git a/code/src/CMakeLists.txt b/code/src/CMakeLists.txt
index 3a4eaf13..26822ce5 100644
--- a/code/src/CMakeLists.txt
+++ b/code/src/CMakeLists.txt
@@ -1,6 +1,14 @@
# This file was automatically generated for projects
# without default 'CMakeLists.txt' file.
+if(NOT CMAKE_BUILD_EARLY_EXPANSION)
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/_version.cpp
+ COMMAND ${CMAKE_COMMAND} -P
+ ${CMAKE_CURRENT_SOURCE_DIR}/version.cmake)
+endif()
+
FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*)
# idf_component_register(SRCS ${app_sources})
diff --git a/code/src/main.cpp b/code/src/main.cpp
index 82f56d05..67cbf1cd 100644
--- a/code/src/main.cpp
+++ b/code/src/main.cpp
@@ -5,6 +5,7 @@
#include "driver/gpio.h"
#include "sdkconfig.h"
+//#include "version.h"
#include "ClassLogFile.h"
diff --git a/code/src/version.cmake b/code/src/version.cmake
new file mode 100644
index 00000000..20c189b0
--- /dev/null
+++ b/code/src/version.cmake
@@ -0,0 +1,43 @@
+execute_process(COMMAND git log --pretty=format:'%h' -n 1
+ OUTPUT_VARIABLE GIT_REV
+ ERROR_QUIET)
+
+# Check whether we got any revision (which isn't
+# always the case, e.g. when someone downloaded a zip
+# file from Github instead of a checkout)
+if ("${GIT_REV}" STREQUAL "")
+ set(GIT_REV "N/A")
+ set(GIT_DIFF "")
+ set(GIT_TAG "N/A")
+ set(GIT_BRANCH "N/A")
+else()
+ execute_process(
+ COMMAND bash -c "git diff --quiet --exit-code || echo +"
+ OUTPUT_VARIABLE GIT_DIFF)
+ execute_process(
+ COMMAND git describe --exact-match --tags
+ OUTPUT_VARIABLE GIT_TAG ERROR_QUIET)
+ execute_process(
+ COMMAND git rev-parse --abbrev-ref HEAD
+ OUTPUT_VARIABLE GIT_BRANCH)
+
+ string(STRIP "${GIT_REV}" GIT_REV)
+ string(SUBSTRING "${GIT_REV}" 1 7 GIT_REV)
+ string(STRIP "${GIT_DIFF}" GIT_DIFF)
+ string(STRIP "${GIT_TAG}" GIT_TAG)
+ string(STRIP "${GIT_BRANCH}" GIT_BRANCH)
+endif()
+
+set(VERSION "const char* GIT_REV=\"${GIT_REV}${GIT_DIFF}\";
+const char* GIT_TAG=\"${GIT_TAG}\";
+const char* GIT_BRANCH=\"${GIT_BRANCH}\";")
+
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp)
+ file(READ ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp VERSION_)
+else()
+ set(VERSION_ "")
+endif()
+
+if (NOT "${VERSION}" STREQUAL "${VERSION_}")
+ file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp "${VERSION}")
+endif()
\ No newline at end of file
diff --git a/firmware/bootloader.bin b/firmware/bootloader.bin
index a62e024e..cd992d7d 100644
Binary files a/firmware/bootloader.bin and b/firmware/bootloader.bin differ
diff --git a/firmware/firmware.bin b/firmware/firmware.bin
index 9ad3245c..0d0e3cce 100644
Binary files a/firmware/firmware.bin and b/firmware/firmware.bin differ
diff --git a/firmware/html.zip b/firmware/html.zip
index 7e430bca..776a0f20 100644
Binary files a/firmware/html.zip and b/firmware/html.zip differ
diff --git a/sd-card/html/edit_alignment.html b/sd-card/html/edit_alignment.html
index 61ee8ef8..35cb6783 100644
--- a/sd-card/html/edit_alignment.html
+++ b/sd-card/html/edit_alignment.html
@@ -1,101 +1,98 @@
-
- Make Alignment
+Make Alignment
+
+
+
+
-
-
-
-
-
Define Alignment Structure in Reference Image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Storage path/name:
-
-
+
+
+
Define Alignment Structure in Reference Image
-
-
-
-
- x:
-
-
- dx:
-
-
-
-
- y:
-
-
- dy:
-
-
-
-
-
-
-
-
-
-
-
-
-
- Original Image
-
-
- Reference Image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
+
+
+
Select Reference:
+
+
+
Storage Path/Name:
+
+
+
x:
+
dx:
+
+
+
+
y:
+
dy:
+
+
+
Original Image:
+
Reference Image:
+
+
+
+
+
+
+
-
+
+
+
-
-
\ No newline at end of file
diff --git a/sd-card/html/edit_analog.html b/sd-card/html/edit_analog.html
index d28c1902..d6935ace 100644
--- a/sd-card/html/edit_analog.html
+++ b/sd-card/html/edit_analog.html
@@ -1,87 +1,108 @@
-
- Make Alignment
+
+Make Analog Alignment
+
+
+
-
-
-
-
-
Edit Analog
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- name:
-
-
-
-
+
-
-
-
-
- x:
-
-
- dx:
-
-
-
-
-
-
-
-
- y:
-
-
- dy:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Edit Analog
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Name:
+
+
+
+
+
+
+
x:
+
dx:
+
+
+
+
y:
+
dy:
+
+
+
+
+
+
+
+
-
+
+
+
-
-
+
\ No newline at end of file
diff --git a/sd-card/html/edit_check.html b/sd-card/html/edit_check.html
index cb521185..499ce6c5 100644
--- a/sd-card/html/edit_check.html
+++ b/sd-card/html/edit_check.html
@@ -1,26 +1,49 @@
+
+
+
+Check
+
+
+
+
+
-
Result:
+
Result:
-
+
-
+
-
+
+
+
+
-
Takes up to 2 Minutes!
-
+
Digits and Analog recognition not yet implemented.
It is strongly recommended to update firmware and content of /html directory on SD-card at the same time!
1. Firmware Update
@@ -17,8 +35,8 @@
-
-
+
+
@@ -26,7 +44,7 @@
-
+
@@ -40,19 +58,28 @@
- (Takes about 60s)
+
+
+
+
+
+
+ (Takes about 60s)
+
+
+
-
2. Update /html directory
+
2. Update "/html" directory
-
-
+
+
@@ -60,7 +87,7 @@
-
+
@@ -74,7 +101,7 @@
-
+
@@ -82,7 +109,7 @@
-
+
@@ -317,6 +344,5 @@ function uploadhtml() {
init();
-
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/sd-card/html/prevalue_set.html b/sd-card/html/prevalue_set.html
index 6d61cc71..87fa5f8d 100644
--- a/sd-card/html/prevalue_set.html
+++ b/sd-card/html/prevalue_set.html
@@ -1,72 +1,48 @@
-
- jomjol - AI on the edge
-
-
-
-
-
+
+
+
+Set PreValue
+
+
-
+
-
-
-
-
Current Value:
-
-
-
-
Set Value:
- Input (Format = 123.456):
- PreValue:
-
-
-
-
-
Result:
-
-
-
-
-
-
+
+
Set the previous value for consistency check and substitution for NaN
+
+
+
+
Current Value:
+
+
+
+
Set Value:
+ Input (Format = 123.456):
+ PreValue:
+
+
+
+
+
+
Result:
+
+
+
+
\ No newline at end of file
diff --git a/sd-card/html/reboot_page.html b/sd-card/html/reboot_page.html
index 1751b308..3b924f2c 100644
--- a/sd-card/html/reboot_page.html
+++ b/sd-card/html/reboot_page.html
@@ -1,22 +1,32 @@
-
- jomjol - AI on the edge
-
-
-
-
+
-
Do you really want to reboot your system now?
+
Do you really want to reboot your ESP32 now?
-
+
@@ -33,4 +43,5 @@ function doReboot() {
}
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/sd-card/html/wasserzaehler_roi.html b/sd-card/html/wasserzaehler_roi.html
index 20c01fba..fa47e2b1 100644
--- a/sd-card/html/wasserzaehler_roi.html
+++ b/sd-card/html/wasserzaehler_roi.html
@@ -1,93 +1,107 @@
-
- jomjol - AI on the edge
-
-
-
+
+
+
+Overview
+
+
+
+
+
+
-
-
- Raw Value:
-
+
+
Raw Value:
-
-
+
+
-
- Corrected Value:
-
+
Corrected Value:
-
-
+
+
-
- Checked Value:
-
+
Checked Value:
-
-
+
+
-
- Start Time:
-
+
Start Time:
-
-
+
+
-
+
+
+
+
+
+
-
-
-
\ No newline at end of file
+
+
\ No newline at end of file