diff --git a/src/modules/system/Variable/Variable.cpp b/src/modules/system/Variable/Variable.cpp index cc9037e5..2c29182b 100644 --- a/src/modules/system/Variable/Variable.cpp +++ b/src/modules/system/Variable/Variable.cpp @@ -6,11 +6,10 @@ extern IoTRTC *watch; class Variable : public IoTItem { private: - String _dtFormat; + public: Variable(String parameters): IoTItem(parameters) { - jsonRead(parameters, "dtFormat", _dtFormat); - _dtFormat = _dtFormat; + } // особенность данного модуля - просто хранение значения для сценария, нет событий @@ -19,10 +18,7 @@ class Variable : public IoTItem { // } void doByInterval() { - if (_dtFormat != "") { - value.isDecimal = false; - value.valS = watch->gettime(_dtFormat + " "); - } + } }; diff --git a/src/modules/system/Variable/items.json b/src/modules/system/Variable/items.json index 4d36fa3d..d86f6d58 100644 --- a/src/modules/system/Variable/items.json +++ b/src/modules/system/Variable/items.json @@ -9,8 +9,7 @@ "page": "", "descr": "", - "int": "1", - "val": "0", - "dtFormat": "" + "int": "0", + "val": "0" } ] \ No newline at end of file