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 5.0k 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

      @sdetweil so what do i need to modify?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @0livia
        last edited by

        @0livia the section I copied is incomplete…

        what module is that for?
        where do you want it (position:)
        and I ‘guess’ all that should be inside the config: {} section

        a module is

        {   
            module:  name,
            position: xxxx,
            config: {
             ...
             ...  module specific config 
             ...
            }
        }
        

        please read the topics listed in my signature, they will help a lot… I didn’t write them

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        0 1 Reply Last reply Reply Quote 0
        • 0 Offline
          0livia @sdetweil
          last edited by

          @sdetweil i do not know hwat do you mean sorry.

          if you have read the config js evrything is there, the module name position etc

          {
                  module: 'MMM-Futar',
                  position: 'top_center',
                  config: {
                  stopId: 'BKK_044033',
                  routeId: '',
                  }
              },
                  {
                  module: 'MMM-Futar',
                  position: 'top_center',
                  header: 'Ráckeve -> Közvágóhíd',
                  config: {
                  stopId: 'BKK_007947',  // Ráckeve
                  routeId: 'BKK_H6',
                  }
                  },
                  {
                  module: "MMM-Futar",
                  position: "top_center",
                  header: 'Közvágóhíd -> Ráckeve',
                  config: {
                  stopId: 'BKK_009628',  // Közvágóhíd
                  routeId: 'BKK_H6',
                      }
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @0livia
            last edited by sdetweil

            @0livia it is NOT the Futar module setup… its the stuff AFTER

            this stuff

              {
                    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 Reply Quote 0
            • 0 Offline
              0livia @sdetweil
              last edited by

              @sdetweil yes that is correct.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @0livia
                last edited by sdetweil

                @0livia it MUST have more info to be in the modules:[] list

                it is missing the REQUIRED module: , position: and config: {} sections

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                0 1 Reply Last reply Reply Quote 0
                • 0 Offline
                  0livia @sdetweil
                  last edited by

                  @sdetweil sorry i do not understand you

                  0 1 Reply Last reply Reply Quote 0
                  • 0 Offline
                    0livia @0livia
                    last edited by 0livia

                    @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 Reply Quote 0
                    • S Offline
                      sdetweil @0livia
                      last edited by sdetweil

                      @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 Reply Quote 0
                      • 0 Offline
                        0livia @sdetweil
                        last edited by

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