Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync autotune-mdi changes back into dev #374

Merged
merged 14 commits into from Feb 6, 2017
Merged

Sync autotune-mdi changes back into dev #374

merged 14 commits into from Feb 6, 2017

Conversation

scottleibrand
Copy link
Contributor

This needs testing to see if it's backwards compatible with running autotune on an OpenAPS rig.

scottleibrand and others added 12 commits January 22, 2017 20:58
* New tool to sync profile data from OpenAPS to Nightscout

* Hashing the secret

* Added tool to package.json

* Support both hashed and unhashed api key

* Added --preview support. Code run through js-beautify. Less console logging.

* Fixed bug with parameter checking order, better logging in case of error / success on upload

* Added profile JSON validity checking

* One more check for the downloaded profile
It may also make sense to look for !(current.timestamp) && current.insulin since I believe HAPP may give you the ability to edit the "Entered by" string (need to confirm that though).
* script for autotuning based on day of week

* +x

* exit on usage

* accept command-line arguments
* Added additonal logic for HAPP Temp basals

Needed to change the timestamp and rate to created_at and absolute respectively.

* Update history.js

* Update history.js
Conflicts:
	package.json
@scottleibrand
Copy link
Contributor Author

Tested this against one of our rigs and confirmed it works. Also added some || die statements to help with #349

@scottleibrand
Copy link
Contributor Author

Will merge to dev, probably tomorrow, if no objections.

@scottleibrand scottleibrand merged commit fe5ebf2 into master Feb 6, 2017
@scottleibrand scottleibrand deleted the autotune-mdi branch February 6, 2017 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants