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

What other factors are affecting the updateInterval?

Scheduled Pinned Locked Moved Development
8 Posts 2 Posters 2.4k Views 2 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
    strawberry 3.141 Project Sponsor Module Developer @E3V3A
    last edited by Feb 28, 2018, 10:57 PM

    @E3V3A every client instance is connecting to the same nodehelper, so what some people did is having a start boolean variable so they can check if the nodehelper already initialised e.g.

    https://github.com/paviro/MMM-Wunderlist/blob/master/node_helper.js#L19
    https://github.com/paviro/MMM-Wunderlist/blob/master/node_helper.js#L94
    https://github.com/paviro/MMM-Wunderlist/blob/master/node_helper.js#L106

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

    E 1 Reply Last reply Mar 1, 2018, 8:35 AM Reply Quote 1
    • E Offline
      E3V3A @strawberry 3.141
      last edited by Mar 1, 2018, 8:35 AM

      @strawberry-3.141 That worked like charm! Spot on. Thank you! Just have to remember for long timers, the following clients need to wait for the first to timeout, before getting any data.

      "Everything I do (here) is for free – altruism is the way!"
      MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

      S 1 Reply Last reply Mar 1, 2018, 8:25 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @E3V3A
        last edited by Mar 1, 2018, 8:25 PM

        @E3V3A you can store the data in a variable in the node helper, every time someone connects and your start flag is already set you just send him the data from your variable

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

        E 1 Reply Last reply Mar 2, 2018, 6:36 AM Reply Quote 1
        • E Offline
          E3V3A @strawberry 3.141
          last edited by E3V3A Mar 2, 2018, 6:36 AM Mar 2, 2018, 6:36 AM

          @strawberry-3.141 Great idea! Do you have any code examples for doing this? (I’m still a JS dummy.)

          "Everything I do (here) is for free – altruism is the way!"
          MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

          S 1 Reply Last reply Mar 4, 2018, 12:52 PM Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @E3V3A
            last edited by Mar 4, 2018, 12:52 PM

            @E3V3A here is your example https://github.com/E3V3A/MMM-FlightsAbove/pull/16

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

            E 1 Reply Last reply Mar 4, 2018, 3:21 PM Reply Quote 1
            • E Offline
              E3V3A @strawberry 3.141
              last edited by Mar 4, 2018, 3:21 PM

              @strawberry-3.141 Thanks a lot! PR merged.

              "Everything I do (here) is for free – altruism is the way!"
              MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

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