Last active
July 10, 2016 04:55
-
-
Save bewest/d3db9ca1c144b845382c885138a8f66e to your computer and use it in GitHub Desktop.
cgm reports template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "alias", | |
"name": "rm-warmup", | |
"rm-warmup": { | |
"command": "! bash -c \"rm -f model.json monitor/clock.json > /dev/null\"" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "warmup", | |
"warmup": { | |
"command": "report invoke model.json raw-pump/clock-raw.json monitor/clock.json" | |
} | |
}, | |
{ | |
"fail-warmup": { | |
"command": "! bash -c \"echo PREFLIGHT FAIL; exit 1\"" | |
}, | |
"type": "alias", | |
"name": "fail-warmup" | |
}, | |
{ | |
"type": "alias", | |
"preflight": { | |
"command": "! bash -c \"(echo PREFLIGHT ) && openaps warmup 2>&1 >/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || openaps fail-warmup\"" | |
}, | |
"name": "preflight" | |
}, | |
{ | |
"type": "alias", | |
"name": "monitor-cgm", | |
"monitor-cgm": { | |
"command": "report invoke raw-cgm/glucose-raw.json monitor/glucose.json" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "monitor-pump-history", | |
"monitor-pump-history": { | |
"command": "report invoke raw-pump/pump-history-raw.json monitor/pump-history.json" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "get-basal-status", | |
"get-basal-status": { | |
"command": "report invoke monitor/temp-basal-status.json" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "get-pump-details", | |
"get-pump-details": { | |
"command": "report invoke monitor/reservoir.json monitor/status.json monitor/battery.json" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "get-settings", | |
"get-settings": { | |
"command": "report invoke raw-pump/bg-targets-raw.json settings/bg-targets.json raw-pump/insulin-sensitivities-raw.json settings/insulin-sensitivities.json raw-pump/selected-basal-profile.json raw-pump/settings.json settings/selected-basal-profile.json settings/settings.json" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "gather-pump-data", | |
"gather-pump-data": { | |
"command": "! bash -c \"openaps get-basal-status; openaps get-pump-details; openaps monitor-pump-history; openaps get-settings\"" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "gather-clean-data", | |
"gather-clean-data": { | |
"command": "! bash -c \"openaps monitor-cgm && openaps gather-pump-data\"" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "do-oref0", | |
"do-oref0": { | |
"command": "report invoke oref0-monitor/profile.json oref0-monitor/iob.json oref0-predict/oref0.json" | |
} | |
}, | |
{ | |
"type": "alias", | |
"name": "enact-oref0", | |
"enact-oref0": { | |
"command": "report invoke oref0-enacted/enacted-temp-basal.json" | |
} | |
}, | |
{ | |
"do-everything": { | |
"command": "! bash -c \"(openaps preflight && openaps gather-clean-data && openaps do-oref0 && openaps enact-oref0); openaps report-nightscout\"" | |
}, | |
"type": "alias", | |
"name": "do-everything" | |
}, | |
{ | |
"type": "alias", | |
"ping": { | |
"command": "! bash -c \"echo PONG! $*\" --" | |
}, | |
"name": "ping" | |
}, | |
{ | |
"pong": { | |
"command": "! echo PONG" | |
}, | |
"type": "alias", | |
"name": "pong" | |
}, | |
{ | |
"type": "alias", | |
"name": "hello", | |
"hello": { | |
"command": "! echo hello" | |
} | |
}, | |
{ | |
"type": "alias", | |
"okbar": { | |
"command": "! bash -c \"echo $1\" --" | |
}, | |
"name": "okbar" | |
}, | |
{ | |
"report-nightscout": { | |
"command": "report invoke nightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json" | |
}, | |
"type": "alias", | |
"name": "report-nightscout" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"monitor/glucose-raw.json": { | |
"count": "20", | |
"device": "cgm", | |
"use": "iter_glucose", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "monitor/glucose-raw.json" | |
}, | |
{ | |
"cgm-vendor.json": { | |
"device": "cgm", | |
"use": "GetFirmwareHeader", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "cgm-vendor.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-cgm/glucose-raw.json", | |
"raw-cgm/glucose-raw.json": { | |
"count": "20", | |
"hours": "2.0", | |
"use": "oref0_glucose", | |
"device": "cgm", | |
"reporter": "JSON", | |
"threshold": "100" | |
} | |
}, | |
{ | |
"raw-cgm/entries.json": { | |
"use": "oref0_glucose", | |
"no_raw": "True", | |
"reporter": "JSON", | |
"hours": "1.0", | |
"threshold": "100", | |
"device": "cgm", | |
"sensor": "sensor_raw.json", | |
"glucose": "raw-cgm/glucose-raw.json" | |
}, | |
"type": "report", | |
"name": "raw-cgm/entries.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-cgm/calibrations.json", | |
"raw-cgm/calibrations.json": { | |
"count": "4", | |
"device": "cgm", | |
"use": "iter_calibrations", | |
"reporter": "JSON" | |
} | |
}, | |
{"type": "report", "name": "monitor/glucose.json", "monitor/glucose.json": {"use": "rezone", "reporter": "JSON", "astimezone": "True", "date": "timestamp dateString start_at end_at created_at system_time display_time", "adjust": "missing", "input": "raw-cgm/glucose-raw.json", "device": "tz", "timezone": ""}} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"monitor/glucose-raw.json": { | |
"count": "20", | |
"device": "Maxim", | |
"use": "iter_glucose", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "monitor/glucose-raw.json" | |
}, | |
{ | |
"cgm-vendor.json": { | |
"device": "Maxim", | |
"use": "GetFirmwareHeader", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "cgm-vendor.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-cgm/glucose-raw.json", | |
"raw-cgm/glucose-raw.json": { | |
"count": "20", | |
"hours": "2.0", | |
"use": "oref0_glucose", | |
"device": "Maxim", | |
"reporter": "JSON", | |
"threshold": "100" | |
} | |
}, | |
{ | |
"raw-cgm/entries.json": { | |
"use": "oref0_glucose", | |
"no_raw": "True", | |
"reporter": "JSON", | |
"hours": "1.0", | |
"threshold": "100", | |
"device": "Maxim", | |
"sensor": "sensor_raw.json", | |
"glucose": "raw-cgm/glucose-raw.json" | |
}, | |
"type": "report", | |
"name": "raw-cgm/entries.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-cgm/calibrations.json", | |
"raw-cgm/calibrations.json": { | |
"count": "4", | |
"device": "Maxim", | |
"use": "iter_calibrations", | |
"reporter": "JSON" | |
} | |
}, | |
{"type": "report", "name": "monitor/glucose.json", "monitor/glucose.json": {"use": "rezone", "reporter": "JSON", "astimezone": "True", "date": "timestamp dateString start_at end_at created_at system_time display_time", "adjust": "missing", "input": "raw-cgm/glucose-raw.json", "device": "tz", "timezone": ""}} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"pump": { | |
"vendor": "openaps.vendors.medtronic", | |
"extra": "giapump.ini" | |
}, | |
"type": "device", | |
"name": "giapump", | |
"extra": { | |
"serial": "123456" | |
} | |
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "report", | |
"name": "raw-cgm/glucose-raw.json", | |
"raw-cgm/glucose-raw.json": { | |
"hours": "2.0", | |
"use": "oref0_glucose", | |
"device": "cgm", | |
"reporter": "JSON", | |
"threshold": "100" | |
} | |
}, | |
{ | |
"type": "report", | |
"name": "raw-cgm/calibrations.json", | |
"raw-cgm/calibrations.json": { | |
"count": "4", | |
"device": "cgm", | |
"use": "iter_calibrations", | |
"reporter": "JSON" | |
} | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"nightscout/recent-treatments.json": { | |
"oper": "format-recent-history-treatments", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "monitor/pump-history.json model.json", | |
"json_default": "True" | |
}, | |
"type": "report", | |
"name": "nightscout/recent-treatments.json" | |
}, | |
{ | |
"type": "report", | |
"name": "nightscout/uploaded.json", | |
"nightscout/uploaded.json": { | |
"oper": "upload-non-empty-treatments", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "nightscout/recent-treatments.json", | |
"json_default": "True" | |
} | |
}, | |
{ | |
"type": "report", | |
"nightscout/recent-missing-entries.json": { | |
"oper": "format-recent-type", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "tz entries monitor/glucose.json", | |
"json_default": "True" | |
}, | |
"name": "nightscout/recent-missing-entries.json" | |
}, | |
{ | |
"type": "report", | |
"nightscout/uploaded-entries.json": { | |
"oper": "upload-non-empty-type", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "entries.json nightscout/recent-missing-entries.json", | |
"json_default": "True" | |
}, | |
"name": "nightscout/uploaded-entries.json" | |
}, | |
{ | |
"nightscout/preflight.json": { | |
"oper": "preflight", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "", | |
"json_default": "True" | |
}, | |
"type": "report", | |
"name": "nightscout/preflight.json" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"nightscout/recent-treatments.json": { | |
"oper": "format-recent-history-treatments", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "monitor/pump-history.json model.json", | |
"json_default": "True" | |
}, | |
"type": "report", | |
"name": "nightscout/recent-treatments.json" | |
}, | |
{ | |
"type": "report", | |
"name": "nightscout/uploaded.json", | |
"nightscout/uploaded.json": { | |
"oper": "upload-non-empty-treatments", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "nightscout/recent-treatments.json", | |
"json_default": "True" | |
} | |
}, | |
{ | |
"type": "report", | |
"nightscout/recent-missing-entries.json": { | |
"oper": "format-recent-type", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "tz entries monitor/glucose.json", | |
"json_default": "True" | |
}, | |
"name": "nightscout/recent-missing-entries.json" | |
}, | |
{ | |
"type": "report", | |
"nightscout/uploaded-entries.json": { | |
"oper": "upload-non-empty-type", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "entries.json nightscout/recent-missing-entries.json", | |
"json_default": "True" | |
}, | |
"name": "nightscout/uploaded-entries.json" | |
}, | |
{ | |
"nightscout/preflight.json": { | |
"oper": "preflight", | |
"use": "shell", | |
"reporter": "JSON", | |
"device": "ns", | |
"remainder": "", | |
"json_default": "True" | |
}, | |
"type": "report", | |
"name": "nightscout/preflight.json" | |
}, | |
{ | |
"nightscout/uploaded-recent-devicestatus.json": { | |
"oper": "upload", | |
"use": "shell", | |
"reporter": "text", | |
"device": "ns", | |
"remainder": "devicestatus.json nightscout/openaps-status.json", | |
"json_default": "False" | |
}, | |
"type": "report", | |
"name": "nightscout/uploaded-recent-devicestatus.json" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"pump": { | |
"vendor": "openaps.vendors.medtronic", | |
"extra": "pump.ini" | |
}, | |
"type": "device", | |
"name": "pump", | |
"extra": { | |
"serial": "123456" | |
} | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment