Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    New modules, don´t load

    Troubleshooting
    3
    5
    2436
    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.
    • piedaniel
      piedaniel last edited by

      Hello everyone,

      When I insert new modules into the config.js, the MagicMirror don´t load nothing, just black screen. When I took out this new code, everything work fine.

      Ex: Copy the MMM-meteoblueCurrent repository into modules folder. Then on config.js insert the new code like this:

      ~~modules: [
      {
      module: ‘alert’,
      },
      {
      module: ‘clock’,
      position: ‘top_left’
      },
      {
      module: ‘calendar’,
      header: ‘US Holidays’,
      position: ‘top_left’,
      config: {
      calendars: [
      {
      symbol: 'calendar-check-o ',
      url: ‘webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics’
      }
      ]
      }
      },
      {
      module: ‘compliments’,
      position: ‘lower_third’
      },
      {
      module: ‘currentweather’,
      position: ‘top_right’,
      config: {
      location: ‘New York’,
      locationID: ‘’, //ID from bulk.openweather.org/sample/
      appid: ‘YOUR_OPENWEATHER_API_KEY’
      }
      },
      {
      module: ‘weatherforecast’,
      position: ‘top_right’,
      header: ‘Weather Forecast’,
      config: {
      location: ‘New York’,
      locationID: ‘5128581’, //ID from bulk.openweather.org/sample/
      appid: ‘YOUR_OPENWEATHER_API_KEY’
      }
      },

      	{
      		module: 'newsfeed',
      		position: 'bottom_bar',
      		config: {
      			feeds: [
      				{
      					title: "New York Times",
      					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      				}
      			],
      			showSourceTitle: true,
      			showPublishDate: true
      		}
      	},
      	{
      		module: 'MMM-meteoblueCurrent',
      		position: 'bottom_left',
      		config: {
      			apikey: '123456789', // private; don't share!
      			city: 'Oberrieden',
      			lat: '47.2744',
      			lon: '8.5784',
      			asl: '464'
      		}
      	},
      ]
      

      ~~

      Result black screen without nothing. Take out the metroblue module code, everything work fine.

      ~~

        {
      	module: 'MMM-meteoblueCurrent',
      		position: 'bottom_left',
      		config: {
      			apikey: '123456789', // private; don't share!
      			city: 'Oberrieden',
      			lat: '47.2744',
      			lon: '8.5784',
      			asl: '464'
      		}
      	},
      

      ~~

      What I are missing??

      1 Reply Last reply Reply Quote 0
      • Bangee
        Bangee Module Developer last edited by

        Can you show maybe show some error’s from the logs: pm2 logs mm
        Or do you use firebug when your testing you MM in your webbrowser?

        1 Reply Last reply Reply Quote 1
        • mochman
          mochman Module Developer last edited by

          @piedaniel Just quickly looking at your config.js, it looks like MMM-meteoblueCurrent module is the last one. Try taking out that last comma after you close out the module with the bracket.

          1 Reply Last reply Reply Quote 0
          • piedaniel
            piedaniel last edited by

            Here you have my log. I don´t know why is not loading the Meteoblue with a error server. I´m with MacOs.
            ~~
            logger.js:20 Load script: modules/default/newsfeed//newsfeed.js
            logger.js:20 Module registered: newsfeed
            logger.js:17 Bootstrapping module: newsfeed
            logger.js:20 File already loaded: moment.js
            logger.js:20 Scripts loaded for: newsfeed
            logger.js:20 Styles loaded for: newsfeed
            logger.js:20 Translations loaded for: newsfeed
            logger.js:20 Load script: modules/MMM-meteoblueCurrent//MMM-meteoblueCurrent.js
            http://localhost:8080/modules/MMM-meteoblueCurrent//MMM-meteoblueCurrent.js Failed to load resource: the server responded with a status of 404 (Not Found)
            ~~

            1 Reply Last reply Reply Quote 0
            • Bangee
              Bangee Module Developer last edited by

              Are you sure, that the files are there?
              If the are, let’s try to restart pm2 restart mm or sudo reboot.

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy