rolling 20210705

This commit is contained in:
jomjol
2021-07-05 07:30:04 +02:00
parent daa1960dff
commit e24ba68fec
9 changed files with 43 additions and 50 deletions

View File

@@ -47,12 +47,16 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
##### Rolling - (2021-07-03) ##### Rolling - (2021-07-05)
* Update jquery, inital config.ini
Rolling - (2021-07-03)
* Parameter `MaxRateValue` individual for each number * Parameter `MaxRateValue` individual for each number
* BugFix: MQTT server tried to connect even in case it was disabled * BugFix: MQTT server tried to connect even in case it was disabled
##### Rolling - (2021-07-01) Rolling - (2021-07-01)
* NEW FEATURE: adding support for more than 1 number on a meter (e.g. two different power readings) * NEW FEATURE: adding support for more than 1 number on a meter (e.g. two different power readings)
Therefore the concept of "Numbers" is implemented - a bunch of digits and analog counters are combined to one number. You can define them during setup of digital and analog ROIs: Therefore the concept of "Numbers" is implemented - a bunch of digits and analog counters are combined to one number. You can define them during setup of digital and analog ROIs:

Binary file not shown.

View File

@@ -1,57 +1,56 @@
[MakeImage] [MakeImage]
;LogImageLocation = /log/source ;LogImageLocation = /log/source
;LogfileRetentionInDays = 15
WaitBeforeTakingPicture = 5 WaitBeforeTakingPicture = 5
;LogfileRetentionInDays = 15
Brightness = -2
;Contrast = 0
;Saturation = 0
ImageQuality = 5 ImageQuality = 5
ImageSize = VGA ImageSize = VGA
;Brightness = -2
FixedExposure = false FixedExposure = false
[Alignment] [Alignment]
InitialRotate=180 InitialRotate = 179
FlipImageSize = false ;InitialMirror = false
/config/ref0.jpg 119 273
/config/ref1.jpg 456 138
SearchFieldX = 20 SearchFieldX = 20
SearchFieldY = 20 SearchFieldY = 20
InitialMirror= false
AlignmentAlgo = Default AlignmentAlgo = Default
;FlipImageSize = false
/config/ref0.jpg 104 271
/config/ref1.jpg 442 142
[Digits] [Digits]
Model = /config/dig1030s1q.tflite Model = /config/dig1030s1q.tflite
;LogImageLocation = /log/digit ;LogImageLocation = /log/digit
;LogfileRetentionInDays = 3 ;LogfileRetentionInDays = 3
ModelInputSize = 20 32 ModelInputSize = 20 32
digit1 306 120 37 67 main.digit1 292 120 37 67
digit2 355 120 37 67 main.digit2 340 120 37 67
digit3 404 120 37 67 main.digit3 389 120 37 67
[Analog] [Analog]
Model = /config/ana0700s1lq.tflite Model = /config/ana0630s2.tflite
;LogImageLocation = /log/analog ;LogImageLocation = /log/analog
;LogfileRetentionInDays = 3 ;LogfileRetentionInDays = 3
ModelInputSize = 32 32 ModelInputSize = 32 32
analog1 444 225 92 92 ExtendedResolution = true
analog2 391 329 92 92 main.analog1 430 230 92 92
analog3 294 369 92 92 main.analog2 376 331 92 92
analog4 168 326 92 92 main.analog3 279 372 92 92
ExtendedResolution = false main.analog4 150 327 92 92
[PostProcessing] [PostProcessing]
DecimalShift = 0 main.DecimalShift = 0
PreValueUse = true PreValueUse = true
PreValueAgeStartup = 720 PreValueAgeStartup = 720
AllowNegativeRates = false AllowNegativeRates = false
MaxRateValue = 0.1 main.MaxRateValue = 0.1
ErrorMessage = true ErrorMessage = true
CheckDigitIncreaseConsistency = false CheckDigitIncreaseConsistency = true
[MQTT] ;[MQTT]
;Uri = mqtt://IP-ADRESS:1883 ;Uri = mqtt://IP-ADRESS:1883
;Topic = wasserzaehler/zaehlerstand ;MainTopic = wasserzaehler
;TopicError = wasserzaehler/error
;TopicRate = wasserzaehler/rate
;TopicTimeStamp = wasserzaehler/timestamp
;ClientID = wasser ;ClientID = wasser
;user = USERNAME ;user = USERNAME
;password = PASSWORD ;password = PASSWORD
@@ -65,9 +64,8 @@ Logfile = false
LogfileRetentionInDays = 3 LogfileRetentionInDays = 3
[System] [System]
TimeZone = CET-1CEST,M3.5.0,M10.5.0/3 TimeZone = CET-1CEST
;TimeServer = fritz.box ;TimeServer = undefined
;hostname = watermeter ;AutoAdjustSummertime = false
SetupMode = true ;Hostname = undefined
SetupMode = true
[Ende]

