• 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.

Scheduled restart for MM or module

Scheduled Pinned Locked Moved Troubleshooting
14 Posts 6 Posters 7.6k 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
    CyanKali
    last edited by Mar 13, 2017, 5:42 PM

    …me again. Unfortunately, iframe reload did not work. There seems to be an known issue with refreshing pages but I tried the suggested fixes and nothing worked:
    https://github.com/TheBogueRat/MMM-iFrameReload/issues/2?_pjax=%23js-repo-pjax-container

    The author of the module does not answer me, maybe I can get some help here? When you click on the link you see my post where I describe what I already tried.

    1 Reply Last reply Reply Quote 0
    • D Offline
      daikaiju
      last edited by Apr 1, 2017, 10:36 PM

      Did you ever resolve this? I’m running into the same issue.

      1 Reply Last reply Reply Quote 0
      • C Offline
        CyanKali
        last edited by Apr 2, 2017, 5:13 PM

        Unfortunately no. I am still looking for a solution. And I´m still hoping somebody might help with this issue.

        D S 2 Replies Last reply Apr 2, 2017, 5:14 PM Reply Quote 0
        • D Offline
          daikaiju @CyanKali
          last edited by Apr 2, 2017, 5:14 PM

          @CyanKali I’m not sure why the developer didn’t update the git pull for this one.

          I ran into every issue you did when trying to implement the “fix.”

          1 Reply Last reply Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @CyanKali
            last edited by Apr 2, 2017, 7:58 PM

            @CyanKali can you try iframe.setAttribute("timestamp", new Date().getTime()); between line 32 and 33 of the js file?

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

            D 1 Reply Last reply Apr 2, 2017, 8:01 PM Reply Quote 0
            • D Offline
              daikaiju @strawberry 3.141
              last edited by Apr 2, 2017, 8:01 PM

              @strawberry-3.141 This worked for me. Outstanding. Thank you.

              1 Reply Last reply Reply Quote 0
              • C Offline
                CyanKali
                last edited by yawns Apr 3, 2017, 4:50 AM Apr 2, 2017, 8:33 PM

                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.

                S 1 Reply Last reply Apr 2, 2017, 8:41 PM Reply Quote 0
                • S Offline
                  strawberry 3.141 Project Sponsor Module Developer @CyanKali
                  last edited by Apr 2, 2017, 8:41 PM

                  @CyanKali normally it should reload after 60 seconds in your case, for testing i found this site which returns every reload a random content and timestamp so you can check if it is refreshing https://www.random.org/quick-pick/?tickets=2&lottery=5x69.1x26

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

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    CyanKali
                    last edited by Apr 4, 2017, 4:50 AM

                    Sorry for the late reply. I updated to the new MM release and it broke everything. But now I fixed it and was able to test again.

                    I see the new content every time its refreshing, so it works!
                    Thank you so much for your help!

                    1 Reply Last reply Reply Quote 1
                    • M Offline
                      Mitch1138
                      last edited by Apr 4, 2017, 9:28 PM

                      I want to thank Strawberry and everyone for resolving this. I have been worrying on it for some time and this finally resolved it. Thanks for putting the full code in the example Cyankali.

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      • 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