Closed teachng closed 4 years ago
@teachng please update the title of this issue properly will submitting a new issue.
[🐛 BUG] - Please put your title here.
with replacing the Please put your title here.
portion.
As for your issue, based on your screenshot of the code, you have two instances of the module running within your mirror. You only need one.
This is what you have:
{
module: 'MMM-nyc-transit',
position: "top_bar",
header: "Next Train",
config: {
apiKey: 'YOUR_KEY_HERE',
displayType: 'marquee',
mtaType: 'train',
stations: [
{
stationId: 158,
walkingTime: 0,
dir: {
upTown: true,
downTown: false
}
},
],
updateInterval: 300000
}
},
{
module: 'MMM-nyc-transit',
position: "top_bar",
header: "Next Train",
config: {
apiKey: 'YOUR_KEY_HERE',
displayType: 'marquee',
mtaType: 'train',
stations: [
{
stationId: 158,
walkingTime: 0,
dir: {
upTown: false,
downTown: true
}
},
],
updateInterval: 300000
}
}
This is what you Should have
{
module: 'MMM-nyc-transit',
position: "top_bar",
header: "Next Train",
config: {
apiKey: 'YOUR_KEY_HERE',
displayType: 'marquee',
mtaType: 'train',
stations: [
{
stationId: 158,
walkingTime: 0,
dir: {
upTown: true,
downTown: true
}
},
],
updateInterval: 300000
}
}
The module is not designed to have multiple instances running within the mirror, as such I will be closing this ticket out as won't fix. Please feel free to submit feature/enhancement requests and future bugs you may find. Thanks!
Describe the bug I put in two instances of the module onto my magic mirror, with one showing the Central Park West 86th St. station uptown and the other instance as the downtown. I respectively set the boolean values with the former being (upTown: true, downTown: false) and the latter being (upTown: false, downTown: true).
What I see on the mirror, though, is the same stops and same times for both instances. Shouldn't both instances show different trains and times?
To Reproduce Steps to reproduce the behavior:
Expected behavior Two different modules of subways transit, the first instance as uptown trains and times, the second instance as downtown trains and times
Actual behavior Both instances show the same trains and times. No differences between the two
Screenshots https://imgur.com/a/c7om12R - sample code & output on mirror
Platform (please complete the following information):
Configuration What does the used config.js file look like? Don't forget to remove any sensitive information!
Additional context Add any other context about the problem here.