Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Module Not Loading #17

Closed
IowaHawks13 opened this issue Nov 26, 2017 · 2 comments
Closed

Module Not Loading #17

IowaHawks13 opened this issue Nov 26, 2017 · 2 comments

Comments

@IowaHawks13
Copy link

Hi, I ran through all steps like you explained in your directions to install and include a module line in my config.js file to run the module. However, everything but this module loads in the Magic Mirror, it's like I don't even have te module plugged in or installed. Below is my full config.js code, could you tell me if you see any issues with my setup or what I could do differently? Is there something with the other modules that it is not playing nicely with? So far, the only custom module I have is the calendar_monthly.

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: [], // 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: "MMM-CalendarExt",
			position: "top_left",
			config: {
				calendars: [
					{
						url: "http://mlb.am/tix/mariners_schedule_full"
					}
				]
			}
		},
		{
			module: "alert",
		},
		{
			module: "updatenotification",
			position: "top_bar"
		},
		{
			module: "clock",
			position: "top_left"
		},
		{
			module: "calendar_monthly",
			position: "top_left"
		},
		{
			module: "compliments",
			position: "bottom_bar"
		},
		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "Iowa City",
				locationID: "4862034",  //ID from http://www.openweathermap.org/help/city_list.txt
				appid: "API_Key_Text",
				showHumidity: "true"
			}
		},
		{
			module: "weatherforecast",
			position: "top_right",
			header: "Weather Forecast",
			config: {
				location: "Iowa City",
				locationID: "4862034",  //ID from http://www.openweathermap.org/help/city_list.txt
				appid: "API_Key_Text",
				showRainAmount: true,
				fade: false,
				fadePoint: 1,
				colored: true
			}
		},
		{
			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
			}
		}
	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
@eouia
Copy link
Owner

eouia commented Nov 27, 2017

Hi, there.
I think there is nothing wrong with your config.
I suspect there might be some error caused by another module on the front view. Errors from frontview could prevent modules working.
You can check with execution npm start dev in your MagicMirror directory. (before running, stop current instance with pm2 stop mm or anything)
after npm start dev, you can see dev console window with your MM. You can see the error messages or custom logs in that window.

@IowaHawks13
Copy link
Author

Hi, thanks for the tips. When I started with dev, everything appeared to load correctly. When I shut it down and started up normally, it now loads as expected. I'm not really sure what happened, but everything seems to be functioning, so I'm going to mark this issue as closed. Thanks for your feedback, I appreciate it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants