Skip to content

Instantly share code, notes, and snippets.

@jasoncalabrese
jasoncalabrese / 0.9-release-notes.txt
Last active October 11, 2016 14:21
0.9 release notes
Nightscout Grilled Cheese - 0.9
Over 1,000 commits from 39 contributors
* Support for multiple active cgm uploaders (incuding battery level with alerts)
* Token/Role based authorization
* Bolus Calc
* SAGE (Sensor Age)
* IAGE (Insulin Cartridge Age)
* Combo Bolus rendering (similar to Temp Basal rendering)
@jasoncalabrese
jasoncalabrese / notes.md
Last active September 11, 2016 16:51
Pre-refresh-loop updates

If you don't already have a ns device

nightscout autoconfigure-device-crud <https://your-host.com> <yourapisecret>
mkdir nightscout

Clean up / add oref0 adevices

openaps device add oref0 process oref0
openaps device remove raw
@jasoncalabrese
jasoncalabrese / mm-stick-out.txt
Created January 19, 2016 22:54
mm-stick diagnose after first day at school
$ mm-stick diagnose
INFO:__main__:howdy! I'm going to take a look at your carelink usb stick.
INFO:decocare.link:Link opened serial port: Serial<id=0x768f5df0, open=True>(port='/dev/serial/by-id/usb-0a21_8001-if00-port0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0.5, xonxoff=False, rtscts=False, dsrdtr=False)
INFO:__main__:PROCESS:OPEN:0.108
INFO:__main__:PROCESS:START:1.063:ProductInfo:0x04
INFO:__main__:link Stick transmit[None] reader[None] download_i[False] status[None] poll_size[None] poll_i[None] command[<ProductInfo:0x04:size(64)>] processing ProductInfo:0x04)
INFO:__main__:send_force_read: attempt 0/1 send command, read until we get something within some timeout
INFO:__main__:link Stick transmit[None] reader[None] download_i[False] status[None] poll_size[None] poll_i[None] command[<ProductInfo:0x04:size(64)>] sending ProductInfo:0x04)
INFO:root:usb.write.len: 3
0000 0x04 0x00 0x00 ...
@jasoncalabrese
jasoncalabrese / 0.8.2-release-notes.md
Last active October 31, 2015 17:33
0.8.2 Release notes
  • New Basal and Temp basal visualization with Care Portal and OpenAPS support
  • Care Portal event type selection adjusts what fields are displayed
  • Event types with duration (Temp Basal/Exercise/Notes)
  • New scaling options: Logarithmic (how it's always been), Linear, and Logarithmic (Dynamic)
  • New Admin tools to reduce the need to go into mongoalb for common support issues
  • Fix for iOS9 angle arrows
  • BWP tooltip updates
  • Chart time localizations
  • Fix for Treatment report date filter
  • Translation updates for Romanian, Norwegian, Bulgarian, Swedish, and Czech
@jasoncalabrese
jasoncalabrese / export-bgchecks.js
Last active August 29, 2015 14:22
Insurance Export
var start = new ISODate("2015-05-01T00:00:00.001-07").toISOString();
var end = new ISODate("2015-05-31T00:00:00.001-07").toISOString();
var min = 60;
var max = 220;
var bgChecks = db.treatments.find({$and: [
{created_at: {$gt: start}}
, {created_at: {$lt: end}}
, {glucose: {$exists: true}}