Skip to content

Conversation

@bewest
Copy link
Member

@bewest bewest commented Mar 30, 2016

Provide some tools to set up nightscout devices easily.

This actually provides a single ns device that can both download and upload any content to/from NS:

openaps use ns shell get entries.json "count=10", vs openaps use ns shell upload treatments.json recently/created-treatments.json should both work as expected, as well as many variants. Note, this relies on certain fixes to the remainder argument in openaps : openaps/openaps#80

bewest added 3 commits March 30, 2016 14:19
This can now autoconfigure a basic CRUD via ns-upload and ns-get so that they
both work under the same config.  Should make setting up some NS things a bit
easier.
@bewest
Copy link
Member Author

bewest commented Mar 30, 2016

Something like this:

$ nightscout autoconfigure-device-crud myhost.com foboar
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
process://ns/nightscout/ns myhost.com 143505794bdd283f7daed50f42d201b6926892c8

Now allows this as a result:

openaps use ns shell get entries.json "count=10"

openaps use ns shell upload treatments.json recently/created-treatments.json

@bewest bewest mentioned this pull request Apr 2, 2016
@bewest bewest merged commit 1ab726a into wip/bewest/help-output Apr 8, 2016
@bewest bewest deleted the wip/bewest/autoconfigure-ns branch April 8, 2016 23:22
@bewest bewest mentioned this pull request May 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants