Rolling 20210507

This commit is contained in:
jomjol
2021-05-07 21:33:16 +02:00
parent 67d0bf6a27
commit 10d49b55d1
12 changed files with 36 additions and 22 deletions

View File

@@ -44,13 +44,25 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
**General remark:** Beside the `firmware.bin`, typically also the content of `/html` needs to be updated!
##### Rolling - (2021-05-06)
##### Rolling - (2021-05-07)
* Upgrade digital CNN to v8.5.0 (added new images)
* Updated number format ("2021-05-07T19:04:01")
* Update MQTT/Error topic to " " in case no error (instead of empty string)
Rolling - (2021-05-06)
* Additional MQTT topics: flow rate (units/minute), time stamp last correct readout
* Portrait or landscape image orientation in rotated image
* based on v6.7.2
##### 6.7.2 Image Processing in Memory - (2021-05-01)
* NEW 6.7.2: Updated html for setup modus - remove reboot on edit configuration)

View File

@@ -227,7 +227,7 @@ void ClassFlowAlignment::SaveReferenceAlignmentValues()
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%Y-%m-%d_%H-%M-%S", timeinfo);
strftime(buffer, 80, "%Y-%m-%dT%H:%M:%S", timeinfo);
zwtime = std::string(buffer);
}

View File

@@ -154,6 +154,10 @@ bool ClassFlowMQTT::doFlow(string zwtime)
MQTTPublish(topic, result);
if (topicError.length() > 0) {
if (resulterror.length() == 0)
{
resulterror = " ";
}
MQTTPublish(topicError, resulterror);
}

View File

@@ -63,7 +63,7 @@ bool ClassFlowPostProcessing::LoadPreValue(void)
int yy, month, dd, hh, mm, ss;
struct tm whenStart;
sscanf(zwtime.c_str(), "%d-%d-%d_%d-%d-%d", &yy, &month, &dd, &hh, &mm, &ss);
sscanf(zwtime.c_str(), "%d-%d-%dT%d:%d:%d", &yy, &month, &dd, &hh, &mm, &ss);
whenStart.tm_year = yy - 1900;
whenStart.tm_mon = month - 1;
whenStart.tm_mday = dd;
@@ -121,7 +121,7 @@ void ClassFlowPostProcessing::SavePreValue(float value, string zwtime)
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%Y-%m-%d_%H-%M-%S", timeinfo);
strftime(buffer, 80, "%Y-%m-%dT%H:%M:%S", timeinfo);
timeStamp = std::string(buffer);
}
else
@@ -305,7 +305,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
timeinfo = localtime(&imagetime);
char strftime_buf[64];
strftime(strftime_buf, sizeof(strftime_buf), "%Y-%m-%d_%H-%M-%S", timeinfo);
strftime(strftime_buf, sizeof(strftime_buf), "%Y-%m-%dT%H:%M:%S", timeinfo);
zwtime = std::string(strftime_buf);
@@ -367,14 +367,6 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
time_t currenttime;
time(&currenttime);
localtime(&currenttime);
double difference = difftime(currenttime, lastvalue); // in Sekunden
difference /= 60; // in Minuten
FlowRateAct = (Value - PreValue) / difference;
if ((!AllowNegativeRates) && (Value < PreValue))
{
ErrorMessageText = ErrorMessageText + "Negative Rate - Returned old value - read value: " + zwvalue + " - raw value: " + ReturnRawValue + " - checked value: " + std::to_string(Value) + " ";
@@ -389,6 +381,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
}
ReturnValueNoError = zwvalue;
ReturnValue = zwvalue;
if (ErrorMessage && (ErrorMessageText.length() > 0))
@@ -396,10 +389,15 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
if (ErrorMessageText.length() == 0)
{
time_t currenttime;
time(&currenttime);
localtime(&currenttime);
double difference = difftime(currenttime, lastvalue); // in Sekunden
difference /= 60; // in Minuten
FlowRateAct = (Value - PreValue) / difference;
PreValue = Value;
SavePreValue(Value, zwtime);
}
return true;
}

View File

@@ -77,7 +77,7 @@ void ClassLogFile::WriteToDedicatedFile(std::string _fn, std::string info, bool
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%Y-%m-%d_%H-%M-%S", timeinfo);
strftime(buffer, 80, "%Y-%m-%dT%H:%M:%S", timeinfo);
zwtime = std::string(buffer);
info = zwtime + ": " + info;

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="016f408";
const char* GIT_REV="67d0bf6";
const char* GIT_TAG="";
const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2021-05-06 21:42";
const char* BUILD_TIME="2021-05-07 21:30";

View File

@@ -13,7 +13,7 @@ extern "C"
#include "Helper.h"
#include <fstream>
const char* GIT_BASE_BRANCH = "master - v6.7.1 - 2020-05-01";
const char* GIT_BASE_BRANCH = "master - v6.7.2 - 2020-05-01";
const char* git_base_branch(void)

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="016f408";
const char* GIT_REV="67d0bf6";
const char* GIT_TAG="";
const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2021-05-06 21:42";
const char* BUILD_TIME="2021-05-07 21:30";

Binary file not shown.

Binary file not shown.

View File

@@ -18,7 +18,7 @@ InitialMirror= false
AlignmentAlgo = Default
[Digits]
Model = /config/dig0840s1q.tflite
Model = /config/dig0850s1q.tflite
;LogImageLocation = /log/digit
;LogfileRetentionInDays = 3
ModelInputSize = 20 32

Binary file not shown.