der Umzug hat bis auf drei Probleme gut funktioniert. Vorher lief openHAB im Docker und 3.4.4(?)
zuerst mal Problem #1 ist das nicht funktionieren von Transformation (comma2dot.js). Das Script welches vorher funktioniert hat ist im Ordner transform abgelegt:
Code: Alles auswählen
(function(i) {
return i.toString().replace(',', '.'); // replaces comma by dot
})(input)
in der addons.cfg steht u. a.:Thing http:url:bayLuSZi "BaySZ" @ "EG_SZ"
[ baseURL="http://192.168.178.48/index.html?export=1",
refresh= 60
]
{
Channels:
Type number : SZ_BL_Temp_In "Temp_In" [ stateTransformation = "REGEX:.*Temp_In: ([-]*[\\d]+,[\\d]*).*∩JS:comma2dot.js", mode = "READONLY" ]
Code: Alles auswählen
# A comma-separated list of bindings to install (e.g. "binding = knx,sonos,zwave")
binding = knx, http, network, ntp, mqtt
# A comma-separated list of miscellaneous services to install (e.g. "misc = openhabcloud")
#misc =
# A comma-separated list of persistence services to install (e.g. "persistence = jpa,rrd4j")
#persistence =
# A comma-separated list of transformation services to install (e.g. "transformation = jsonpath,map")
transformation = jsonpath, regex, javascript
als Fehlermeldung kommt im log:
Code: Alles auswählen
2024-06-04 20:34:50.774 [WARN ] [core.karaf.internal.FeatureInstaller] - The transformation add-on 'javascript' does not exist - ignoring it.