MagicMirror² v2.4.1 is available! For more information about this release, check out this topic.
Please read the release notes carefully since this update requires adjustments to your Raspberry Pi configuration!

Current Weather module not working



  • 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: "en",
    	timeFormat: 12,
    	units: "imperial",
    
    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			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: "Omaha",
    				locationID: "5074472",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "d2c62a1048cc5a3a2e586597ce29dc45"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "Omaha",
    				locationID: "5074472",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "9ab5aef55af5581932e453668b57dd2b"
    			}
    		},
    {
    				module: 'random_quotes',
    				position: 'bottom_bar',
    				config: {
    						// The config property is optional
    						// Without a config, a random quote is shown,
    						// selected from all of the categories available.
    				}
    			},
    		{
    			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-Globe',
    	position: 'center',
    	config: {
    		style: 'geoColor',
    		imageSize:400 ,
    		ownImagePath:'',
    		updateInterval: 10*60*1000
    	}
    },
    				{
        			module: 'MMM-ATM',
       			 position: 'top_left',              // Works well anywhere
        			config: {
    				multipleChoice: "Yes",        // No = just the ? then the answer
    				useHeader: true,              // true if you want a header
    				header: "Not another trivia module!",   // Any text you want
    				maxWidth: "250px",             // Stretch or constrain according to region
        			}
    	},
    
    			
    
    			{
    	module: "MMM-cryptocurrency",
    	position: "top_right",
    	config: {
    		currency: ['ethereum', 'bitcoin', 'monero'],
    		conversion: 'USD',
    		showUSD: false,
    		headers: ['change24h', 'change1h', 'change7d'],
    		displayType: 'logoWithChanges',
    		showGraphs: true
    	}
    }
    
    ]
    };
    


  • @amped24 said in Current Weather module not working:

    http://www.openweathermap.org/

    I had the same problem and seem to have fixed it. Try setting the initialLoadDelay to 1000.

    Here’s the section from the release notes.

    initialLoadDelay The initial delay before loading. If you have multiple modules that use the same API key, you might want to delay one of the requests. (Milliseconds)

    Possible values: 1000 - 5000
    Default value: 0



  • Disregard my post. The modules stopped working again this morning and I haven’t had time to look at any logs before heading in to work.


  • Moderator



  • @yawns Thanks! That’s helpful and I’ll give it a look tonight.

    The odd bit is that mine started working after I made the change and then stopped.



  • Just started having this same issue when I updated magic mirror. The forecast works fine, but the Current weather does not show. Any updates / have you solved?



  • @sefeing My Current Weather was working again this morning without making any config changes after restarting the module.



  • Odd… mine hasn’t… Is there a way to manually restart the module?

    Edit: Seems to be related to that metric to imperial thread. If I switch to metric, it loads fine, but imperial breaks It.

    What was the solution to that?