Read the statement by Michael Teeuw here.
Transit module stopped working
-
@Elaniobro I posted a couple messages back the error info. node_helper line 106 called something which threw an error
2020-06-30 09:41:59.974] [ERROR] (node:882) UnhandledPromiseRejectionWarning: Error: Error: Illegal group end indicator for Message .transit_realtime.FeedMessage: 7 (not a group) 0|mm | at /home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js:106:15
-
@sdetweil how did you get to error message? What’s the CLI?
-
@elliob it was in the pm2 log in the 1st post of this topic
-
@elliob I’m using pm2 to start MM so from the root directory:
pm2 logs mm
-
@nipper2000h the logs are stored in the users .pm2 folder. doesn’t matter where I issue the pm2 commands
-
The module is getting the data, but its not updating with the
this.updateDom
method. I am not sure if this was deprecated or not. Looking into it. -
@Elaniobro how does it use this.updateDom()
-
@sdetweil Its called in the
socketNotificationReceived()
here:
https://github.com/Elaniobro/MMM-nyc-transit/blob/master/MMM-nyc-transit.js#L358-L360 -
@Elaniobro where is self set.? and fadeSpeed?
-
@sdetweil They aren’t, they can be removed. Issue I am seeing is the payload is not populated indo the
getDom()
I am setting
this.result = payload
which on intitial load/start of the module is undefined, which is expected, since the API promise has not been fulfilled. Later on, thesocketNotificationReceived()
recieves apayload
which is set tothis.result
but in thegetDom()
var data = this.result
is never updated.I am unsure of where/what caused this breakdown, as last time I touched the code was Apr 30. This is leading me to believe something changed in Core, but I am unaware of what that might be.