I've updated above script and now when you use it and add Custom class "siemens" to your svg image i visualisation editor, script should work.
This is for writing value from Group address(1/1/10) to svg element(temperature), but user can't change this value:
The problem(for me) is how to prepare the edit function. At this moment I can prepare this by adding some special buttons + and minus or clicking on symbols.
Maybe Edgars can tell how it is possible in other way(e.g. like it is with changing temperature on default visualisation)
This is for writing value from Group address(1/1/10) to svg element(temperature), but user can't change this value:
Code:
// Update temperature
actual_temp = '1/1/10'; // temperature
grp.listen(actual_temp, function(obj, type) {
temperature.textContent= obj.value
});
Maybe Edgars can tell how it is possible in other way(e.g. like it is with changing temperature on default visualisation)