Giter Site home page Giter Site logo

mmm-entur-tavle's People

Contributors

arve avatar cfenner avatar csolem avatar draperunner avatar geirivtu avatar knutasyed avatar kristjanesperanto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mmm-entur-tavle's Issues

Error in example config

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!)

Stuck at loading

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

Feature request: Multiple stopIds or quays in the same display position/instance

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.

Black screen after latest update

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",
}
},

Code help please

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: [],

}

},`

Black screen after addig module

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:

  • /home/pi/MagicMirror/modules/MMM-Entur-tavle/node_helper.js
  • /home/pi/MagicMirror/js/app.js
  • /home/pi/MagicMirror/js/electron.js
  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

error in view

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:  [ ],

              }
            },

Feature request: Add filter on line number(s)

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

Feature request: Set lower threshold to hide entries with less than 10 minutes to departure

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.