Skip to content

Instantly share code, notes, and snippets.

@cjo20
Created July 8, 2016 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjo20/350038639fa668e105ff3e2c7db4c72e to your computer and use it in GitHub Desktop.
Save cjo20/350038639fa668e105ff3e2c7db4c72e to your computer and use it in GitHub Desktop.
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