Hi straawberry, thank you for your help!
So, my js file now looks like this:
getDom: function() {
var iframe = document.createElement("IFRAME");
iframe.style = "border:0"
iframe.width = this.config.width;
iframe.height = this.config.height;
iframe.scrolling = this.config.scrolling;
iframe.src = this.config.url;
iframe.setAttribute("timestamp", new Date().getTime());
iframe.id = this.config.id;
return iframe;
is that right?
And my congif.js now looks like this:
{
module: 'MMM-iFrameReload',
position: 'bottom_right', // This can be any of the regions.
config: {
// See 'Configuration options' for more information.
url: "http://MY_URL",
width: "80%", // Optional. Default: 400px
height: "400px", // Optional. Default: 800px
scrolling:"no",
refreshInterval: 60, //Optional. Default: 3600 = 1 hour
animationSpeed: 4000,
}
},
Is that right?
The stream is working right now, but I don´t see any refresh animation. I will have to wait until tomorrow to see if it reloads because most of the times it takes some hours for the stream to freeze.