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

    Turn on a plug wifi with this program?

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 873 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.
    • JAIME FLORESJ Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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

              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
              • First post
                Last post