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

Scheduled Pinned Locked Moved System
23 Posts 5 Posters 5.0k Views 4 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
    sdetweil @MMRIZE
    last edited by sdetweil Mar 19, 2024, 2:43 PM Mar 19, 2024, 2:39 PM

    @MMRIZE said in MMM-Scenes2:

    But that mechanism is somehow annoying for me, so I ignore those methods

    what could be annoying… they call, you set a flag.
    you save any timer handle when u start it anyhow…

    so on sleep you stop it, and on resume you restart the timer… what could be so hard
    if you get data back while suspended, you don’t call updateDom(), and don’t restart the data request

    tiny amount of code…

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    M M 2 Replies Last reply Mar 19, 2024, 3:00 PM Reply Quote 0
    • M Offline
      mumblebaj Module Developer @sdetweil
      last edited by Mar 19, 2024, 3:00 PM

      @sdetweil and @MMRIZE Thanks for the useful information.

      Check out my modules at: https://github.com/mumblebaj?tab=repositories

      1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @sdetweil
        last edited by MMRIZE Mar 19, 2024, 3:28 PM Mar 19, 2024, 3:26 PM

        @sdetweil

        what could be annoying… they call, you set a flag.

        It may be a relative point of view.

        Let’s assume my module is using a paid API that has a daily quota. To save the consumption API quota on unused time, it would be better to suspend/resume the process of the node_helper(usually node_helper takes a charge to consume API)

        However, some API needs an expensive re-establishment fee for their usage. For example, some Google APIs might have short valid lifetimes of retrieved tokens and data. So, it needs to begin with handshaking again at some point. It may require the additional cost of the connection/auth/indexing process. If some 3rd party module tries to resume/suspend my module in a habitual rapid cycle, It might be another abused waste of consumption and, even worse, unpredictable.
        I said this would be annoying for me.

        Of course, I might also be able to manage the lifecycle of resource consumption, but I think it is not worth it, at least based on my experience with MM modules. (Yup, I’m the one who made most many modules in this scene.)
        I prefer background-alive with silence than suspend/resume modules frequently. It is more stable. (at least for me.)

        S 1 Reply Last reply Mar 19, 2024, 3:42 PM Reply Quote 0
        • S Offline
          sdetweil @MMRIZE
          last edited by Mar 19, 2024, 3:42 PM

          @MMRIZE yes, there can be consequences

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Mar 19, 2024, 4:14 PM Reply Quote 0
          • M Offline
            mumblebaj Module Developer @sdetweil
            last edited by Mar 19, 2024, 4:14 PM

            @sdetweil Hence I always warn users of API limitations. if they exceed then it becomes their issue.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            S 1 Reply Last reply Mar 19, 2024, 4:25 PM Reply Quote 0
            • S Offline
              sdetweil @mumblebaj
              last edited by Mar 19, 2024, 4:25 PM

              @mumblebaj well… not really. the modules mostly don’t recover, the user doesn’t know, and then we waste time trying to debug it. lots of modules don’t report failures in the node_helper either.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                mmmmh Project Sponsor
                last edited by Feb 7, 2025, 7:40 AM

                What do I need to configure to have no indicators and no need for an region for them?

                (I am not sure if this is considered necroing a thread but I see other module discussions also going on for several pages. If this thread should end, I asked the same question here.)

                S 1 Reply Last reply Feb 7, 2025, 1:53 PM Reply Quote 0
                • S Offline
                  sdetweil @mmmmh
                  last edited by sdetweil Feb 7, 2025, 1:54 PM Feb 7, 2025, 1:53 PM

                  @mmmmh because his doc says

                  <div class="scenes_indicator">
                    <span class="scenes_indicator_scene index_0 inactive first">□</span>
                    <span class="scenes_indicator_scene index_1 active">■</span> <!-- current scene -->
                    <span class="scenes_indicator_scene index_2 inactive last">□</span>
                  </div>
                  

                  you can use in custom.css

                  .scenes_indicator {
                            display : none;
                   }
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Feb 7, 2025, 7:04 PM Reply Quote 0
                  • M Offline
                    mmmmh Project Sponsor @sdetweil
                    last edited by Feb 7, 2025, 7:04 PM

                    @sdetweil Thanks, it works.

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