deg0nz/MMM-PublicTransportBerlin

stuck at "Loading ..."

aduewel opened this issue · 3 comments

Hi,

I just tried out the MagicMirror² (current master 8010e6220d4cc68e9f9e3c1029998cc47df0f193) and your this module (current master, too). Run the npm install, but sadly it does not load the departure times, and got stuck at Loading ...

OS: Debian 8
Node: v5.12.0

my config:

{
	module: 'MMM-PublicTransportBerlin',
	position: 'top_right',
	config: {
		name: 'Kniprodestr./Danziger',
		stationId: 900000110021,
		hidden: false,
		delay: 10,
		interval: 120000,
		departureMinutes: 10,
		maxDepartures: 15,
		marqueeLongDirections: true,
		showColoredLineSymbols: true,  
		useColorForRealtimeInfo: true,
		showTableHeadersAsSymbols: true,
		maxUnreachableDepartures: 3,
		maxReachableDepartures: 7,
		fadeUnreachableDepartures: true,
		fadeReachableDepartures: true,
		fadePointForReachableDepartures: 0.25
	}
},

node serveronly output after loading the page:

Starting MagicMirror: v2.1.0
Loading config ...
Loading module helpers ...
Initializing new module helper ...
No helper found for module: clock.
Initializing new module helper ...
Initializing new module helper ...
Initializing new module helper ...
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper ...
All module helpers loaded.
Starting server op port 8080 ... 
Server started ...
Connecting socket for: updatenotification
Connecting socket for: MMM-FRITZ-Box-Callmonitor
Starting module: MMM-FRITZ-Box-Callmonitor
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: MMM-PublicTransportBerlin
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started ...

Ready to go! Please point your browser to: http://localhost:8080
Received config for MMM-FRITZ-Box-Callmonitor
MMM-FRITZ-Box-Callmonitor is waiting for incoming calls.
Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/*******/basic.ics - Interval: 300000
Create new news fetcher for url: https://www.heise.de/newsticker/heise-top-atom.xml - Interval: 300000
Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
Transportation fetcher for station Kniprodestr./Danziger Str. created. (Station ID: 900000110021)

I have tried different stations and the one from your example, same result. Is there a way to get more debug output?

Kind regards,
André

Thanks for reporting!

I'm using node version 6.4.0 on my Mirror.
Could you please update your node version and test, if it's working?

I'm using lots of ECMAScript 6 features in the code and it could be, that some features are not supported in node 5.

Hi @deg0nz,

your right, an update of nodejs to 6.9.x (the version installed with the MagicMirror² Raspberry install script) solved the problem.

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

Thank you!

Ok, thanks. I'll add a hint to the readme, that the minimum NodeJS version for this module will be > 6.0.0