arve / mmm-entur-tavle Goto Github PK
View Code? Open in Web Editor NEWMagicMirror² Departure board for Entur
License: GNU Lesser General Public License v2.1
MagicMirror² Departure board for Entur
License: GNU Lesser General Public License v2.1
I'm not able to understand how to specify the quay ID. Can you give an example?
I would appreciate that a lot :)
From our logs it seems MMM-Entur-tavle deployments are still using Journey-Planner-v2
This API is end-of-life, so please migrate to Journey-Planner-v3
old api - https://developer.entur.org/pages-journeyplanner-journeyplanner-v2
new api - https://developer.entur.org/pages-journeyplanner-journeyplanner
Andreas
Entur
In the example config in the README:
{
module: "MMM-Entur-tavle",
position: "top_right",
config: {
stopId: '58366',
stopType: 'StopPlace',
numResults: 5,
showName: true,
highlightRealtime: true,
delay: [5, 'minutes'],
exclusions: [ 'a1', 'a2, 'a3' ],
}
},
There is a comma after the final "exclusions" option. As this is the last option in the example given it should not have a comma at the end. The line break after exclusions will (probably) not throw a config error, but could also be considered for removal:
{
module: "MMM-Entur-tavle",
position: "top_right",
config: {
stopId: '58366',
stopType: 'StopPlace',
numResults: 5,
showName: true,
highlightRealtime: true,
delay: [5, 'minutes'],
exclusions: [ 'a1', 'a2, 'a3' ]
}
},
The current example may cause confusion by throwing a config error if used when testing.
(Otherwise great module and good work, thanks!)
Hi
Guessing I am doing something wrong here but cant understand what. Hope that I am able to get some help. When I try the example code it works fine. But when I find my bus stop (Maritim) and ender either stopPlace id 6463 or Quay 11880 it is just stuck at loading and wont show anything. Changing the stopPlace id to 58366 for Jernbanetorget works though.
Trying this:
{
module: "MMM-Entur-tavle",
position: "top_left",
config: {
stopId: '6463',
stopType: 'StopPlace',
numResults: 5,
showName: true,
highlightRealtime: true,
size: 'small'
}
},
And this:
{
module: "MMM-Entur-tavle",
position: "top_left",
config: {
stopId: '11880',
stopType: 'Quay',
numResults: 5,
showName: true,
highlightRealtime: true,
size: 'small'
}
},
Could anyone please take a look at it and see what I am doing wrong?
This works though:
{
module: "MMM-Entur-tavle",
position: "top_left",
config: {
stopId: '58366',
stopType: 'StopPlace',
numResults: 5,
showName: true,
highlightRealtime: true,
size: 'small'
}
},
Thanks
How to specify two quays in a view?
I live close to two bus stops each witch different routes to usually the same destination. Being able to include two stops in the same instance and get them time sorted would have been display space efficient, considering that I have to occupy two positioning-slots to get both of the stops on display the way things are right now.
After I updated to the latest commit, my MagicMirror turned black. When I deactivate this module using /* */, my mirror is back to normal (except for lacking data from this module, naturally). Is it something wrong in my config setup below, or is it something else that may cause this?
{
module: "MMM-Entur-tavle",
position: "bottom_center",
config: {
stopId: '10851',
stopType: 'Quay',
numResults: 10,
highlightRealtime: true,
size: "large",
}
},
Hi, MagicMirror removed the node-fetch dependency in v2.25.0 in favor of a internal fetch.
To fix just remove this line in the node_helpers.js:
const fetch = require("node-fetch");
https://github.com/Arve/MMM-Entur-tavle/blob/8556f01e90ab8f1e891149df6c4fc5a8f838b28e/node_helper.js#L3C4-L3C4
Hi,
I cant for the life of me see whats wrong, and Im pressuming this MM integration still works.
Neither of the below works, no error message, every other module works. Running on a raspberry pi with everything latest.
Appreciate the help,
Cheers, Jo
`{
module: "MMM-Entur-tavle",
position: "top_right",
config: {
stopId: '59636',
stopType: 'StopPlace',
numResults: 3,
showHeader: true,
highlightRealtime: true,
timeOffset: [4, 'minutes'],
refresh :45,
exclusions: ['a2'],
}
},
{
module: "MMM-Entur-tavle",
position: "bottom_right",
config: {
stopId: '330',
stopType: 'Quay',
numResults: 3,
showHeader: true,
highlightRealtime: true,
timeOffset: [4, 'minutes'],
refresh: 45,
exclusions: [],
}
},`
Hello,
I've recently added the module and added this to the config.js:
{
module: "MMM-Entur-tavle",
position: "top_center",
config: {
stopId: '11843',
stopType: 'Quay',
numResults: 10,
highlightRealtime: true,
size: "large",
}
},
When "Npm run" it launches but stops with a black screen.
Here's the Error I get
[18.11.2021 23:55.07.832] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Require stack:
The config below give me the correct data for the Quay, but not for the StopPlace, can you help me here?
{
module: "MMM-Entur-tavle",
position: "top_right",
config: {
stopId: '97773',
//stopid: '97772',
stopType: 'Quay',
numResults: 10,
showHeader: true,
highlightRealtime: true,
delay: [5, 'minutes'],
exclusions: [ ],
}
},
{
module: "MMM-Entur-tavle",
position: "top_right",
config: {
//stopId: '97773',
stopid: '57080',
stopType: 'StopPlace',
numResults: 10,
showHeader: true,
highlightRealtime: true,
delay: [5, 'minutes'],
exclusions: [ ],
}
},
Hello
Really love your module. Would be nice to filter on line number(s) also not just platforms. A lot of lines terminate on my platform (16804). So I get a lot of "junk" on my screen.
Keep up the good work! :)
//Eldar Aron
Reference to https://stoppested.entur.no is faulty,
the correct URL is https://stoppested.entur.org/
Hi. First of all, great job making this module! I really like it.
I have a feature request. I would like to be able to set a lower threshold to hide entries with less than e.g. 10 minutes to departure. For a lot of people, there is no point in seeing departures with less then 5-10 minutes to departure, simply because the distance between home and public transport is longer than a 5 minute walk away :)
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.