Skip to content

Instantly share code, notes, and snippets.

Jason Calabrese jasoncalabrese

Block or report user

Report or block jasoncalabrese

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jasoncalabrese
jasoncalabrese / notes.md
Last active Sep 11, 2016
Pre-refresh-loop updates
View notes.md

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
View 0.9-release-notes.txt
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 / mm-stick-out.txt
Created Jan 19, 2016
mm-stick diagnose after first day at school
View mm-stick-out.txt
$ 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 ...
View 0.8.2-release-notes.md
  • 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
View export-bgchecks.js
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}}
You can’t perform that action at this time.