Read the statement by Michael Teeuw here.
Does anyone know how to make the iFrame module refresh periodically?
-
Thanks for the suggestion. I wouldn’t know where to start with that though. I tried this module which did not work refresh for me either.
-
@cnelso24 the problem is probably that there isnt a change detected when updating the dom, try to add a timestamp attribute to the iframe.
-
I have found a fix for this module which I posted here:
https://github.com/TheBogueRat/MMM-iFrameReload/issues/2
Kev
-
Thank you!! I will check it out when I get home.
-
Just got a chance to try this. Works like a charm! Thank you!
-
@kevsfastz is it possible to show simple html content and update periodically?
-
@fox
The simple answer is yes it is possible. What is your goal specifically? -
Many thanks, I have bee looking for a way to do this for some time. I loaded iFrameReload with the following url. It will load, but not update. Any suggestions as to what I am missing?
url: “http://tides.tidegraph.com/api/tidegraph.php?bg=black&scale=.8&station=Old Frenchtown Wharf, Elk River, Maryland”,
Many thanks
-
As mentioned above, I have provided a fix or adjustment by adjusting the MMM-IframeReload.js below:
-
My mistake, I thought this was updated in the .git. I added the timestamp as you suggested (iframe.src = this.config.url + new Date().getTime();). The url does update now, but since the url displays the tides at a location embedded in the url, it looks like the timestamp is appended to the location. With this added, it is not a valid location and the tides don’t display.
Again, many thanks for your help.