Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsora/batterydaemon
https://github.com/gsora/batterydaemon
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gsora/batterydaemon
- Owner: gsora
- License: mit
- Created: 2015-07-23T17:18:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-01T22:37:50.000Z (over 9 years ago)
- Last Synced: 2023-08-14T03:50:49.973Z (over 1 year ago)
- Language: Objective-C
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BatteryDaemon
A little battery logging daemon for **iOS**, written mostly in C but with some Objective-C here and there.
## Why you're doing this
Maninly because:
* I'm curious about how iOS calculates its "Usage" stats
* I want to provide something similar to the Android's "Screen usage" statistics
* I'm having fun doing some *"raw"* C codingSo, here's my method to calculate the real device usage.
## How can I use this
Right now, the only way to really use this thing is to manually start and stop the daemon from MobileTerminal/SSH.
The daemon will correctly flush all the buffers and kill himself if a **SIGINT** is issued, and it writes its PID at ~/.batterydaemon.pid (the PID file), to ease the stop process.
I will provide a simple application to start/stop the daemon soon.
## Build and install
The Makefile is able to produce a `debug` and `release` build: the default target is the first one.
# to produce a debug build
make
# to produce a release build
make releaseThen upload it via SSH to your device.
A .deb package will be provided soon, while a sample log can be found [here](https://gist.github.com/peppelakappa/a57b4849813a4131902e).