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

Need help with a module

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 3 Posters 1.2k 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 Jan 11, 2019, 6:51 PM Jan 10, 2019, 4:43 PM

    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 Jan 10, 2019, 4:58 PM Reply Quote 0
    • E Offline
      esim
      last edited by yawns Jan 11, 2019, 6:51 PM Jan 10, 2019, 5:02 PM

      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 Offline
        sdetweil @esim
        last edited by sdetweil Jan 10, 2019, 4:59 PM Jan 10, 2019, 4:58 PM

        @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 Jan 10, 2019, 5:19 PM Reply Quote 0
        • E Offline
          esim
          last edited by yawns Jan 11, 2019, 6:51 PM Jan 10, 2019, 5:02 PM

          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 Jan 10, 2019, 5:19 PM

            @sdetweil thanks, a very nice tip that one.

            1 Reply Last reply Reply Quote 0
            • B Offline
              bhepler Module Developer
              last edited by Jan 11, 2019, 6:40 PM

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

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