TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Turn on a plug wifi with this program?

    General Discussion
    3
    5
    218
    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.
    • JAIME FLORESJ
      JAIME FLORES
      last edited by JAIME FLORES

      Is there a way to know what is the percentage of the laptop battery? I want to make a wifi socket turn on when the laptop battery is at 10%, I want to connect the charger to that socket and when the battery is at 100% it turns off. is this possible with this program? or does anyone know how i could do it?

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @JAIME FLORES
        last edited by

        @JAIME-FLORES, I found this batch file that can tell you your remaining battery life:

        http://www.robvanderwoude.com/files/battstat_xp.txt

        I'm not sure you'd need TRIGGERcmd for this, but you could probably schedule a script to run every minute or so that checks your battery life, then if it's at 10 percent, call an API to turn on the wifi plug.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • JAIME FLORESJ
          JAIME FLORES
          last edited by

          Thank you very much Russ 😄 . I will try it. Have an excellent day

          1 Reply Last reply Reply Quote 0
          • SAMUEL KRAMER SCHWIDERKES
            SAMUEL KRAMER SCHWIDERKE
            last edited by

            Hello. Work this integration? Why is the update's?
            Thanks

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @SAMUEL KRAMER SCHWIDERKE
              last edited by Russ

              @SAMUEL-KRAMER-SCHWIDERKE, are you asking if this works?

              When I answered @JAIME-FLORES before, I hadn't actually tried it. Just now I tried that script and it didn't work for me. So I'm sorry about that.

              I like @JAIME-FLORES's idea - to save electricity by leaving his laptop disconnected from power until the battery gets low.

              I found another way to detect your battery laptop's battery charge. You could use Nirsoft's batteryinfoview tool to read your battery's remaining life with a command like this:

              batteryinfoview /scomma c:\stuff\battery.txt
              

              Then when the battery gets low you could call an IFTTT webhook event that turns your wemo plug on.

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              • First post
                Last post