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-WeatherOrNot

    Scheduled Pinned Locked Moved System
    21 Posts 3 Posters 4.8k Views 3 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.
    • Jarhead96097J Offline
      Jarhead96097 @Jarhead96097
      last edited by

      @Mykle1

      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,

      Jarhead96097

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Jarhead96097
        last edited by Mykle1

        @Jarhead96097

        Well, there are no guarantees.

        You’re using a separate location and locationCode 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

        Create a working config
        How to add modules

        Jarhead96097J 1 Reply Last reply Reply Quote 0
        • Jarhead96097J Offline
          Jarhead96097 @Mykle1
          last edited by

          @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!

          Jarhead96097

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Jarhead96097
            last edited by Mykle1

            @Jarhead96097

            I’m testing. I’ll let it run for a while.

            Screenshot from 2020-06-18 20-45-02.png

            Create a working config
            How to add modules

            Jarhead96097J S 2 Replies Last reply Reply Quote 1
            • Jarhead96097J Offline
              Jarhead96097 @Mykle1
              last edited by

              @Mykle1 Thanks for all the help! I love the module… just wish I could figure out why the information goes stale.

              Jarhead96097

              Mykle1M 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Mykle1
                last edited by

                @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 running

                in my modules I use the module identifier as part of the item id to avoid this

                this.identifer in the modulename.js

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                Mykle1M 1 Reply Last reply Reply Quote 2
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @sdetweil
                  last edited by

                  @sdetweil

                  It’s an iframe that is being updated via the url

                  Create a working config
                  How to add modules

                  Mykle1M S 2 Replies Last reply Reply Quote 1
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @Mykle1
                    last edited by

                    @Mykle1 is out for a smoke.

                    Create a working config
                    How to add modules

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @Mykle1
                      last edited by

                      @Mykle1 iframe. gotcha

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Mykle1
                        last edited by

                        @Mykle1 hey hey. you didn’t tell me!

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        Mykle1M 1 Reply Last reply Reply Quote 0
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer @sdetweil
                          last edited by

                          @sdetweil

                          The hell I didn’t! My last post was a broadcast notification. :-)

                          Create a working config
                          How to add modules

                          1 Reply Last reply Reply Quote 1
                          • Mykle1M Offline
                            Mykle1 Project Sponsor Module Developer @Jarhead96097
                            last edited by

                            @Jarhead96097

                            I am experiencing the same issue.

                            Create a working config
                            How to add modules

                            Jarhead96097J 2 Replies Last reply Reply Quote 0
                            • Jarhead96097J Offline
                              Jarhead96097 @Mykle1
                              last edited by Jarhead96097

                              @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.

                              Jarhead96097

                              1 Reply Last reply Reply Quote 0
                              • Jarhead96097J Offline
                                Jarhead96097 @Mykle1
                                last edited by Jarhead96097

                                @Mykle1

                                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?

                                Jarhead96097

                                Mykle1M 1 Reply Last reply Reply Quote 0
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @Jarhead96097
                                  last edited by

                                  @Jarhead96097

                                  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 to Module.register("MMM-WeatherOrNot2",{
                                  Change line 49 return ["MMM-WeatherOrNot2.css"];
                                  Make new entry in config for MMM-WeatherOrNot2

                                  Create a working config
                                  How to add modules

                                  Jarhead96097J 1 Reply Last reply Reply Quote 1
                                  • Jarhead96097J Offline
                                    Jarhead96097 @Mykle1
                                    last edited by

                                    @Mykle1 said in MMM-WeatherOrNot:

                                    @Jarhead96097

                                    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 to Module.register("MMM-WeatherOrNot2",{
                                    Change line 49 return ["MMM-WeatherOrNot2.css"];
                                    Make new entry in config for MMM-WeatherOrNot2

                                    Yes, unfortunately, I had the same result. Is there a way to create an array and display all of the configured locations?

                                    Jarhead96097

                                    Mykle1M 1 Reply Last reply Reply Quote 0
                                    • Mykle1M Offline
                                      Mykle1 Project Sponsor Module Developer @Jarhead96097
                                      last edited by

                                      @Jarhead96097

                                      You could always give it a try. :-)

                                      Create a working config
                                      How to add modules

                                      1 Reply Last reply Reply Quote 1

                                      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
                                      • 1
                                      • 2
                                      • 2 / 2
                                      • 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