• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Does anyone know how to make the iFrame module refresh periodically?

Scheduled Pinned Locked Moved Solved Troubleshooting
28 Posts 6 Posters 19.4k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cnelso24 @strawberry 3.141
    last edited by Jan 30, 2017, 12:27 AM

    @strawberry-3.141

    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.

    S K 2 Replies Last reply Jan 30, 2017, 9:26 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @cnelso24
      last edited by Jan 30, 2017, 9:26 AM

      @cnelso24 the problem is probably that there isnt a change detected when updating the dom, try to add a timestamp attribute to the iframe.

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 0
      • K Offline
        kevsfastz @cnelso24
        last edited by Jan 31, 2017, 1:46 PM

        @cnelso24

        I have found a fix for this module which I posted here:

        https://github.com/TheBogueRat/MMM-iFrameReload/issues/2

        Kev

        C 2 Replies Last reply Jan 31, 2017, 3:25 PM Reply Quote 1
        • C Offline
          cnelso24 @kevsfastz
          last edited by Jan 31, 2017, 3:25 PM

          @kevsfastz

          Thank you!! I will check it out when I get home.

          1 Reply Last reply Reply Quote 0
          • C Offline
            cnelso24 @kevsfastz
            last edited by Feb 2, 2017, 1:21 AM

            @kevsfastz

            Just got a chance to try this. Works like a charm! Thank you!

            1 Reply Last reply Reply Quote 0
            • F Offline
              fox
              last edited by Feb 12, 2017, 3:11 PM

              @kevsfastz is it possible to show simple html content and update periodically?

              Issues With MMM-WatchDog known?

              https://forum.magicmirror.builders/post/29827

              Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

              K 1 Reply Last reply Feb 13, 2017, 10:45 AM Reply Quote 0
              • K Offline
                kevsfastz @fox
                last edited by Feb 13, 2017, 10:45 AM

                @fox
                The simple answer is yes it is possible. What is your goal specifically?

                F 1 Reply Last reply Feb 13, 2017, 6:50 PM Reply Quote 0
                • M Offline
                  Mitch1138
                  last edited by Feb 13, 2017, 4:12 PM

                  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

                  K 1 Reply Last reply Feb 13, 2017, 4:20 PM Reply Quote 0
                  • K Offline
                    kevsfastz @Mitch1138
                    last edited by Feb 13, 2017, 4:20 PM

                    @Mitch1138

                    As mentioned above, I have provided a fix or adjustment by adjusting the MMM-IframeReload.js below:

                    https://github.com/TheBogueRat/MMM-iFrameReload/issues/2

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mitch1138
                      last edited by Feb 13, 2017, 5:11 PM

                      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.

                      K 1 Reply Last reply Feb 13, 2017, 5:37 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy