Created
July 8, 2016 21:17
-
-
Save cjo20/350038639fa668e105ff3e2c7db4c72e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions! | |
Get the voltage tool | |
``` | |
git clone https://github.com/cjo20/EdisonVoltage.git | |
cd EdisonVoltage.git | |
make voltage | |
cd .. | |
``` | |
Add the following in `sudo crontab -e` (sudo is important!!) | |
`*/5 * * * /path/to/EdisonVoltage/voltage 3 > /path/to/openaps/uploader.json` | |
In openaps.ini, find the report that executes `ns-status` and add `--uploader uploader.json` to the `remainder` field (in front of mmtune.json if you have it) | |
`echo 0 > /path/to/openaps/uploader.json` to create the file and make sure it has some data present | |
Every 5 minutes the battery voltage will be updated and picked up on the next status upload. To fill the data manually, run `sudo /path/to/EdisonVoltage/voltage 3 > /path/to/openaps/uploader.json` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment