Read the statement by Michael Teeuw here.
MMM-WeatherOrNot
-
You may have to rename the 2nd and 3rd instances. I never tried more than one at the same time.
-
@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
locationandlocationCodefor each instance? (by following the readme instructions)You could try staggering the
updateIntervalon 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!
-
-
@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.
-
@Mykle1 iframe. gotcha
-
@Mykle1 hey hey. you didn’t tell me!
-
The hell I didn’t! My last post was a broadcast notification. :-)
-
I am experiencing the same issue.
-
@Mykle1 Well, glad to hear it isn’t related to my individual setup. If there’s anything I can help test, please let me know.
-
Would I need to edit the MMM-WeatherOrNot2.js and MMM-WeatherOrNot3.js code to somehow reference different iframes? Is there a different way to reference multiple iframes running on MM?
-
I tried that. No luck. If you wanted to try for yourself, do:
Make copy of module folder
Rename copy folder to MMM-WeatherOrNot2
Open the MMM-WeatherOrNot2 folder
Rename the css file to MMM-WeatherOrNot2,css
Rename the MMM_WeatherOrNot.js file to MMM-WeatherOrNot2,js
Open the MMM-WeatherOrNot2,js file
Change line 8 toModule.register("MMM-WeatherOrNot2",{
Change line 49return ["MMM-WeatherOrNot2.css"];
Make new entry in config for MMM-WeatherOrNot2 -
@Mykle1 said in MMM-WeatherOrNot:
I tried that. No luck. If you wanted to try for yourself, do:
Make copy of module folder
Rename copy folder to MMM-WeatherOrNot2
Open the MMM-WeatherOrNot2 folder
Rename the css file to MMM-WeatherOrNot2,css
Rename the MMM_WeatherOrNot.js file to MMM-WeatherOrNot2,js
Open the MMM-WeatherOrNot2,js file
Change line 8 toModule.register("MMM-WeatherOrNot2",{
Change line 49return ["MMM-WeatherOrNot2.css"];
Make new entry in config for MMM-WeatherOrNot2Yes, unfortunately, I had the same result. Is there a way to create an array and display all of the configured locations?
-
You could always give it a try. :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
