MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Current Weather do not display



  • Hi,

    first, my English is not so good but i try to explain my problem.

    The Weather Forecast do not displayed an i dont know why.
    Here is my confi.js

    var config = {
    	address: "localhost", // Address to listen on, can be:
    	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
    	                      // - another specific IPv4/6 to listen on a specific interface
    	                      // - "", "0.0.0.0", "::" to listen on any interface
    	                      // Default, when address config is left out, is "localhost"
    	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: "de",
    	timeFormat: 24,
    	units: "metric",
    
    	modules: [
    		{
    			module: "alert",
    		},
    		
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_right"
    		},
    		
    		{
    			module: "compliments",
    			position: "lower_third"
    		},
    	
    		{
    			module: "currentweather",
    			position: "top_left",
    			config: {
    				location: "",
    				locationID: "2867714",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "2403028866217760c034e4e08bc4d45a"
    			}
    		},
    		
    		{
    			module: "newsfeed",
    			position: "bottom_bar",
    			config: {
    				feeds: [
    					{
    						title: "aktuelle Nachrichten",
    						url: "https://www.bild.de/rss-feeds/rss-16725492,feed=news.bild.html"
    					}
    				],
    				showSourceTitle: true,
    				showPublishDate: true
    			}
    		},
    	]
    
    };
    

    Who can help to fix the problem?


  • Module Developer

    You might need to add the city name




  • Moderator

    You only load module currentweather and not weatherforecast, so you won’t see any forecast.

    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "New York",
    				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "YOUR_OPENWEATHER_API_KEY"
    			}
    		},