MagicMirror² v2.7.0 is available! For more information about this release, check out this topic.

Need help with a module



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



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



  • 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
    }
    },
    


  • @sdetweil thanks, a very nice tip that one.


  • Project Sponsor

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