• 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 32.7k 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.
  • R Offline
    rudibarani Project Sponsor @AgP42
    last edited by Nov 18, 2018, 9:42 PM

    @agp42 Thanks for the quick help!

    R 1 Reply Last reply Nov 26, 2018, 10:48 PM Reply Quote 0
    • R Offline
      rudibarani Project Sponsor @rudibarani
      last edited by Nov 26, 2018, 10:48 PM

      Dear @AgP42,
      one of my use cases for your module is showing a livestream from the ISS on the night-page of my mirror, if a user is present. Looks really good!
      Now i thought of enhancing it and playing some curated movies from the ISS during those moments, when it is not flying in daylight.

      Would it be possible / difficult to add a limited number of youtube links and either select one of them for playback via a notification or play them randomly?

      0_1543272443087_IMG_0553.jpeg

      A 1 Reply Last reply Dec 21, 2018, 9:50 AM Reply Quote 0
      • J Offline
        Johans @AgP42
        last edited by Dec 20, 2018, 9:56 PM

        @agp42 Would it be possible to have 2 instances in the config file, working independently?

        A 1 Reply Last reply Dec 21, 2018, 5:44 PM Reply Quote 0
        • A Offline
          AgP42 Project Sponsor Module Developer @rudibarani
          last edited by Dec 21, 2018, 9:50 AM

          @rudibarani Sorry for my late answer. Did you consider to create a youtube playlist and make it run on the Mirror ? (This way of doing is now describe on the readme file) I guest it will fulfill your need !

          J R 2 Replies Last reply Dec 21, 2018, 11:30 AM Reply Quote 0
          • J Offline
            Johans @AgP42
            last edited by Dec 21, 2018, 11:30 AM

            @agp42 Ok, thanks for the tip, I’ll checkup the README file.

            1 Reply Last reply Reply Quote 0
            • A Offline
              AgP42 Project Sponsor Module Developer @Johans
              last edited by Dec 21, 2018, 5:44 PM

              @johans Hello, in fact I already try to manage this functionality (on another plugin), but it’s very hard to make it work.
              Here is an easy way for you :

              • duplicate the plugin (copy/paste the full folder and rename it, for example “MMM-iFrame-Ping-2”)
              • enter the folder and rename the file “MMM-iFrame-Ping.js” into “MMM-iFrame-Ping-2.js” (no need to change the css file, you can also delete it)
              • open the file “MMM-iFrame-Ping-2.js” and and the very first line, also change :
              Module.register("MMM-iFrame-Ping",{
              

              to

              Module.register("MMM-iFrame-Ping-2",{
              
              • then you can declare this “new” module on your config file and use it with another URL

              (Yes this is a very very bad looking solution :grimacing_face: , please don’t tell anyone it comes from me !:winking_face: )

              H 1 Reply Last reply Jan 27, 2019, 7:58 PM Reply Quote 0
              • R Offline
                rudibarani Project Sponsor @AgP42
                last edited by Dec 24, 2018, 10:52 PM

                Dear @agp42,

                unfortunately, a playlist does not help for my use case:
                I found a 90 min 4K Video Collection from the ISS and want use a defined / selected / random 35 minute section to fill in for the time when the ISS is in the dark.
                Currently, I am circumventing it by having multiple copies of the “Night”-page with MMM-Page-Selector and defining different instances of MMM-iFrame-Ping for each page. Each of these instances get a defined URL and I call the pages via notifications, depending on the daylight-status of the ISS.
                Having a little more flexibility in the module would make this a lot easier and more dynamic.

                Maybe it could be possible to pass on an URL via a notification?

                A 1 Reply Last reply Dec 26, 2018, 5:29 PM Reply Quote 0
                • A Offline
                  AgP42 Project Sponsor Module Developer @rudibarani
                  last edited by Dec 26, 2018, 5:29 PM

                  @rudibarani
                  Hello,
                  to better understand your request, by “notification” do you mean the internal MM notification mecanism ? (describe here on the official doc)
                  In that case, which module will send the url request to the MMM-iFrame-Ping module ? and what will be the notification request format ?

                  Thanks,
                  AgP42

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rudibarani Project Sponsor
                    last edited by Jan 3, 2019, 10:01 AM

                    @AgP42 Thanks for your reply and happy new year!
                    I using MMM-Remote-Control to inject notifications from my home automation system (FHEM), as it knows all the other relevant states in the house (user-presence, lighting situation, etc.).

                    Maybe your module could listen to "iFrame_Ping_URL" notifications and take the "URL" from the payload and use it until a new one is provided or until a restart, in which case it would revert back to the standard URL from the setup?

                    This way, it would not change its behavior presented to its current users and just gain an option to change the preconfigured URL on the fly.

                    A 2 Replies Last reply Jan 9, 2019, 12:37 PM Reply Quote 0
                    • A Offline
                      AgP42 Project Sponsor Module Developer @rudibarani
                      last edited by Jan 9, 2019, 12:37 PM

                      @rudibarani
                      Yes it seams possible to do, but then MMM-Remote-Control has also to be modified to be able to send such notification, no ?
                      Could you let me know the other modules you uses than catch MMM-Remote-Control notification, so I will look the source code please ?

                      Thanks,
                      AgP

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