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.

    New modules, don´t load

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 3.4k Views 3 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.
    • piedanielP Offline
      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
      • BangeeB Offline
        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
        • mochmanM Offline
          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
          • piedanielP Offline
            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
            • BangeeB Offline
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 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