• 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

Scheduled Pinned Locked Moved Troubleshooting
28 Posts 7 Posters 12.7k Views 6 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.
  • R Offline
    relluts
    last edited by Apr 21, 2017, 6:37 PM

    Lost my weather when i put in location and api

    1 Reply Last reply Reply Quote 0
    • R Offline
      relluts
      last edited by Apr 21, 2017, 7:08 PM

      Nevermind. Got it resolved.

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gamble
        last edited by Aug 13, 2017, 4:23 AM

        What did you do? mine is doing this

        M 1 Reply Last reply Aug 13, 2017, 11:02 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Gamble
          last edited by Aug 13, 2017, 11:02 AM

          @Gamble said in Weather:

          What did you do? mine is doing this

          Post your weather config.js entry here using this guide

          https://forum.magicmirror.builders/topic/4247/how-to-post-code-on-the-forum-for-absolute-beginners

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gamble
            last edited by Aug 13, 2017, 4:00 PM

            */
            
            var config = {
                   port: 8080,
                   ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                                                          // or add a specific IPv4 of 192.168.1.5 :
                                                                          // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                                          // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                                                          // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
            
                   language: "en",
                   timeFormat: 12,
                   units: "imperial",
                   modules: [
                           {
                                   module: "updatenotification",
                                   position: "top_bar"
                            },
                           {
                                   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: "",
                                           locationID: "4899154",  //ID from http://www.openweathermap.org/help/city_list.txt
                                           appid: "8cfa7d38943405ef3da2456894ea1143"
                                   }
                           },
                           {
                                   module: "weatherforecast",
                                   position: "top_right",
                                   header: "Weather Forecast",
                                   config: {
                                           location: "",
                                           locationID: "4899154",  //ID from http://www.openweathermap.org/help/city_list.txt
                                           appid: "8cfa7d38943405ef3da2456894ea1143"
                                   }
                           },
                           {
                                   module: "newsfeed",
                                   position: "bottom_bar",
                                   config: {
                                           feeds: [
                                                   {
                                                           title: "Chicago",
                                                           url: "feeds.foxnews.com/foxnews/latest"
                                                   }
                                           ],
                                   config: {
                                           location: "",
                                           locationID: "4899154",  //ID from http://www.openweathermap.org/help/city_list.txt
                                           appid: "8cfa7d38943405ef3da2456894ea1143"
                                   },
                          },
                          {
                                   module: "weatherforecast",
                                   position: "bottom_left",
                                   header: "Weather Forecast",
                                   config: {
                                           location: "",
                                           locationID: "4899154",  //ID from http://www.openweathermap.org/help/city_list.txt
                                           appid: "8cfa7d38943405ef3da2456894ea1143"
                                   }
                           },
                           {
                                   module: "newsfeed",
                                   position: "bottom_bar",
                                   config: {
                                           feeds: [
                                                   {
                                                           title: "Chicago",
                                                           url: "feeds.foxnews.com/foxnews/latest"
                                                   }
                                           ],
                                           showSourceTitle: true,
                                           showPublishDate: true
                                   }
                           },
                   ]
            
            },
            

            I still need to add the MMM-trello but for now JSlint.com is giving me an error and I can’t figure it out.
            So for right now it doesn’t even load

            C 1 Reply Last reply Aug 13, 2017, 4:26 PM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @Gamble
              last edited by cowboysdude Aug 13, 2017, 4:29 PM Aug 13, 2017, 4:26 PM

              @Gamble Here is a valid config… there were a few errors in it… the very end you had },
              should be };

              Happens to the best of us :) Once you get this working as is then make a copy of it and add your Trello module… that way if you have a problem you ALWAYS have a backup of a good working config ;)

              var config = {
              port: 8080,
              ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
              // or add a specific IPv4 of 192.168.1.5 :
              // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
              // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
              // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
              
              language: "en",
              timeFormat: 12,
              units: "imperial",
              modules: [{
                      module: "updatenotification",
                      position: "top_bar"
                  },
                  {
                      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: "",
                          locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                          appid: "8cfa7d38943405ef3da2456894ea1143"
                      }
                  },
                  {
                      module: "weatherforecast",
                      position: "top_right",
                      header: "Weather Forecast",
                      config: {
                          location: "",
                          locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                          appid: "8cfa7d38943405ef3da2456894ea1143"
                      }
                  },
                  {
                      module: "newsfeed",
                      position: "bottom_bar",
                      config: {
                          feeds: [{
                              title: "Chicago",
                              url: "feeds.foxnews.com/foxnews/latest"
                          }],
                      }
              
                  },
                  {
                      module: "weatherforecast",
                      position: "bottom_left",
                      header: "Weather Forecast",
                      config: {
                          location: "",
                          locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                          appid: "8cfa7d38943405ef3da2456894ea1143"
                      }
                  },
                  {
                      module: "newsfeed",
                      position: "bottom_bar",
                      config: {
                          feeds: [{
                              title: "Chicago",
                              url: "feeds.foxnews.com/foxnews/latest"
                          }],
                          showSourceTitle: true,
                          showPublishDate: true
                      }
                  },
                 ]
                };
              
              1 Reply Last reply Reply Quote 1
              • G Offline
                Gamble
                last edited by Aug 13, 2017, 5:15 PM

                Thanks but I still have an error and it’s not loading. Can you have a look at 61

                var config = {
                port: 8080,
                ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                // or add a specific IPv4 of 192.168.1.5 :
                // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                
                language: "en",
                timeFormat: 12,
                units: "imperial",
                modules: [{
                        module: "updatenotification",
                        position: "top_bar"
                    },
                    {
                        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: "",
                            locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "8cfa7d38943405ef3da2456894ea1143"
                        }
                    },
                    {
                        module: "weatherforecast",
                        position: "top_right",
                        header: "Weather Forecast",
                        config: {
                            location: "",
                            locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "8cfa7d38943405ef3da2456894ea1143"
                        }
                    },
                    {
                        module: "newsfeed",
                        position: "bottom_bar",
                        config: {
                            feeds: [{
                                title: "Chicago",
                                url: "feeds.foxnews.com/foxnews/latest"
                            }],
                        },
                    },
                    {
                        module: "weatherforecast",
                        position: "bottom_left",
                        header: "Weather Forecast",
                        config: {
                            location: "",
                            locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                            appid: "8cfa7d38943405ef3da2456894ea1143"
                        }
                    },
                    {
                        module: "newsfeed",
                        position: "bottom_bar",
                        config: {
                            feeds: [{
                                title: "Chicago",
                                url: "feeds.foxnews.com/foxnews/latest"
                            }],
                            showSourceTitle: true,
                            showPublishDate: true
                        }
                    },
                   ]
                  };
                
                M V 2 Replies Last reply Aug 13, 2017, 5:20 PM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Gamble
                  last edited by Aug 13, 2017, 5:20 PM

                  @Gamble said in Weather:

                  Can you have a look at 61

                  Remove the comma

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer
                    last edited by Aug 13, 2017, 5:21 PM

                    You also have 2 newsfeed entries with the same url

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gamble
                      last edited by Aug 13, 2017, 5:32 PM

                      Which comma?
                      I deleted the second newsfeed so now it’s error on line 51 but I don’t see a comma.

                      var config = {
                      port: 8080,
                      ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                      // or add a specific IPv4 of 192.168.1.5 :
                      // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                      // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                      // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                      
                      language: "en",
                      timeFormat: 12,
                      units: "imperial",
                      modules: [{
                              module: "updatenotification",
                              position: "top_bar"
                          },
                          {
                              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: "",
                                  locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                                  appid: "8cfa7d38943405ef3da2456894ea1143"
                              }
                          },
                          {
                              module: "newsfeed",
                              position: "bottom_bar",
                              config: {
                                  feeds: [{
                                      title: "Chicago",
                                      url: "feeds.foxnews.com/foxnews/latest"
                                  }],
                              }
                      
                          },
                          {
                              module: "weatherforecast",
                              position: "top_right",
                              header: "Weather Forecast",
                              config: {
                                  location: "",
                                  locationID: "4899154", //ID from http://www.openweathermap.org/help/city_list.txt
                                  appid: "8cfa7d38943405ef3da2456894ea1143"
                              }
                          },
                          {
                              module: "newsfeed",
                              position: "bottom_bar",
                              config: {
                                  feeds: [{
                                      title: "Chicago",
                                      url: "feeds.foxnews.com/foxnews/latest"
                                  }],
                                  showSourceTitle: true,
                                  showPublishDate: true
                              }
                          },
                         ]
                        };
                      
                      M 1 Reply Last reply Aug 13, 2017, 9:18 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • 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