Read the statement by Michael Teeuw here.
MMM-iFrame-Ping
-
This post is deleted! -
@AgP42 Thank you for this version of iFrame. Works well for me :)
I do get a white line around the embedded iFrame. Could you please tell me, how to get rid of it? -
@rudibarani said in MMM-iFrame-Ping:
@AgP42 Thank you for this version of iFrame. Works well for me :)
I do get a white line around the embedded iFrame. Could you please tell me, how to get rid of it?Hello,
you can try the following :
On the file “MMM-iFrame-Ping.js”, on lines 135, 136 and 137 there is :
iframe.width = this.config.width; iframe.height = this.config.height; iframe.scrolling = this.config.scrolling;
with those lines, please add :
iframe.style = "border:0"
This should solve your problem !
Bye,
AgP42 -
@agp42 Thanks for the quick help!
-
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?
-
@agp42 Would it be possible to have 2 instances in the config file, working independently?
-
@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 !
-
@agp42 Ok, thanks for the tip, I’ll checkup the README file.
-
@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: )
-
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?