Hi,
in this post I've asked how to run a script in dashboard.
Finally I succeed with the following code:
<div id="weather-widget-container"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/postscribe/2.0.8/postscribe.min.js"></script>
<script>
(function(scope) {
scope.$watch('msg.payload', function(value) {
if (value) {
setTimeout(() => { // Verzögerung einbauen
postscribe('#weather-widget-container', value);
}, 100); // 100 Millisekunden warten
}
});
})(scope);
</script>
Now I want to get it running in the new dashboard 2.0.
But here the output of the widget is not visible.
Any help is appreciated.
Kind regards
Juergen