3 ms·
> not sure if actually possible on Android/apple. As it happens I already have similar Burglar Alarm running on Android Termux. So easy it is. This warns when
by timonoko 5y ago
> not sure if actually possible on Android/apple.
As it happens I already have similar Burglar Alarm running on Android Termux. So easy it is. This warns when one ESP wakes up and appears on local Wifi.
import os,json,time
os.system("termux-wake-lock")
os.system("termux-wifi-enable true")
while True:
r=os.system("ping -c 1 192.168.1.59")
if r==0:
os.system("termux-volume music 15")
os.system("termux-tts-speak -l en YOUR GARAGE DOOR IS OPEN!")
time.sleep(60)