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.1k 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

      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 Reply Quote 0
      • S Offline
        Sitm09
        last edited by

        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

          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 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