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.

    Multiple Vehicles MMM-BMWConnected

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    10 Posts 3 Posters 1.6k 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.
    • C Offline
      crush
      last edited by

      Hello, I’m looking for a way to use multiple vehicles in this module, maybe someone can help with this problem. I’ve two vehicles, everyone with its own BMW Account and can’t solve this problem by my self.

      greetings crush

      mumblebajM 1 Reply Last reply Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @crush
        last edited by

        @crush You could run two instances of the module.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          crush @mumblebaj
          last edited by

          @mumblebaj I tried that, unfortunately unsuccessfully.
          My two problems:

          1. Instance 2 shows the same values ​​as instance 1, although I use different access data for Instance 2.
          2. The image isn’t displayed correctly, it seems like everything is a bit bigger and so it doesn’t fit properly anymore.
            I am attaching a picture.

          Bildschirmfoto 2022-02-20 um 20.13.45.png

          1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer
            last edited by

            @crush the module doesn’t support multiple instances by itself.

            By the design of the MagicMirror framework, all instances of the module share one node_helper, which in the case of this module is overwriting the config.

            You could ask the author in the Github repo for multi-instance support.

            There is also a workaround to achieve this, until the module provides multi-instance support out of the box, by duplicating the module directory and renaming it to MMM-BMWConnected2. Inside that directory, you have to rename files like MMM-BMWConnected.js to MMM-BMWConnected2.js. Also inside the files, you have to change all occurrences from MMM-BMWConnected to MMM-BMWConnected. Don’t forget to change the module name in the config.js for your second entry. You should repeat this process after every update of the module that you install to stay up-to-date.

            Please create a github issue if you need help, so I can keep track

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              crush @strawberry 3.141
              last edited by

              @strawberry-3-141 Thank you for your response. I used this workaround by duplicating before (yesterday) and had the problems as mentioned. The second instance (www-bmwconnected2) shows the same datas as instance number one (www-bmwconnected)???

              mumblebajM 1 Reply Last reply Reply Quote 0
              • mumblebajM Offline
                mumblebaj Module Developer @crush
                last edited by

                @crush and @strawberry-3-141 could it be that both the modules are getting the same notification and payload?

                Check out my modules at: https://github.com/mumblebaj?tab=repositories

                1 Reply Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer
                  last edited by

                  @crush are you sure you also changed the module name for the second instance in the config file? It sounds like you have forgotten to rename something. If you need more help you can contact me on the discord channel and I can have a look.

                  @mumblebaj the notifications are bidirectional with the node_helper, after renaming the module correctly MagicMirror will spawn a node_helper A for module A and node_helper B for module B. They communicate directly with each other (sendSocketNotification) so the other module will not receive the notification.

                  Please create a github issue if you need help, so I can keep track

                  C 2 Replies Last reply Reply Quote 0
                  • C Offline
                    crush @strawberry 3.141
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      crush @strawberry 3.141
                      last edited by

                      @strawberry-3-141 I got it, thanks. I had to rename both modules like “module1” and “module2”. “Module” only and “Module2” as second didn’t work!

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @crush
                        last edited by

                        @crush that shouldn’t matter. Maybe you forgot to rename something that you fixed with renaming again.

                        Please create a github issue if you need help, so I can keep track

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • 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