Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
Return Disconnected, USB, AC & Wireless states on change
Add battery percentage
Sample output when unplugged & quickly reconnected:
Power
Feb 12, 2019 2:33:30 PM
POWER: 100%
STATE: Disconnected
Power
Feb 12, 2019 2:33:32 PM
POWER: 100%
STATE: USB Charging
Notes: faulty cable/connection may deliver odd power events as noted in #325. Testing concluded that voltage drops from a furnace, etc. can trigger a power event. Adding a delay would only add an attack vector (and false positives have been minimal). That said, testing and comments appreciated here.
I am going to look into making alerts configurable, with sensitivity options as suggested in #324 but for now I think this makes sense.
Aims to address #325
Sample output when unplugged & quickly reconnected:
Power Feb 12, 2019 2:33:30 PM POWER: 100% STATE: Disconnected
Power Feb 12, 2019 2:33:32 PM POWER: 100% STATE: USB Charging
Notes: faulty cable/connection may deliver odd power events as noted in #325. Testing concluded that voltage drops from a furnace, etc. can trigger a power event. Adding a delay would only add an attack vector (and false positives have been minimal). That said, testing and comments appreciated here.
I am going to look into making alerts configurable, with sensitivity options as suggested in #324 but for now I think this makes sense.