jclarke0000/MMM-MyCommute

Module won't load traffic information?

greghesp opened this issue · 4 comments

Hi,

I' m having some issues when getting this module to load. Below is the config I am using.
The module loads fine, no errors, but it sticks on "Loading..."

			module:	"MMM-MyCommute",
			position: "top_center",
			classes: 'default everyone',
			header: "Traffic",
			config: {
				apikey: "key",
				origin: "65 Front St W, Toronto, ON M5J 1E6",
				startTime: "00:00",
				endTime: "17:00",
				//hideDays: [0,6],
				destinations: [
				{
					destination: "14 Duncan St Toronto, ON M5H 3G8",
					label: "JTI",
					mode: "driving",
					color: "#22a960"
				}]
			}
		}

I'm actually having the same issue, where my mirror is stuck at "loading..." but nothing else, and that is with a valid API key. I assume you've populated your API key field?

Same problem. I've added my API key, and I even see the network request for the directions, with a valid JSON response containing the directions.

Just figured it out! You have to restart the main MagicMirror script after adding this module.

@aaronpk i've restarted the main MagicMirror and its still just says 'loading..'

edit: i found the problem, i didnt install it into the modules folder, and be sure to run npm install