Read the statement by Michael Teeuw here.
MMM-WeatherOrNot
-
@Mykle1 Interesting idea… but being the relative noob that I am, would I simply copy and rename the folders and make appropriate config changes, or are there more steps? Do I need to do an npm install --productive in each renamed folder?
Thanks for your help!
-
I found another post that describes using multiple instances of a module. I’ve copied and renamed the second and third instance, and updated the *.js, *.css and config.js files. Everything seems to be updating and working correctly now. I’ll check again in another hour to make sure.
Thanks for the idea!
-
Well, I spoke too quickly. It seems that renaming the three instances helped but didn’t eliminate the problem. The data still grows stale after some period of time.
Any other ideas? Other than copying/pasting/renaming, editing the .js and .css files and doing the npm install, is there anything else I should be doing to ensure the three modules work independently and continue to retrieve weather data?
Thanks,
-
Well, there are no guarantees.
You’re using a separate
location
andlocationCode
for each instance? (by following the readme instructions)You could try staggering the
updateInterval
on each instance as well (so they’re not updating at the same time)I’ve never used more than one instance
-
@Mykle1 Sure… my mileage may vary… completely understood.
Yes, I’ve configured them with three different sets of location and locationCode information.
I wondered about staggering the updateInterval, so I’ll try that next.
Thanks!
-
I’m testing. I’ll let it run for a while.
-
@Mykle1 Thanks for all the help! I love the module… just wish I could figure out why the information goes stale.
-
@Mykle1 does the module rebuild the display or does it locate the dom elements and update those?
document.getElementbyId() … if so, you probably have duplicate IDs w 2 versions runningin my modules I use the module identifier as part of the item id to avoid this
this.identifer in the modulename.js
-
It’s an iframe that is being updated via the url
-
@Mykle1 is out for a smoke.