View File

@@ -125,7 +125,7 @@ th, td {
<script type="text/javascript" src="./readconfigcommon.js"></script> <script type="text/javascript" src="./readconfigcommon.js"></script>
<script type="text/javascript" src="./readconfigparam.js"></script> <script type="text/javascript" src="./readconfigparam.js"></script>
<script type="text/javascript" src="./jquery-3.5.1.min.js"></script> <script type="text/javascript" src="./jquery-3.6.0.min.js"></script>
<script language="JavaScript"> <script language="JavaScript">
var canvas = document.getElementById('canvas'), var canvas = document.getElementById('canvas'),

View File

@@ -8,8 +8,8 @@ function getbasepath(){
if ((host == "127.0.0.1") || (host == "localhost")) if ((host == "127.0.0.1") || (host == "localhost"))
{ {
// host = "http://192.168.2.219"; // jomjol interner test // host = "http://192.168.2.219"; // jomjol interner test
// host = "http://192.168.178.47"; // jomjol interner test host = "http://192.168.178.46"; // jomjol interner test
host = "http://192.168.178.22"; // jomjol interner Real // host = "http://192.168.178.22"; // jomjol interner Real
// host = "."; // jomjol interner localhost // host = "."; // jomjol interner localhost

File diff suppressed because one or more lines are too long

2
sd-card/html/jquery-3.6.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -256,10 +256,7 @@ function WriteConfigININew()
{ {
for (_num in NUMBERS) for (_num in NUMBERS)
{ {
if (NUMBERS[_num]["name"] == "default") text = NUMBERS[_num]["name"] + "." + name;
text = name;
else
text = NUMBERS[_num]["name"] + "." + name;
var text = text + " =" var text = text + " ="
@@ -295,10 +292,7 @@ function WriteConfigININew()
{ {
for (var _roiddet in NUMBERS[_roi]["digit"]) for (var _roiddet in NUMBERS[_roi]["digit"])
{ {
if (NUMBERS[_roi]["name"] == "default") text = NUMBERS[_roi]["name"] + "." + NUMBERS[_roi]["digit"][_roiddet]["name"];
text = NUMBERS[_roi]["digit"][_roiddet]["name"];
else
text = NUMBERS[_roi]["name"] + "." + NUMBERS[_roi]["digit"][_roiddet]["name"];
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["x"]; text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["x"];
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["y"]; text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["y"];
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["dx"]; text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["dx"];
@@ -316,10 +310,7 @@ function WriteConfigININew()
{ {
for (var _roiddet in NUMBERS[_roi]["analog"]) for (var _roiddet in NUMBERS[_roi]["analog"])
{ {
if (NUMBERS[_roi]["name"] == "default") text = NUMBERS[_roi]["name"] + "." + NUMBERS[_roi]["analog"][_roiddet]["name"];
text = NUMBERS[_roi]["analog"][_roiddet]["name"];
else
text = NUMBERS[_roi]["name"] + "." + NUMBERS[_roi]["analog"][_roiddet]["name"];
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["x"]; text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["x"];
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["y"]; text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["y"];
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["dx"]; text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["dx"];

View File

@@ -62,7 +62,7 @@
</body> </body>
</html> </html>
<script src="/jquery-3.5.1.min.js"></script> <script src="/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="./gethost.js"></script> <script type="text/javascript" src="./gethost.js"></script>
<script type="text/javascript" src="./readconfigcommon.js"></script> <script type="text/javascript" src="./readconfigcommon.js"></script>
<script type="text/javascript"> <script type="text/javascript">