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

Hide modules when display goes off through PIR (power saving)

Scheduled Pinned Locked Moved Unsolved Requests
22 Posts 7 Posters 8.2k Views 6 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 @thedk
    last edited by Feb 16, 2019, 3:55 PM

    @thedk unlikely… or so small as to be unmeasurable

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    J 1 Reply Last reply Feb 17, 2019, 5:45 PM Reply Quote 1
    • E Offline
      ejay-ibm Project Sponsor Module Developer @broberg
      last edited by Feb 16, 2019, 5:50 PM

      @broberg
      Indeed you don’t save power but when placing the module “on sleep” you stop them for making them network request with API calls .

      S 1 Reply Last reply Feb 16, 2019, 6:35 PM Reply Quote 0
      • S Offline
        sdetweil @ejay-ibm
        last edited by Feb 16, 2019, 6:35 PM

        @ejay-ibm yes, a well written module will suspend operations while hidden or suspended.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C M 2 Replies Last reply Feb 17, 2019, 2:51 AM Reply Quote 2
        • C Offline
          cowboysdude Module Developer @sdetweil
          last edited by Feb 17, 2019, 2:51 AM

          @sdetweil I’d be willing to bet the majority don’t … I don’t have any provisions in mine to stop polling but since you brought it up it is something I will most certainly want to do!! It’s a VERY good idea!

          S 1 Reply Last reply Feb 17, 2019, 2:49 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @sdetweil
            last edited by Feb 17, 2019, 3:09 AM

            @sdetweil said in Hide modules when display goes off through PIR (power saving):

            a well written module will suspend operations while hidden or suspended.

            That leaves me out. :-)

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @cowboysdude
              last edited by Feb 17, 2019, 2:49 PM

              @cowboysdude @Mykle1 just add routines for suspend and resume. Set a variable on suspend, and don’t do anything til the variable is cleared on resume

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 2
              • J Offline
                j.e.f.f Project Sponsor Module Developer @sdetweil
                last edited by Feb 17, 2019, 5:45 PM

                @sdetweil said in Hide modules when display goes off through PIR (power saving):

                @thedk unlikely… or so small as to be unmeasurable

                Also, if the modules keep running while the display is off, they will all be up to date when you trigger the presence sensor to bring it out of sleep.

                I’d recommend not hiding the modules during power save.

                S 1 Reply Last reply Feb 17, 2019, 5:48 PM Reply Quote 0
                • S Offline
                  sdetweil @j.e.f.f
                  last edited by Feb 17, 2019, 5:48 PM

                  @j-e-f-f I have a mopdule that tracks water usage and tank levels, once every 5 minutes… calls an api, gets all the values, and draws the graphs…

                  my SleepWake module puts the mirror to sleep when no one is around… but when it wakes up, it updates…
                  in like 5-10 seconds…

                  no point pulling all that data overnight, or when I am gone for the day…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • T Offline
                    thedk
                    last edited by Feb 17, 2019, 5:59 PM

                    Nice discussion :)
                    My thought just was to reduce the temperature of the CPU when the display switches of.
                    But the point with the network requests is also good!

                    C 1 Reply Last reply Feb 17, 2019, 6:03 PM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @thedk
                      last edited by Feb 17, 2019, 6:03 PM

                      @thedk Well if it’s not pulling it may cool it down by the virtue of not having to work to get the data. The other way to cool it down is put a fan on or near it…

                      J 1 Reply Last reply Feb 17, 2019, 6:06 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        14/22
                        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