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.

    Need help with a module

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 3 Posters 1.4k Views 2 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.
    • E Offline
      esim
      last edited by yawns

      could someone please tell me what is wrong here:

      {
              module: 'MMM-NesteBussAtB',
              position: 'upper_third',
              config: {
                  showIcon: true, // Bus icon in front of row
                  showNumber: true, // Bus number
                  showFrom: true, // Bus stop name
                  showTo: true, // Bus destination
                  showMin: true, // "min" text after minutes
                  size: "medium", // Text size, for example small, medium or large
                  stopIds: [16011496, 16010496], // See https://www.atb.no/holdeplassoversikt/
                  maxCount: 2, // Max number of next buses per route
                  maxMinutes: 45, // Do not show buses more then this minutes into the future
                  stacked: true // Show multiple buses on same row, if same route and destination       
              }
          }
      

      because i can’t get it to work.

      S 1 Reply Last reply Reply Quote 0
      • E Offline
        esim
        last edited by yawns

        I solved it my self :-) using some very old programming knowledge.

        {
        module: ‘MMM-NesteBussAtB’,
        position: ‘upper_third’,
        config: {
        showIcon: true, // Bus icon in front of row
        showNumber: true, // Bus number
        showFrom: true, // Bus stop name
        showTo: true, // Bus destination
        showMin: true, // “min” text after minutes
        size: “medium”, // Text size, for example small, medium or large
        stopIds: [16011496, 16010496], // See https://www.atb.no/holdeplassoversikt/
        maxCount: 2, // Max number of next buses per route
        maxMinutes: 45, // Do not show buses more then this minutes into the future
        stacked: true // Show multiple buses on same row, if same route and destination
        }
        },
        
        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @esim
          last edited by sdetweil

          @esim put that in your config.js,

          Then run

          node tests/configs/check_config.js
          

          From the MagicMirror folder. Find and fix the errors, starting at the top

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            esim
            last edited by yawns

            I solved it my self :-) using some very old programming knowledge.

            {
            module: ‘MMM-NesteBussAtB’,
            position: ‘upper_third’,
            config: {
            showIcon: true, // Bus icon in front of row
            showNumber: true, // Bus number
            showFrom: true, // Bus stop name
            showTo: true, // Bus destination
            showMin: true, // “min” text after minutes
            size: “medium”, // Text size, for example small, medium or large
            stopIds: [16011496, 16010496], // See https://www.atb.no/holdeplassoversikt/
            maxCount: 2, // Max number of next buses per route
            maxMinutes: 45, // Do not show buses more then this minutes into the future
            stacked: true // Show multiple buses on same row, if same route and destination
            }
            },
            
            1 Reply Last reply Reply Quote 0
            • E Offline
              esim @sdetweil
              last edited by

              @sdetweil thanks, a very nice tip that one.

              1 Reply Last reply Reply Quote 0
              • bheplerB Offline
                bhepler Module Developer
                last edited by

                Please use the Markdown features of the board when posting code or logs.

                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