Skip to content

Instantly share code, notes, and snippets.

diff --git a/static/report/js/report.js b/static/report/js/report.js
index 924bbcb..8b61b8c 100644
--- a/static/report/js/report.js
+++ b/static/report/js/report.js
@@ -44,6 +44,14 @@
};
var ONE_MIN_IN_MS = 60000;
+
+ function startOfDayForQuery(day) {

Options to upload data from a Medtronic pump to Nightscout

First pass; others, please correct or fill in gaps.

  • MiniMed Connect
    • Default behavior (using the Medtronic iOS app paired with a Connect)
      • Real-time: we can scrape the data the Connect sends to Medtronic's servers using [minimed-connect-to-nightscout]. It's not much -- just BG data, active insulin, reservoir, etc. [See this sample]
      • Historical: once a day, the Medtronic app asks the Connect to poll the pump for history, then uploads that into CareLink. SPECULATIVE: you could run [mmcsv] regularly to translate and upload that data to Nightscout. You'd have pump data alongside CGM data delayed by ~24 hours.
    • Custom behavior (using an open source iOS app paired with a Connect)
  • Real-time: SPECULATIVE: @bewest has captured a conversation between a Connect and a pump, suggesting it makes the same history requests as a CareLink stick. We could develop an app to impersonate the Medtronic iOS app and request that dat
import os
from ConfigParser import ConfigParser
from datetime import datetime
from dateutil.parser import parser
from dateutil.tz import tzlocal
import requests
import rumps
date_parser = parser()
@mddub
mddub / commands.sh
Created June 24, 2015 05:56
Make an inbox burndown timelapse
#####################################
# Capture webcam images and log inbox
#####################################
# Install imagesnap: http://iharder.sourceforge.net/current/macosx/imagesnap/
# Install gmail-logger: https://github.com/mddub/gmail-logger
# Make a directory to store the screenshots and webcam images
mkdir images