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.

    London Bus status

    Scheduled Pinned Locked Moved Requests
    27 Posts 4 Posters 16.5k 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.
    • S Offline
      soqueen
      last edited by

      Hm. I tried that. I copied the module and contents to modulename2, changed the .js to 2.js - edited the 2.js to (module.register) to modulename2 .

      Then I changed my config file - copied the first module to another instance and changed its name to modulename2. (then i changed the atcocode for a new bus stop). --It’s stuck on loading bus info…

      nwoottonN 1 Reply Last reply Reply Quote 0
      • nwoottonN Offline
        nwootton Module Developer @soqueen
        last edited by

        @soqueen I’ve just pushed a new version that hopefully allows you to have multiple instances of the module running. It’s been working happily this afternoon running three different bus stops around the area with no complaints.

        You’ll need to do a git pull to update, then run the

        cd MMM-UKLiveBusStopInfo
        npm install 
        

        to install the new dependencies.

        Give it a try and let me know. If it goes pear-shaped I can always roll the old version back and look again later.

        1 Reply Last reply Reply Quote 0
        • S Offline
          soqueen
          last edited by

          It works! Thank you SO VERY much! I really appreciate it! Thank you!

          1 Reply Last reply Reply Quote 0
          • S Offline
            soqueen
            last edited by

            HI there! One of the newest updates took off the heading for my multiple instances. It only puts a header on the first one. I tried adding a header in the config.js file but it ignors it. Help please?

            nwoottonN 1 Reply Last reply Reply Quote 0
            • nwoottonN Offline
              nwootton Module Developer @soqueen
              last edited by

              @soqueen mmm weird, didn’t do that for me in testing. I’ll have a look later when I get home.

              1 Reply Last reply Reply Quote 0
              • S Offline
                soqueen
                last edited by

                updated and now even the first one is missing. :)

                nwoottonN 2 Replies Last reply Reply Quote 0
                • nwoottonN Offline
                  nwootton Module Developer @soqueen
                  last edited by

                  @soqueen I’ve just hacked a fix together. Give it a try and let me know.

                  1 Reply Last reply Reply Quote 0
                  • nwoottonN Offline
                    nwootton Module Developer @soqueen
                    last edited by nwootton

                    @soqueen I’ve just noticed some weird behaviour this end while trying to fix this. Did you update your Mirror to 2.1.1? If so did you then do a new npm install afterwards?

                    I ask because on one box the departures now shows no header at all, while the other now shows both departures AND the bus stop name…

                    0_1492251079990_Screen Shot 2017-04-15 at 11.09.44.png

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      soqueen
                      last edited by

                      I re-ran the npm install just in case I hadn’t done it before, and then pulled your update. Now the headers are back! Thanks!

                      nwoottonN 1 Reply Last reply Reply Quote 0
                      • nwoottonN Offline
                        nwootton Module Developer @soqueen
                        last edited by

                        @soqueen TBH I rolled the master branch back to an earlier version that worked and branched the version with the bus stop name as the header.

                        Once I get the last couple of issues in that branch version sorted I’ll role it back into the master. If you want to try it and give me feedback, the branch is called HeadersIssue.

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