5 ms·
A friend uses an old phone as a power outage detector. The phone is constantly charged but is set to automatically notify once it's below (IIRC) 97% charge. If
by yyyk 7y ago
A friend uses an old phone as a power outage detector. The phone is constantly charged but is set to automatically notify once it's below (IIRC) 97% charge. If a blackout occurs, the battery would drain and the phone would notify. It's not an accurate measurement, but works well in practice.
- Enginerrrd 7y agoSurely there's a system call that tells whether or not the phone is charging?
- pg_is_a_butt 7y agoCharging stops when the battery is full... pesky explosions.
- yyyk 7y agoThere must be, but my friend chose an almost out of the box solution using an app from the Play Store, and the app only supported alerts per charge level.
- saagarjha 7y agoThere is: https://developer.android.com/training/monitoring-device-state/battery-monitoring.html#MonitorChargeState https://developer.android.com/training/monitoring-device-sta...
- neospice 7y agoThis exists: https://www.wi-meter.ca/ https://www.wi-meter.ca/
- dplgk 7y agoBut the phone must also have a connection to a cell tower? Seems expensive.
- yyyk 7y agoThere's a local provider which has a plan with absurdly low limits (something with about 100 Mb total, tens of SMS messages, etc.) + a low fixed price per month to match. Power outages are rare enough that this application doesn't need much of plan.