add termux configuration from phone

This commit is contained in:
PowerUser64 2022-01-29 22:53:29 -08:00
parent 52c490dcea
commit cd550ba6e6
5 changed files with 158 additions and 4 deletions

View file

@ -0,0 +1,10 @@
#!/data/data/com.termux/files/usr/bin/bash
PLG="$HOME/bin/tplink_smartplug.py -t 192.168.1.250 -c"
# If the light is on
if $PLG info | grep ',"relay_state":1,';then
exit 1
else
exit 0
fi