• 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-Ratp (transit all around Paris (France))

Scheduled Pinned Locked Moved Transport
paristraintramwaybusratp
18 Posts 5 Posters 10.1k 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.
  • B Offline
    bobbob601
    last edited by bobbob601 Apr 21, 2017, 5:54 AM Sep 18, 2016, 8:35 AM

    Description

    With the help of @strawberry-3-141, I created my first transit module to get the schedule of the next trains/bus/night bus/rer/tramway of any station of any line all around

    Changelog

    [21/04/2017] v 1.1

    • UI revised
    • Module is now multi-instance

    Screenshot

    screenshot

    Download

    [card:lgmorand/MMM-Ratp]

    1 Reply Last reply Reply Quote 0
    • J Offline
      jeremy_fr
      last edited by Jan 15, 2017, 2:36 PM

      Hi!

      Thank you for your work!

      Did you also create a specific SNCF module?
      I think SNCF data are more accurate for RER and other paris area trains.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • O Offline
        Ob018
        last edited by Jan 24, 2017, 6:37 PM

        I love it !
        You did a great job.

        Is there a way to display more than one line ?

        Thx.

        1 Reply Last reply Reply Quote 0
        • D Offline
          dementia
          last edited by Feb 9, 2017, 11:34 PM

          Hi

          Is it working for somebody ?

          On my side it is blocked on “loading connections”

          Thanks

          1 Reply Last reply Reply Quote 0
          • N Offline
            ninja
            last edited by Apr 3, 2017, 7:06 PM

            Hi,
            I’am also interessed on a TRANSILIEN(SNCF) module, if I can help on something ;)

            1 Reply Last reply Reply Quote 0
            • B Offline
              bobbob601
              last edited by Apr 5, 2017, 3:49 PM

              @Ob018 , yeah but it’s tricky, you have to duplicate the module once installed and change the config/code file to call it MMM-RATP2 for instance. Not clean but whenever I try to do on module, several lines, node.js loses its mind and mixes the results

              @jeremy_fr for that you need that SNCF exposes an API which was not the case six months ago.

              @dementia, be sure that the config is correct. it the URL is good (test in a browser, it should work). Send me a PM, we can search for the issue

              @ninja, same issue than before. doing the module is ‘easy’, but you need a server where the times of the train are available and it was not the case for SNCF.

              1 Reply Last reply Reply Quote 0
              • N Offline
                ninja
                last edited by ninja Apr 5, 2017, 4:56 PM Apr 5, 2017, 4:49 PM

                Salut, Hi @bobbob601 !
                I’ve send an email to the SNCF for accessing their Api yesterday.
                After that, they ll send the api and username / password to use it.
                We can Keep in touch about this if you want ?
                Their is a sort of restriction so I dont know if we can share the api, or if it’s better to ask for api user by user… (painfull…)

                https://ressources.data.sncf.com/explore/dataset/api-temps-reel-transilien/

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bobbob601
                  last edited by Apr 6, 2017, 5:36 AM

                  You can “share” it using a “developer” api key but it will be limited to 5000 calls/day which can be quickly reached if you update the widget every minute. Each user will have to request an api key for sure.

                  the format of the api URL is not the same and I bet the json format returned by the api will also be totally different which means, redevelop totally a new module (but the mecanism can be inspired from mine - which was inspired from another one :))

                  https://api.sncf.com/v1/coverage/sncf/journeys?from=admin:fr:75056&to=admin:fr:69123&datetime=20170406T073106

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bobbob601
                    last edited by Apr 6, 2017, 5:56 AM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      ninja
                      last edited by ninja Apr 6, 2017, 6:31 AM Apr 6, 2017, 6:00 AM

                      You have to chose an other api “Transilien temps réel” the one the left https://data.sncf.com/api/fr/apis

                      An request it by e-mail, I’m waiting for their answer for 2 days now ;-)

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        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