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-TPG

    Scheduled Pinned Locked Moved Transport
    genevatpgswitzerlandpublic transport
    9 Posts 5 Posters 5.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.
    • yawnsY Offline
      yawns Moderator @Maxzovirax
      last edited by

      @Maxzovirax
      It needs to be ‘MMM-tpg’

      Please post your config file for this, but replace your key with some rubbish :)

      1 Reply Last reply Reply Quote 0
      • M Offline
        Maxzovirax
        last edited by

        Thank you for coming back to me so quickly. Here is the config bit for MMM-tpg:
        I should mention that I tried most of the combinations possible with commas etc. I have lots of modules running, but as soon as I uncomment this one the screen loads but I have no module. A strange side-effect is that
        MMM-remote-control returns No Module loaded… module should be loaded before MMM-sonos-
        Hope this helps

        	{
        		module: 'MMM-tpg', 
        		position: 'top_right',
        		header: 'TPG - Cornavin',
        		config: {
        			params: {
        			stopCode: 'CVIN',  // Which stop would you like to have displayed?
        			key: 'xxxMyTokenxxx'  // Add your tpg opendata key
        			}
        		}
        	}, 
        

        Connecting socket for: MMM-horoscope
        Starting NodeHelper for MMM-horoscopemodule.

        MMM-tpg sould start here in the config.js file

        Connecting socket for: MMM-Sonos
        Sonos helper started …
        Connecting socket for: newsfeed
        Starting module: newsfeed
        Connecting socket for: MMM-Remote-Control
        Starting node helper for: MMM-Remote-Control

        1 Reply Last reply Reply Quote 0
        • M Offline
          Maxzovirax
          last edited by

          I should add that when I uncomment the module I get the following two lines on the console after the
          Launching application line.
          ERROR! Could not find main module js file.
          ERROR! Could not find main module js file.

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @Maxzovirax
            last edited by

            @Maxzovirax Sounds like your module is not installed in ~/MagicMirror/modules/MMM-tpg. Did you probably installed it in ~/MagicMirror/modules/default/MMM-tpg?

            Please create a github issue if you need help, so I can keep track

            M 1 Reply Last reply Reply Quote 1
            • M Offline
              Maxzovirax @strawberry 3.141
              last edited by

              @strawberry-3.141
              Funny you should be the one replying to me, I have the same issue (as for MMM-tpg) with MMM-soccer that I looked at for a friend, I see you are involved in that too, I was planning on looking into that after this one. …
              I will look at you suggestion this evening if possible. cheers

              1 Reply Last reply Reply Quote 0
              • M Offline
                Maxzovirax
                last edited by

                Hello again, just checked and the module is in the modules directory under MMM-tpg, so it is in the correct place…

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wirdman
                  last edited by

                  Hello,

                  How do you get your key & your stop code ? because i can’t find it on tpg website : https://www.tpg.ch/fr/open-data

                  any ideas ?

                  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 Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy