• 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-CTA 2nd Instance Not Automatically Updating

Scheduled Pinned Locked Moved Unsolved Troubleshooting
3 Posts 1 Posters 1.0k Views 1 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
    Sitm09
    last edited by Sitm09 Feb 12, 2020, 1:20 AM May 20, 2018, 3:10 AM

    0_1526785667939_MMM-CTA.jpg

    I am running 2 instances of MMM-CTA. I updated the second instance config to module Instance: 2, as shown below:

    {
    module: “MMM-CTA”,
    position: “top_middleleft”,
    config: {
    updateTime: 60000, // 1 minute, no need to go below
    ctaApiKeyTrain: “bc9d0610109c4f4bba82e89bb6968777”,
    trainStopName: ‘Wellington’,
    trainStationID: ‘41210’,
    maxResultTrain: 4,
    moduleInstance: 1, // To run multiple instances of this module
    },

    	},
    	{
    		module: "MMM-CTA",
    		position: "top_middleright",
    		config: {
    			updateTime: 60000,
    			ctaApiKeyTrain: "bc9d0610109c4f4bba82e89bb6968777",
    			trainStopName: 'Belmont',
    			trainStationID: '41320',
    			maxResultTrain: 6,
    			moduleInstance: 2,
    		},
    	},
    

    The first instance (on the left) will update while the second (right) will not automatically update after 1 minute. Thank you for any help.

    P.S. Apologize for the excessively large image.

    S 1 Reply Last reply May 21, 2018, 1:49 AM Reply Quote 0
    • S Offline
      Sitm09
      last edited by May 20, 2018, 3:21 AM

      0_1526786379756_error.png
      If this helps, this is the output when I run node serveronly. In the red, you can see the 1st instance of the 4 stops being loaded (red arrow) upon startup along with the second instance loading the 6 (blue arrow).

      After the 60 seconds, you see the 1st instance updating and a minute after updating again. However, this is not done for the 2nd instance.

      1 Reply Last reply Reply Quote 0
      • S Offline
        Sitm09 @Sitm09
        last edited by May 21, 2018, 1:49 AM

        Fixed the issue. A description of said fix can be seen here:

        https://github.com/NateDee/MMM-CTA/issues/3

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