AgP42 / MMM-SmartWebDisplay

The `MMM-SmartWebDisplay` module is for MagicMirror². It allow to display any web content to your MagicMirror.
60 stars 15 forks source link

delay to display frame #10

Open chassain opened 4 years ago

chassain commented 4 years ago

Bonjour, Hello,

I'm using your great module. And i have a request because my config. js has a lot of modules. I m working with MMM-Pages and i have your module (2 smartwebdisplay with different positions to see trains and airplane departures). I see a delay to display the 2 modules when i arrive to the page. How can i reduce this ? thanks again for your great module Cyril

AgP42 commented 4 years ago

Please share your config file (at least the 2 config about MMM-SmartWebDisplay), otherwise I cannot help

chassain commented 4 years ago

Hello,

i thing it's more a problem about site to display web on my magicmirror..It doesn't matter But i wanted to say you other problems..refresh is (and i know) not ok with one url and the check to have the same web with url: ["http://url1", "https://url1"] and nexturlinterval is not ok too, for information..to display 4 web, i have to configure like that :

chassain commented 4 years ago

{ module: 'MMM-SmartWebDisplay4', disabled: false, position: 'right', // This can be any of the regions. config: { // See 'Configuration options' for more information. logDebug: false, //set to true to get detailed debug logs. To see them : "Ctrl+Shift+i" height:"800", //hauteur du cadre en pixel ou % width:"900", //largeur updateInterval: 0, //in min. Set it to 0 for no refresh (for videos) NextURLInterval: 0.2, //in min, set it to 0 not to have automatic URL change. If only 1 URL given, it will be updated displayLastUpdate: false, //to display the last update of the URL displayLastUpdateFormat: 'ddd - HH:mm:ss', //format of the date and time to display url: ["https://www.google.com/maps/embed?pb=!1m28!1m12!1m3!1d371592.4456196737!2d5.297366590189342!3d43.31287817882357!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m13!3e6!4m5!1s0x12c91b64e54ed805%3A0xc31f785d8fe891b4!2sAvenue%20de%20la%20Tour%20Royale%2C%2083000%20Toulon%2C%20France!3m2!1d43.105258!2d5.929302!4m5!1s0x12c9e5fde9ee1837%3A0xe273ff8b8f69ff2e!2sA%C3%A9roport%20Marseille%20Provence%20(MRS)%2C%20Marignane!3m2!1d43.4384235!2d5.214414!5e0!3m2!1sfr!2sfr!4v1575407168058!5m2!1sfr!2sfr", "https://www.google.com/maps/embed?pb=!1m28!1m12!1m3!1d93204.56140134101!2d5.974853598928612!3d43.11202646206822!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m13!3e6!4m5!1s0x12c91b64e54ed805%3A0xc31f785d8fe891b4!2sAvenue%20de%20la%20Tour%20Royale%2C%2083000%20Toulon%2C%20France!3m2!1d43.105258!2d5.929302!4m5!1s0x12c924049efe5ac3%3A0x56e0843453cf7c25!2sA%C3%A9roport%20Toulon%20-%20Hy%C3%A8res%2C%20Boulevard%20de%20la%20Marine%2C%20Hy%C3%A8res!3m2!1d43.0946573!2d6.1508971!5e0!3m2!1sfr!2sfr!4v1575407329516!5m2!1sfr!2sfr"], //source of the URL to be displayed scrolling: "no" // allow scrolling or not. html 4 only } }, { module: 'MMM-SmartWebDisplay3', disabled: false, position: 'left', // This can be any of the regions. config: { // See 'Configuration options' for more information. logDebug: false, //set to true to get detailed debug logs. To see them : "Ctrl+Shift+i" height:"800", //hauteur du cadre en pixel ou % width:"900", //largeur updateInterval: 0, //in min. Set it to 0 for no refresh (for videos) NextURLInterval: 0.2, //in min, set it to 0 not to have automatic URL change. If only 1 URL given, it will be updated displayLastUpdate: false, //to display the last update of the URL displayLastUpdateFormat: 'ddd - HH:mm:ss', //format of the date and time to display url: ["https://www.google.com/maps/embed?pb=!1m28!1m12!1m3!1d23299.340110568988!2d5.917488582411981!3d43.116754692023335!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m13!3e6!4m5!1s0x12c91b64e54ed805%3A0xc31f785d8fe891b4!2sAvenue%20de%20la%20Tour%20Royale%2C%2083000%20Toulon%2C%20France!3m2!1d43.105258!2d5.929302!4m5!1s0x12c91b1aa38c3dd5%3A0xa99264e159694989!2sGare%20Sncf%20Toulon%2C%20Toulon!3m2!1d43.128174!2d5.929386999999999!5e0!3m2!1sfr!2sfr!4v1575406933251!5m2!1sfr!2sfr", "https://www.google.com/maps/embed?pb=!1m28!1m12!1m3!1d371592.4456196737!2d5.297366590189342!3d43.31287817882357!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m13!3e6!4m5!1s0x12c91b64e54ed805%3A0xc31f785d8fe891b4!2sAvenue%20de%20la%20Tour%20Royale%2C%2083000%20Toulon%2C%20France!3m2!1d43.105258!2d5.929302!4m5!1s0x12c9e5fde9ee1837%3A0xe273ff8b8f69ff2e!2sA%C3%A9roport%20Marseille%20Provence%20(MRS)%2C%20Marignane!3m2!1d43.4384235!2d5.214414!5e0!3m2!1sfr!2sfr!4v1575407168058!5m2!1sfr!2sfr"], //source of the URL to be displayed scrolling: "no" // allow scrolling or not. html 4 only } },

chassain commented 4 years ago

Put "iframe.setAttribute("timestamp", new Date().getTime());" after line 312..refresh ok normaly

chassain commented 4 years ago

after line 395 sorry