Skip to content

Commit b2743da

Browse files
committed
- Fixed: CMakeList.txt
- Fixed: Blockly, Set user variables (you need to resave your blockly's)
1 parent 7d2e770 commit b2743da

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IF(USE_BUILTIN_LUA)
55
add_subdirectory (lua)
66
get_directory_property (LUA_LIBRARIES DIRECTORY lua
77
DEFINITION LUA_LIBRARIES)
8-
ELSE(USE_BUILTIN_SQLITE)
8+
ELSE(USE_BUILTIN_LUA)
99
find_package(PkgConfig)
1010
pkg_check_modules(LUA lua>=5.2)
1111
IF(LUA_FOUND)

History.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Version 2.3xxx
3131
- Implemented: OpenZWave, added COMMAND_CLASS_PROTECTION in configuration options
3232
- Implemented: Netatmo, support for multiple Thermostats
3333
- Implemented: Day display in energy/gas/water/temp report
34+
- Fixed: Blockly, Set user variables (you need to resave your blockly's)
3435

3536
Version 2.3530 (November 1th 2015)
3637
- Implemented: Degree Days in Temperature report

main/EventSystem.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,9 +1789,8 @@ bool CEventSystem::parseBlocklyActions(const std::string &Actions, const std::st
17891789
}
17901790
size_t eQPos = csubstr.find_first_of("=") + 1;
17911791
std::string doWhat = csubstr.substr(eQPos);
1792-
if (doWhat.find('"') == 0) {
1793-
doWhat = doWhat.substr(1, doWhat.size() - 2);
1794-
}
1792+
doWhat = doWhat.substr(1, doWhat.size() - 2);
1793+
17951794
size_t sPos = csubstr.find_first_of("[") + 1;
17961795
size_t ePos = csubstr.find_first_of("]");
17971796

@@ -1841,7 +1840,7 @@ bool CEventSystem::parseBlocklyActions(const std::string &Actions, const std::st
18411840
size_t aFind = doWhat.find(" AFTER ");
18421841
if ((aFind > 0) && (aFind != std::string::npos)) {
18431842
std::string delayString = doWhat.substr(aFind + 7);
1844-
std::string newAction = doWhat.substr(0, aFind - 1);
1843+
std::string newAction = doWhat.substr(0, aFind);
18451844
afterTimerSeconds = atoi(delayString.c_str());
18461845
doWhat = newAction;
18471846
}

www/eventsframe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
return '"'+encodeURIComponent($(titleB).text())+'"';
158158
}
159159
else if ($(titleB).attr("name") == "NUM") {
160-
return $(titleB).text();
160+
return '"'+$(titleB).text()+'"';
161161
}
162162
return "unknown comparevariable "+variableType;
163163
}
@@ -345,7 +345,7 @@
345345
var valueB = $(this).find("value[name='B']")[0];
346346
var titleB = $(valueB).find("title")[0];
347347
var blockB = $(valueB).children("block:first");
348-
setString += '='+$(titleB).text()+'';
348+
setString += '="'+$(titleB).text()+'';
349349
setString += ' AFTER '+ $(titleC).text()+'"';
350350
setArray.push(setString);
351351
}

www/html5.appcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# ref 1124
2+
# ref 1125
33

44
CACHE:
55
# CSS

0 commit comments

Comments
 (0)