mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-29 15:42:20 +03:00
Merge pull request #113 from biveraxe/ver3
Дорабатываем механизм работы со временем в сценариях
This commit is contained in:
@@ -211,6 +211,10 @@ class Scenario {
|
|||||||
setEventSign = selectFromMarkerToMarker(condition, " ", 1);
|
setEventSign = selectFromMarkerToMarker(condition, " ", 1);
|
||||||
setEventValue = selectFromMarkerToMarker(condition, " ", 2);
|
setEventValue = selectFromMarkerToMarker(condition, " ", 2);
|
||||||
|
|
||||||
|
String tmpStr;
|
||||||
|
tmpStr = getValue(setEventValue);
|
||||||
|
if (tmpStr != "no value") setEventValue = tmpStr;
|
||||||
|
|
||||||
if (!isDigitDotCommaStr(setEventValue)) {
|
if (!isDigitDotCommaStr(setEventValue)) {
|
||||||
if (isTimeStr(incommingEventValue)) {
|
if (isTimeStr(incommingEventValue)) {
|
||||||
int hhLStr = selectToMarker(incommingEventValue, ":").toInt();
|
int hhLStr = selectToMarker(incommingEventValue, ":").toInt();
|
||||||
@@ -220,8 +224,6 @@ class Scenario {
|
|||||||
|
|
||||||
incommingEventValue = hhLStr*60 + mmLStr;
|
incommingEventValue = hhLStr*60 + mmLStr;
|
||||||
setEventValue = hhRStr*60 + mmRStr;
|
setEventValue = hhRStr*60 + mmRStr;
|
||||||
} else {
|
|
||||||
setEventValue = getValue(setEventValue);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user