bendardenne / mmm-stib2 Goto Github PK
View Code? Open in Web Editor NEWMagicMirror module showing STIB waiting times for configured stops.
License: MIT License
MagicMirror module showing STIB waiting times for configured stops.
License: MIT License
Bonsoir merci pour le module , il est top.
par contre les gtfs je ne trouve pas , la liste des arrêts avec les noms et id si vous pouvez m aider pour ca, merci aussi savez vous quel est le temps max que le système accès pour la clé ou si on peut mettre une valeur pour ne pas devoir régénérer. Bonne soiree
Hi,
Does someone still use this module? It looks great in the screenshot and it would be ideal for my mirror, but I can't get anything from the API and there are no logs. I have the impression that the endpoints changed. Check https://data.stib-mivb.be/explore/dataset/waiting-time-rt-production/api/ for example.
In case anyone will answer, the following is my configuration entry for the module:
{ module: "MMM-stib2", position: "bottom_center", header: "STIB-MIVB", config: { apiToken: "XXX", //here I added my Api key from https://stibmivb.opendatasoft.com/account/api-keys/ stops: [{ name: "Jourdan", id: ["3921", "3922", "3158B"] }, { name: "Etangs", id: ["1777B", "1733", "3160", "3572"] }] } },
In the new module list I am working on, tags are displayed for each module. These are read from the package.json. So far there are no keywords in the package.json of your module. It would be nice if you could add some. Here you can see an example of a package.json with keywords.
This would be my suggestion:
"keywords": [
"MagicMirror",
"STIB",
"Brussels",
"public transport"
],
Hello @bendardenne ,
This is my config:
{
module: "MMM-stib2", // Transport de Bruxelles
position: "bottom_left",
config: {
apiToken: "xxxxxxxx",
stops: [
{
name: "EDDY MERCKX",
id: ["8651"]
},
]
}
},
I tried multiples stations ID and name. I refreshed the access token. Nothing changes. I've got the "no data" sentence on my mirror.
Furthermore, I checked the console, there is no problem.
Any issue to solve this problem ?
Thanks !
Have a wonderful week end,
The module is designed to avoid duplicates
for (let line in stop) { // Don't show the same line on multiple stops if (seen.has(line)) { continue; }
But this is not always a good design choice.
around Place Jourdan, for example, bus line 80 stops at Jourdan heading to Porte de Namur and at Etangs heading to Haren.
It would be great if the module could display the same line at two different stops in this case.
Ideally we would have a config option to enable or disable this feature.
Something like:
allowMultipleStopsSameLine: "yes"
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.