Turn on a plug wifi with this program?
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?
Russ last edited by
@JAIME-FLORES, I found this batch file that can tell you your remaining battery life:
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.
JAIME FLORES last edited by
Thank you very much Russ :D . I will try it. Have an excellent day
SAMUEL KRAMER SCHWIDERKE last edited by
Hello. Work this integration? Why is the update's?
Russ 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.