• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Departures - Public transport departures based on Oeffi data

Scheduled Pinned Locked Moved Transport
24 Posts 5 Posters 15.0k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sindbad6 @BenGig
    last edited by Mar 30, 2017, 6:57 PM

    @BenGig I know the repository from Andreas, if your module use this code, I suppose his changes will also work on your module. In between, I installed your module and it works perfect for my home town, what else could I need. It’s great.

    1 Reply Last reply Reply Quote 0
    • S Offline
      sindbad6
      last edited by Apr 2, 2017, 8:36 PM

      After updating of MM to 2.1.1 and updating your module I get no data anymore. I get only the information “Lade” means load or wait. Any idea why this happens?

      Both was installed with git hub && npm install
      Anything I have to do?

      1 Reply Last reply Reply Quote 0
      • B Offline
        BenGig
        last edited by Apr 2, 2017, 8:55 PM

        No idea yet. I just upgraded to 2.1.1 and have no issues.

        Do you see any error messages in the browser console?

        S 1 Reply Last reply Apr 2, 2017, 9:14 PM Reply Quote 0
        • S Offline
          sindbad6 @BenGig
          last edited by Apr 2, 2017, 9:14 PM

          @BenGig No, there are no messages belonging your module.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BenGig
            last edited by Apr 2, 2017, 9:42 PM

            I added a global config option which will give some output to the browser console:

                {
                  module: 'MMM-Departures',
                  position: 'bottom_left',
                  config: {
                    debug: true,
                  ...
            

            Results should look like this:

            Processing station Aazopf
            - Departures found: 5
            -- Processing departure: NFB21,Arth-Goldau, Bahnhof,333
            -- Processing departure: NFB21,Arth-Goldau, Bahnhof,374
            

            Well, should…

            S 1 Reply Last reply Apr 2, 2017, 10:42 PM Reply Quote 0
            • S Offline
              sindbad6 @BenGig
              last edited by Apr 2, 2017, 10:42 PM

              @BenGig I tried the debug mode. The only things I get is
              Module helper loaded: MMM-Departure and
              Connecting socket for: MMM-Departure
              nothing else to see. Sorry! :disappointed_relieved:

              1 Reply Last reply Reply Quote 0
              • B Offline
                BenGig
                last edited by Apr 3, 2017, 8:48 PM

                I have added more debugging output, and an error output on the system console if a call to the web service fails.

                And: most debugging output appears in the browser console. Hit F12 to open the development panel (Firefox or Chrome), and switch to the tab “Console” if not initially active.

                S 1 Reply Last reply Apr 3, 2017, 9:59 PM Reply Quote 0
                • S Offline
                  sindbad6 @BenGig
                  last edited by Apr 3, 2017, 9:59 PM

                  @BenGig Find out, that the error only occurs if I set

                  absoluteTime: false,
                  

                  If the parameter is set to true or the parameter is commented out the module works fine. Before the updates this setting works fine.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BenGig
                    last edited by Apr 3, 2017, 10:15 PM

                    Great, that helped, problem found and fixed!

                    S 1 Reply Last reply Apr 4, 2017, 7:13 AM Reply Quote 0
                    • S Offline
                      sindbad6 @BenGig
                      last edited by Apr 4, 2017, 7:13 AM

                      @BenGig Yeah, here the same, it works now. Thanks to you. Just for curiosity, what did you change? What was the problem I have no idea in javascript programming and would like to learn something about it.

                      B 1 Reply Last reply Apr 7, 2017, 5:49 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        9/24
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy