MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MMM-SNCF



  • 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



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


  • Module Developer

    @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")];



  • 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