Created
May 3, 2016 09:11
-
-
Save bewest/a4d6c9d837ab451c0bd6229e0c25c84a to your computer and use it in GitHub Desktop.
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 \"(openaps rm-warmup; 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
[ | |
{ | |
"settings/settings.json": { | |
"device": "oref0", | |
"remainder": "copy-fresher raw-pump/settings.json", | |
"use": "shell", | |
"json_default": "True", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "settings/settings.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-pump/bg-targets-raw.json", | |
"raw-pump/bg-targets-raw.json": { | |
"device": "pump", | |
"use": "read_bg_targets", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"settings/bg-targets.json": { | |
"device": "units", | |
"to": "mg/dL", | |
"use": "bg_targets", | |
"input": "raw-pump/bg-targets-raw.json", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "settings/bg-targets.json" | |
}, | |
{ | |
"raw-pump/insulin-sensitivities-raw.json": { | |
"device": "pump", | |
"use": "read_insulin_sensitivities", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/insulin-sensitivities-raw.json" | |
}, | |
{ | |
"type": "report", | |
"name": "settings/insulin-sensitivities.json", | |
"settings/insulin-sensitivities.json": { | |
"device": "units", | |
"to": "mg/dL", | |
"use": "insulin_sensitivities", | |
"input": "raw-pump/insulin-sensitivities-raw.json", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"type": "report", | |
"name": "settings/selected-basal-profile.json", | |
"settings/selected-basal-profile.json": { | |
"device": "oref0", | |
"remainder": "copy-fresher raw-pump/selected-basal-profile.json", | |
"use": "shell", | |
"json_default": "True", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"raw-pump/clock-raw.json": { | |
"device": "pump", | |
"use": "read_clock", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/clock-raw.json" | |
}, | |
{ | |
"monitor/clock.json": { | |
"use": "clock", | |
"reporter": "JSON", | |
"astimezone": "False", | |
"date": "None", | |
"adjust": "missing", | |
"timezone": "PDT", | |
"device": "tz", | |
"input": "raw-pump/clock-raw.json" | |
}, | |
"type": "report", | |
"name": "monitor/clock.json" | |
}, | |
{ | |
"monitor/temp-basal-status.json": { | |
"device": "pump", | |
"use": "read_temp_basal", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "monitor/temp-basal-status.json" | |
}, | |
{ | |
"raw-pump/pump-history-raw.json": { | |
"hours": "8.0", | |
"device": "pump", | |
"use": "iter_pump_hours", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/pump-history-raw.json" | |
}, | |
{ | |
"monitor/pump-history.json": { | |
"use": "rezone", | |
"reporter": "JSON", | |
"astimezone": "False", | |
"date": "timestamp dateString start_at end_at created_at", | |
"adjust": "missing", | |
"timezone": "PDT", | |
"device": "tz", | |
"input": "raw-pump/pump-history-raw.json" | |
}, | |
"type": "report", | |
"name": "monitor/pump-history.json" | |
}, | |
{ | |
"type": "report", | |
"name": "model.json", | |
"model.json": { | |
"device": "pump", | |
"use": "model", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"monitor/reservoir.json": { | |
"device": "pump", | |
"use": "reservoir", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "monitor/reservoir.json" | |
}, | |
{ | |
"type": "report", | |
"name": "monitor/status.json", | |
"monitor/status.json": { | |
"device": "pump", | |
"use": "read_status", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"monitor/battery.json": { | |
"device": "pump", | |
"use": "read_battery_status", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "monitor/battery.json" | |
}, | |
{ | |
"type": "report", | |
"name": "oref0-monitor/profile.json", | |
"oref0-monitor/profile.json": { | |
"insulin-sensitivities": "settings/insulin-sensitivities.json", | |
"use": "shell", | |
"settings": "settings/settings.json", | |
"reporter": "text", | |
"json_default": "True", | |
"device": "get-profile", | |
"bg-targets": "settings/bg-targets.json", | |
"basal-profile": "settings/selected-basal-profile.json", | |
"max-iob": "max-iob.json", | |
"remainder": "" | |
} | |
}, | |
{ | |
"type": "report", | |
"name": "oref0-monitor/iob.json", | |
"oref0-monitor/iob.json": { | |
"use": "shell", | |
"clock": "monitor/clock.json", | |
"reporter": "text", | |
"json_default": "True", | |
"pump-history": "monitor/pump-history.json", | |
"oref0-profile": "oref0-monitor/profile.json", | |
"device": "calculate-iob", | |
"remainder": "" | |
} | |
}, | |
{ | |
"type": "report", | |
"name": "oref0-predict/oref0.json", | |
"oref0-predict/oref0.json": { | |
"use": "shell", | |
"oref0-iob": "oref0-monitor/iob.json", | |
"temp-basal": "monitor/temp-basal-status.json", | |
"reporter": "text", | |
"json_default": "True", | |
"oref0-profile": "oref0-monitor/profile.json", | |
"device": "determine-basal", | |
"remainder": "", | |
"glucose": "monitor/glucose.json" | |
} | |
}, | |
{ | |
"type": "report", | |
"name": "oref0-enacted/enacted-temp-basal.json", | |
"oref0-enacted/enacted-temp-basal.json": { | |
"device": "pump", | |
"input": "oref0-predict/oref0.json", | |
"use": "set_temp_basal", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"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" | |
}, | |
{ | |
"blah.txt": { | |
"thing": "foo", | |
"use": "shell", | |
"reporter": "text", | |
"device": "pong", | |
"remainder": "bar", | |
"json_default": "False" | |
}, | |
"type": "report", | |
"name": "blah.txt" | |
}, | |
{ | |
"raw-pump/settings.json": { | |
"device": "pump", | |
"use": "read_settings", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/settings.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-pump/selected-basal-profile.json", | |
"raw-pump/selected-basal-profile.json": { | |
"device": "pump", | |
"use": "read_selected_basal_profile", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"raw-pump/temp-basal-status.json": { | |
"device": "pump", | |
"use": "read_temp_basal", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/temp-basal-status.json" | |
}, | |
{ | |
"raw-pump/reservoir.json": { | |
"device": "pump", | |
"use": "reservoir", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/reservoir.json" | |
}, | |
{ | |
"type": "report", | |
"name": "raw-pump/status.json", | |
"raw-pump/status.json": { | |
"device": "pump", | |
"use": "read_status", | |
"reporter": "JSON" | |
} | |
}, | |
{ | |
"raw-pump/battery.json": { | |
"device": "pump", | |
"use": "read_battery_status", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "raw-pump/battery.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" | |
} | |
}, | |
{ | |
"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", | |
"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": "" | |
} | |
}, | |
{ | |
"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", | |
"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", | |
"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" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment