uxigene / mmm-luxembourg-public-transport Goto Github PK
View Code? Open in Web Editor NEWLuxembourg public transport departures in real time. Module for MagicMirror².
Luxembourg public transport departures in real time. Module for MagicMirror².
Hello @evghenix ,
I installed your module and put the config below:
{
module: 'MMM-Luxembourg-Public-Transport',
config: {
from: "A=1@O=Belair, Place de France@X=6,106759@Y=49,606540@U=82@L=200403013@B=1@p=1615358928;",
to: "A=1@O=Rollingergrund, Bei der Fiels@X=6,114337@Y=49,617219@U=82@L=200425003@B=1@p=1615358928;",
maxLength: 5,
fetchInterval: 6000,
}
},
However, i see nothing on my screen because the console is saying:
Uncaught TypeError: Cannot read property 'forEach' of undefined
at Class.normalize (MMM-Luxembourg-Public-Transport.js:99)
at Class.socketNotificationReceived (MMM-Luxembourg-Public-Transport.js:91)
at module.js:250
at Socket. (socketclient.js:39)
at Socket../node_modules/component-emitter/index.js.Emitter.emit (index.js:145)
at Socket.emitEvent (socket.js:264)
at Socket.onevent (socket.js:251)
at Socket.MMSocket.self.socket.onevent (socketclient.js:33)
at Socket.onpacket (socket.js:215)
at Manager../node_modules/component-emitter/index.js.Emitter.emit (index.js:145)
Any idea, about how to solve this problem ?
Thanks and have a nice week-end :)))
I am working on a new module list, which you can see here. If you search for your module in it, you will see that it looks a bit bland at the moment, as a screenshot and tags are missing.
You can change that by adding a package.json
file. The information that is currently used from that file is the license information (the screenshot can only be displayed if the license is free) and the keywords (these are then displayed as tags).
Here is an example of a package.json.
I recommend using the keyword "Public Transport", because it's like a main category.
It would be nice if you would add the file to your repository 🙂
Does currently not work anymore
Using the folowing config:
module: 'MMM-Luxembourg-Public-Transport',
position: 'top_center',
config: {
from: "A=1@O=Assel@X=6,313529@Y=49,554448@U=82@L=210101001@B=1@p=1505823462",
to: "A=1@O=Centre, F.D. Roosevelt@X=6,131497@Y=49,608931@U=82@L=200405013@B=1@p=1505823462",
}
},
I get "loading..." instead of the expected timetable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.