MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Henrik
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 26
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: [MMM-Skolmaten] Shows school lunch menus in Sweden from skolmaten.se

      I get the same problem. @retroflex, this is the output log, may help if you want to fix the issue:

      TypeError: Parser.parseURL is not a function
          at Class.loadFeed (C:\Users\henri\MagicMirror\modules\MMM-Skolmaten\node_helper.js:44:10)
          at Class.socketNotificationReceived (C:\Users\henri\MagicMirror\modules\MMM-Skolmaten\node_helper.js:31:9)
          at Socket. (C:\Users\henri\MagicMirror\modules\node_modules\node_helper\index.js:113:11)
          at emitTwo (events.js:106:13)
          at Socket.emit (events.js:191:7)
          at C:\Users\henri\MagicMirror\node_modules\socket.io\lib\socket.js:513:12
          at _combinedTickCallback (internal/process/next_tick.js:67:7)
          at process._tickCallback (internal/process/next_tick.js:98:9)
      
      
      posted in Utilities
      H
      Henrik
    • RE: Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10

      @Mykle1 I fully am. :) Now the time has come to develop my first module.

      posted in Troubleshooting
      H
      Henrik
    • RE: Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10

      @Mykle1 Fantastic, thanks!

      posted in Troubleshooting
      H
      Henrik
    • RE: Problem with Weather forecast

      @Sp4M Good work! :)

      posted in Troubleshooting
      H
      Henrik
    • RE: Problem with Weather forecast

      @Mykle1 Thanks, will check that out!

      posted in Troubleshooting
      H
      Henrik
    • RE: Problem with Weather forecast

      I made a quick’n’dirty hack to make it only display the weather at noon each day. Around line 340, I added a simple if statement. I’m in UTC+2, so I had to put 14 instead of 12 in the comparison.

      this.parserDataWeather(forecast); // hack issue #1017
      
      if ( moment(forecast.dt, "X").format("HH") != "14")
        continue; //new if statement
      
      this.forecast.push({
      

      The limit of 16 no longer means 16 days, but 16 forecasts. Therefore, we need to change the enforced limit, around line 300, I set it to something higher (I chose 57):

      params += "&cnt=" + (((this.config.maxNumberOfDays < 1) || (this.config.maxNumberOfDays > 16)) ? 57
      

      Don’t forget to change the value in the actual config to the same number (57 in my case).
      I chose 57 to get a full week, but it seems the API won’t return more than 5 days’ worth of data anyway.

      posted in Troubleshooting
      H
      Henrik
    • 1
    • 2
    • 3
    • 3 / 3