Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    MMM-SNCF

    Transport
    5
    6
    2364
    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.
    • J
      jvanoost last edited by yawns

      Description

      You want to know when is your next train to go to work and live in France ?

      The MMM-SNCF based on MMM-Transilien is now availiable

      This is my first module so be indulgent with me 😉 and do not hesitate to give me some issues or PR.

      Have a good day !

      Download

      1 Reply Last reply Reply Quote 1
      • P
        Phil5841 last edited by

        Hi,
        I want to use MMM-SNCF with 2 directions.
        One from Monaco to Nice, the other from Monaco to Vintimille (Italy)

        I put 2 modules in config.js

        module: 'MMM-SNCF',
            position: 'top_right',
            header:'Monaco vers Nice',
            config:{
                departUIC:"stop_area:OCE:SA:87756403",
                arriveeUIC:"stop_area:OCE:SA:87756056",
        

        and

        module: 'MMM-SNCF',
        position: 'top_left',
        header:'Monaco vers Ventimiglia',
        config:{
            departUIC:"stop_area:OCE:SA:87756403",
            arriveeUIC:"stop_area:OCE:SA:83045013",
        

        the problem is that the 2 modules displays the same result !

        Mykle1 1 Reply Last reply Reply Quote 0
        • Mykle1
          Mykle1 Project Sponsor Module Developer @Phil5841 last edited by

          @phil5841

          You could try this, although there is no guarantee of success.

          Make a copy of your MMM-SNCF folder. Paste the copy into your modules folder, renaming it to MMM-SNCF2. Inside the MMM-SNCF2 folder, rename the MMM-SNCF.css file to MMM-SNCF2.css and rename the MMM-SNCF.js file to MMM-SNCF2.js. Open the MMM-SNCF2.js file and change line 9 to Module.register("MMM-SNCF2", { and line 27 to return [this.file("css/MMM-SNCF2.css")];

          1 Reply Last reply Reply Quote 0
          • P
            Phil5841 last edited by

            Hi,
            I try and i have a black screen.
            I change node_helper.js

            console.log("\r\nMMM-SNCF2- NodeHelper started");

            after i do : npm install and it works !

            I made some changes about the informations i need.
            0_1532090293800_sncf.jpg

            The problem is that I have the train number once in two

            1 Reply Last reply Reply Quote 0
            • S
              stefane26 last edited by

              Bonjour Jvanoost
              Merci pour ton module sur les trajets de trains SNCF

              Serait-il possible de créer un nouveau module donnant les trains au départ d’une gare.
              Le lien API des prochains départ de la gare de Montparnasse est :
              https://api.sncf.com/v1/coverage/sncf/stop_areas/stop_area:OCE:SA:87391003/departures?datetime=20190211T174245

              J’ai bien tenté" de comprendre tes codes JS mais mes connaissances sont bien trop faibles.
              Merci
              Stéphane

              1 Reply Last reply Reply Quote 0
              • T
                tonio last edited by

                bonjour, j’ai tenté d’utiliser ce module mais sans résultats… quelqu’un pourrait m’aider ? voici mon code:
                {
                module: “MMM-SNCF”,
                position: “bottom_left”,
                header:“Chenonceaux vers Tours Gare”,
                config:{
                departUIC:“87574491”,
                arriveeUIC:“87571000”,
                trainsdisplayed:“5”,
                language:“fr”,
                login:"...@gmail.com", // You must add your API login and password
                password:"…"
                }

                merci d’avance à ceux qui m’aiderons

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy