• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Weather forecast only displays 'invalid date'

Scheduled Pinned Locked Moved Solved Troubleshooting
21 Posts 9 Posters 65.0k Views 8 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.
  • J Offline
    justjim1220 Module Developer
    last edited by Jun 25, 2018, 10:31 PM

    might be easier to help if you could post your config.js. But please hide any personal info before posting it.

    "Life's Too Short To Dance With Ugly People"
    Jim Hallock - 1995

    1 Reply Last reply Reply Quote 0
    • C Offline
      Canterrain
      last edited by Canterrain Jun 27, 2018, 10:32 PM Jun 26, 2018, 3:53 AM

      Sure, I can post that. The config checker doesn’t find any issues. Any help appreciated.

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      
      	language: 'en',
      	timeFormat: 12,
      	units: 'imperial',
      
      	modules: [
      		{
      			module: 'alert',
      		},
      		{
      			module: 'MMM-Motion-Detection',
      		},
      		{
      			module: 'clock',
      			position: 'top_left'
      		},
      		{
      			module: 'MMM-Nest',
      			position: 'bottom_right',
      			config: {
      				token:"xxx"
      			}
      		},
      		{
      			module: 'calendar',
      			header: 'Calendar',
      			position: 'top_left',
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'xxx'
      					}
      
      
      				]
      			}
      		},
      		
      		{
      			module: 'currentweather',
      			position: 'top_right',
      			config: {
      				location: 'xxx',
      				locationID: 'xxx',  //ID from http://www.openweathermap.org
      				appid: 'xxx'
      			}
      		},
      		{
      			module: 'weatherforecast',
      			position: 'top_right',
      			header: 'Weather Forecast',
      			config: {
      	            location: 'xxx',
      				locationID: 'xxx',  //ID from http://www.openweathermap.org
      	            appid: 'xxx'
      			}
      		},
      		{
      			module: 'newsfeed',
      			position: 'bottom_bar',
      			config: {
      				feeds: [
      					{
      						title: "ArsTechnica",
      						url: "http://feeds.arstechnica.com/arstechnica/index/",
      					},
      					{
      						title: "NPR",
      						url: "http://www.npr.org/rss/rss.php?id=1001"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      
      J 1 Reply Last reply Jun 26, 2018, 8:56 PM Reply Quote 0
      • J Offline
        justjim1220 Module Developer @Canterrain
        last edited by Jun 26, 2018, 8:56 PM

        @canterrain

        2 things to try…

        try putting a comma after the motion detection module

        module: ‘MMM-Motion-Detection’,

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        1 Reply Last reply Reply Quote 0
        • C Offline
          Canterrain
          last edited by Jun 27, 2018, 4:18 AM

          No luck adding the comma unfortunately.

          You mentioned 2 things to try, what was the second?

          Thanks for looking at this.

          J 1 Reply Last reply Jun 27, 2018, 8:29 PM Reply Quote 0
          • Y Offline
            yawns Moderator
            last edited by Jun 27, 2018, 10:00 AM

            appid in currentweather module is missing a ’

            Time and date on your raspberry are fine, right?

            1 Reply Last reply Reply Quote 0
            • J Offline
              justjim1220 Module Developer @Canterrain
              last edited by Jun 27, 2018, 8:29 PM

              @canterrain

              Not sure how I missed that… weird, I swear I put it in there…

              Check the time and date of your devices…

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              1 Reply Last reply Reply Quote 0
              • C Offline
                Canterrain
                last edited by Canterrain Jun 27, 2018, 10:54 PM Jun 27, 2018, 10:36 PM

                Thanks for the helpful suggestions.

                Date and time are correct on my pi, and the mirror even shows the right date and time.

                The config did have the missing ’ in current weather, I apparently accidentally deleted it when I was removing personal info. I edited the above to reflect the current status of my config file.

                This was working fine before. About the time I updated the mirror to latest version and added the motion detection module. But it didn’t happen immediately after those events. It was a few days later. I did find a logged issue (that was closed) describing the same thing, after updating the mirror.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Bob
                  last edited by Bob Jul 2, 2018, 12:04 PM Jul 2, 2018, 12:01 PM

                  I’m having the same issue as @Canterrain

                  0_1530532713034_912a9189-bc20-42b6-ae95-812dd4f864a1-image.png

                  Snipp from Clock and Weather modules are below

                   // Clock
                  		{
                  			module: "clock",
                  			position: "top_center",
                  			config: {
                  				displayType: "digital",
                  				displaySeconds: false,
                  				showPeriod: true,
                  				showPeriodUpper: false,
                  				clockBold: false,
                  				showDate: true,
                  				showWeek: false,
                  				dateFormat : "dddd, MMMM Do YYYY",
                  			},
                  		},
                  
                  // Calendar// Weather - ID from http://www.openweathermap.org/help/city_list.txt
                  		{
                  			module: "weatherforecast",
                  			position: "top_left",
                  			header: "7 Day Forecast for ",
                  			config: {
                  				fade: false,
                  				maxNumberOfDays: 7,
                  				showRainAmount: true,
                  				colored: true,
                  				locationID: "2655603",
                  				appid: "xxx"
                  			},
                  		},
                  

                  Issue only occurred once I did an update to the MM system to v.2.4.0

                  S 1 Reply Last reply Jul 3, 2018, 5:46 AM Reply Quote 0
                  • R Offline
                    Richard238
                    last edited by Jul 2, 2018, 2:03 PM

                    Same issue here

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      killing joke
                      last edited by Jul 2, 2018, 5:07 PM

                      same here.

                      Is there a possibilty to erase the comma and country code behind the location in the header?!

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        6/21
                        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