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.

    Show webpage / iframe and reload

    Scheduled Pinned Locked Moved Requests
    14 Posts 4 Posters 11.8k Views 4 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.
    • foxF Offline
      fox
      last edited by fox

      Due to the massiv problems in the iFrame-reloaded modules,

      • https://forum.magicmirror.builders/topic/2064/loading-website-and-display-it-in-my-mm
      • https://forum.magicmirror.builders/topic/1954/iframe-module-not-showing-content
      • https://forum.magicmirror.builders/topic/2637/mmm-iframereload-iframe-won-t-load
      • https://forum.magicmirror.builders/topic/1126/display-web-widget-on-mirror-through-iframe

      i would like to request a new, stable and working one

      Issues With MMM-WatchDog known?

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

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

      1 Reply Last reply Reply Quote 0
      • U Offline
        usafa43tsolo
        last edited by

        I have the same problem - I followed all the fix actions in one of the threads but nothing works for me. I’d be happy to re-post code snips and everything if it helps troubleshooting. Any help would be appreciated! Thanks!

        1 Reply Last reply Reply Quote 0
        • B Offline
          barnosch
          last edited by

          i had the same and i could fix it, in my special case, by simply reloading the webpage periodically i want to show.
          (i use a wepage that crawls the status of my automatic lawn mower and shows me informations like status and battery)

          If you handle the webpage yourself, thats an easy option.
          If you want to show a external source, it’s not working.

          1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer
            last edited by

            @fox @usafa43tsolo which modules did you try, there are several of them

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

            U 1 Reply Last reply Reply Quote 0
            • U Offline
              usafa43tsolo @strawberry 3.141
              last edited by

              @strawberry-3.141 I used this module, which I found from the wiki: https://github.com/alberttwong/MMM-iFrame

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @usafa43tsolo
                last edited by

                @usafa43tsolo you could give this one a try https://github.com/TheBogueRat/MMM-iFrameReload
                https://github.com/desertblade/iFrame

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

                1 Reply Last reply Reply Quote 0
                • U Offline
                  usafa43tsolo
                  last edited by

                  Those are the two I’ve tried, specifically the first one. There was a thread that fox referenced that had the same issue and was supposedly fixed but I installed it correctly and fixed (I think) the config file. However, nothing ever shows up.

                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @usafa43tsolo
                    last edited by

                    @usafa43tsolo which one of those 4?

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

                    1 Reply Last reply Reply Quote 0
                    • U Offline
                      usafa43tsolo
                      last edited by

                      https://forum.magicmirror.builders/topic/2637/mmm-iframereload-iframe-won-t-load/7

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @usafa43tsolo
                        last edited by

                        @usafa43tsolo did you try to apply this fix i suggested here a few months ago? https://github.com/TheBogueRat/MMM-iFrameReload/issues/2#issuecomment-291011351

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

                        U 1 Reply Last reply Reply Quote 0
                        • U Offline
                          usafa43tsolo @strawberry 3.141
                          last edited by

                          @strawberry-3.141 That did it. Loads perfectly now. Thank you for pointing that out!

                          1 Reply Last reply Reply Quote 1
                          • foxF Offline
                            fox
                            last edited by fox

                            @strawberry-3-141 you mean that fix?

                            adding the line:

                            iframe.setAttribute("timestamp", new Date().getTime());
                            

                            this results in:

                            getDom: function() {
                                            var iframe = document.createElement("IFRAME");
                                            iframe.style = "border:0"
                                            iframe.width = this.config.width;
                                            iframe.height = this.config.height;
                                            iframe.src =  this.config.url + new Date().getTime();
                                            iframe.setAttribute("timestamp", new Date().getTime());
                                            return iframe;
                                    },
                            
                            

                            but no result

                            @usafa43tsolo could you share your .js file please?

                            edit:
                            i reinstalled it and then put the fix from @strawberry-3-141 from github.
                            now i see in my browser (in the respective frame)
                            Cannot GET /www.google.com

                            Issues With MMM-WatchDog known?

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

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

                            strawberry 3.141S 1 Reply Last reply Reply Quote 0
                            • strawberry 3.141S Offline
                              strawberry 3.141 Project Sponsor Module Developer @fox
                              last edited by strawberry 3.141

                              @fox did you try another webpage? I think it’s possible for a webpage to deny rendering in an iframe

                              EDIT: See, when I’m testing this in a simple html file < iframe src="https://www.google.com">< /iframe> (without the spaces)

                              I get this error Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

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

                              1 Reply Last reply Reply Quote 0
                              • foxF Offline
                                fox
                                last edited by

                                @strawberry-3-141
                                i saw something similar.

                                But with your hint of deny i created a .htaccess in the folder of the called page with content

                                
                                Options -Indexes
                                
                                

                                and now i can see the page !
                                Thank you for your hint now we can proceed here.

                                Issues With MMM-WatchDog known?

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

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

                                1 Reply Last reply Reply Quote 1

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1 / 1
                                • 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