• 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
  1. Home
  2. axllin
  3. Posts
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
A
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 0
  • Posts 1
  • Groups 0

Posts

Recent Best Controversial
  • RE: MMM-ResRobot - Public transport information for Sweden

    Hi @Alvinger I have a question for you!

    When I run npm run start I get the message:

    [name-here]@raspberrypi:~/MagicMirror $ npm run start
    
    > magicmirror@2.26.0 start
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    [11.02.2024 18:46.51.586] [LOG]   Starting MagicMirror: v2.26.0
    [11.02.2024 18:46.51.592] [LOG]   Loading config ...
    [11.02.2024 18:46.51.596] [DEBUG] config template file not exists, no envsubst
    [11.02.2024 18:46.51.600] [LOG]   Loading module helpers ...
    [11.02.2024 18:46.51.603] [LOG]   No helper found for module: alert.
    [11.02.2024 18:46.51.649] [LOG]   Initializing new module helper ...
    [11.02.2024 18:46.51.651] [LOG]   Module helper loaded: updatenotification
    [11.02.2024 18:46.51.655] [LOG]   No helper found for module: clock.
    [11.02.2024 18:46.51.659] [LOG]   No helper found for module: weather.
    [11.02.2024 18:46.51.661] [WARN]  No /home/[name-here]/MagicMirror/js/../modules/MMM-ResRobot/MMM-ResRobot.js found for module: MMM-ResRobot.
    [11.02.2024 18:46.51.663] [LOG]   No helper found for module: MMM-ResRobot.
    

    The module doesn’t load and it posts something about not finding a .js for the module?

    My current config in the config.js looks like this where I have pulled the station IDs from Trafiklab:

    {
                module: "MMM-ResRobot",
                position: "top_right",
                header: "Departures",
                config: {
                    routes: [
                        {from: "[removed]", to: "[removed]"},
                        ],
                    skipMinutes: 0,
                    maximumEntries: 3,
                    maximumDuration: 60,
                            getRelative: 10, 
                    truncateAfter: 5,
                    truncateLineAfter: 5,
                                showTrack: true,
                    coloredIcons: false,
                    apiKey: "[my-api-key]",
                          }
                },
    

    Do you know what would be the issue with the module loading?

    EDIT: I found the issue. I had the folder in /modules named as MMM-ResRobot-master. Removing the -master made it match the given module name in the config.js. It now works.

    posted in Transport
    A
    axllin
    Feb 11, 2024, 5:54 PM
  • 1 / 1
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