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

MMM-iFrame-Ping

Scheduled Pinned Locked Moved Utilities
58 Posts 12 Posters 41.6k Views 13 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.
  • A Offline
    AgP42 Project Sponsor Module Developer @bolish
    last edited by Feb 10, 2019, 4:08 PM

    @bolish
    Yes I perfectly understand the issue you are facing, in fact I also did some contribution to the module PIR sensor :smiling_face_with_open_mouth_closed_eyes:

    Yes the delay on the module apply only about the screen off but the “USER_PRESENCE” is send anyway directly according to the sensor input.

    Normaly on your sensor you have 2 screws, one to change the sensibility of the sensor and the other one to adjust the time delay more infos here

    Did you check that ?

    But you are also right that I could let the choice to the user to use this USER_PRESENCE or not, I will check what I can do for that.

    1 Reply Last reply Reply Quote 0
    • B Offline
      bolish
      last edited by bolish Feb 10, 2019, 4:24 PM Feb 10, 2019, 4:23 PM

      The sensor I’m using doesn’t offer this option, unfortunatly.
      link text

      Thinking of it again :

      Would it not be more “sustainable” to PR MMM-PIRSensor by putting a second notification trigger “USER_PRESENCE, Screen Off” after the timeout delay.
      Then, we could play within MMM-SmartWebDisplay with that one instead of the only USER PRESENCE false, true.
      By doing that + adding the option to use it or not, it would make the full thing more reliable and generic.

      If I believe it’s somewhere here :

                      else if (value == valueOff) {
                          self.sendSocketNotification('USER_PRESENCE', false);
                          if (!self.config.powerSaving){
                              return;
                          }
      
                          self.deactivateMonitorTimeout = setTimeout(function() {
                              self.deactivateMonitor();
                          }, self.config.powerSavingDelay * 1000);
                      }
                  });
      
      A 1 Reply Last reply Feb 10, 2019, 4:42 PM Reply Quote 0
      • A Offline
        AgP42 Project Sponsor Module Developer @bolish
        last edited by Feb 10, 2019, 4:42 PM

        @bolish
        On the link you sent, this sensor is exactly the same as mine and its allow to change the timer ! ;-)

        The best way to make that clean will be to change the PIR-sensor module to send the notification only at the end of the timer, but I have no time to do so now…

        What you can do for now to desactivate the Stop at the reception of a USER_PRESENCE = false notification is to go on the file MMM-SmartWebDisplay.js, on the function “GestionUpdateIntervalSWD”, then comment (//) the line "this.StopDisplay();

        In fact I have no time to change the module PIR-Sensor now because I am about to finish an update of the module MMM-RemoteControl to be able to use "Next/Prev/Play/Pause/Stop directly on RemoteControl :

        0_1549816846729_RemoteSWD.png

        1 Reply Last reply Reply Quote 0
        • B Offline
          bolish
          last edited by bolish Feb 10, 2019, 5:21 PM Feb 10, 2019, 5:21 PM

          oh! I will look on the module again as I didn’t saw the famous screws you’re referring too…

          Don’t worry @AgP42 , you already did a great job! Thanks again for that.

          For the time being I will leave it like that (with your workaround) and if I have time on my side, I will maybe try to update MMM-PIRSensor. Maybe I could do it with trial and error method.

          Thanks to the latest update of your module and MMM-GroveGestures (from @Sean ) , I end up with a perfect user experience :

          • On my page 1 (main MM page), up / down gestures are handling news RSS details, etc…
          • On my page 2, I have your iFrame and I’m able to change youtube live channels by up / down gestures also.

          Perfect!

          The Remote Control you are working on looks great also!

          A bientôt et bonne continuation!! (tu as laissé qques indices dans ton code :-)

          1 Reply Last reply Reply Quote 0
          • A Offline
            AgP42 Project Sponsor Module Developer
            last edited by Feb 10, 2019, 5:41 PM

            :winking_face:

            Here is the new post about MMM-SmartWebDisplay, and the modification of MMM-RemoteControl to control it !

            1 Reply Last reply Reply Quote 0
            • L Offline
              lpgjg
              last edited by Feb 21, 2019, 12:08 AM

              Hey everyone,
              Hoping I can jump in here at the beginners level. Been trying to load a number of YouTube modules for a week to no avail.

              I’m more old school so this stuff doesn’t come natural to me and I’ve been trying to get iFrame-Ping to work the last few days.

              Long story short, all I get is YouTube trying to load on the MM and then “Video unavailable” where the video should be.

              The rest of the MM and its modules are working as should be. Strangely enough, I can click on the iframe-Ping module and the whole magic mirror disappears and the Pi switches to YouTube, full screen?

              The only way to get out of youtube at this point is with “ctrl Q”.

              Can anyone help?

              A 1 Reply Last reply Feb 21, 2019, 12:21 PM Reply Quote 0
              • A Offline
                AgP42 Project Sponsor Module Developer @lpgjg
                last edited by Feb 21, 2019, 12:21 PM

                @lpgjg
                Hello,

                can you send your configuration ?

                And also the log ? (when the MagicMirror is running, Ctrl+i and then filter to “iFrame-Ping” and copy the data°

                Thanks,
                AgP42

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lpgjg
                  last edited by Feb 21, 2019, 3:57 PM

                  Will try to do so when I get home from work tonight. May take a few attempts as this very alien to me given that I’m probably older than most all of you…or your dads.

                  May be worth noting: After a few attempts I noticed if I used my companies playlist, or that of Bombardier, Nord-Gear or any other company / commercial play list, it works fine. Always begins at the same place when started but the module shows up and plays the videos.

                  But if I try to add a Pop music playlist or any of the popular artist out their, it gives me the “video unavailable.”

                  As if it’s a copy right issue when going through the mirror.

                  BTW: I’m in Montreal, Canada

                  S A 2 Replies Last reply Feb 21, 2019, 4:06 PM Reply Quote 0
                  • S Offline
                    sdetweil @lpgjg
                    last edited by Feb 21, 2019, 4:06 PM

                    @lpgjg I’m 67… some of us are older…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Feb 22, 2019, 9:36 PM Reply Quote 1
                    • A Offline
                      AgP42 Project Sponsor Module Developer @lpgjg
                      last edited by Feb 21, 2019, 4:11 PM

                      @lpgjg @sdetweil,

                      the good news is that technology don’t care about the user age !

                      and I also don’t care, old or young, gives me your logs and I will help you ! :smiling_face_with_halo: :face_with_tears_of_joy:

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 5 / 6
                      • 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