• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-futar - how to add modules multiple time?

Scheduled Pinned Locked Moved Solved Troubleshooting
24 Posts 3 Posters 3.7k 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.
  • 0 Offline
    0livia @sdetweil
    last edited by Dec 9, 2022, 4:01 PM

    @sdetweil sorry i do not understand you

    0 1 Reply Last reply Dec 9, 2022, 4:06 PM Reply Quote 0
    • 0 Offline
      0livia @0livia
      last edited by 0livia Dec 9, 2022, 4:08 PM Dec 9, 2022, 4:06 PM

      @0livia the mirror actually works with only one item
      https://imgur.com/a/j1iYnaN

      , as soon as i edit the config js

      {
                  module: "MMM-Futar",
                  position: "top_left",
                  header: 'Közvágóhíd -> Ráckeve',
                  config: {
                      stopId: 'BKK_009628',  // Közvágóhíd
                      routeId: 'BKK_H6,
                  }
              },
              {
                  module: "MMM-Futar",
                  position: "top_left",
                  header: 'Ráckeve -> Közvágóhíd',
                  config: {
                      stopId: 'BKK_007947',  // Ráckeve
                      routeId: 'BKK_H6',
                  }
      

      it stop working

      S 1 Reply Last reply Dec 9, 2022, 4:08 PM Reply Quote 0
      • S Away
        sdetweil @0livia
        last edited by sdetweil Dec 9, 2022, 4:10 PM Dec 9, 2022, 4:08 PM

        @0livia said in MMM-futar - how to add modules multiple time?:

            {
                module: "MMM-Futar",
                position: "top_left",
                header: 'Ráckeve -> Közvágóhíd',
                config: {
                    stopId: 'BKK_007947',  // Ráckeve
                    routeId: 'BKK_H6',
                }
        

        that is missing the } of the module:

        so the following stuff becomes part of the last futar module block

        remove this from config.js

        {
                minutesAfter: 50,
                hideStopTimesInNextMinutes: 0,
                updateInterval: 60000, // 1 minute in milliseconds
                showHead: true, // true | false
                showSymbolInHead: true, // true | false
                showSymbolInStopTime: false, // true | false
                showRouteNameInStopTime: false, // true | false
                maxNumberOfItems: 3,
                align: 'left', // 'left' | 'right'
                fade: true,
                fadePoint: 0.25,
                coloredSymbolInHead: true, // true | false
                coloredTextInHead: true, // true | false
                coloredSymbolInStopTime: true, // true | false
                coloredRouteNameInStopTime: true, // true | false
                symbolColors: {
                  tram: '#ffcf42', // yellow-ish
                  bus: '#1a9fed', // blue-ish
                  subway: '#b3090c', // red-ish
                  trolleybus: '#931517', // dark red-ish
                  rail: '#5cbc82', // green-ish
                  ferry: '#1a52ed' // dark-blue-ish
                },
        }
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        0 1 Reply Last reply Dec 9, 2022, 4:53 PM Reply Quote 0
        • 0 Offline
          0livia @sdetweil
          last edited by Dec 9, 2022, 4:53 PM

          @sdetweil when removed the bit you suggested it is working now.
          The thing is what i do not understand that it worked before removing the section from the config.js just only with one single item. Anyway thank you for your help guys!

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