SHARE
TWEET

openaps.ini john

a guest Jul 31st, 2016 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [vendor "openapscontrib.timezones"]
  2. path = .
  3. module = openapscontrib.timezones
  4.  
  5. [report "monitor/glucose-zoned.json"]
  6. use = rezone
  7. reporter = JSON
  8. astimezone = False
  9. date = display_time
  10. adjust = missing
  11. input = monitor/glucoseclean.json
  12. device = tz
  13. timezone = BST
  14.  
  15. [device "tz"]
  16. vendor = openapscontrib.timezones
  17. extra = tz.ini
  18.  
  19. [device "insulin_pump"]
  20. vendor = openaps.vendors.medtronic
  21. extra = insulin_pump.ini
  22.  
  23. [report "raw-pump/bg-targets-raw.json"]
  24. device = insulin_pump
  25. use = read_bg_targets
  26. reporter = JSON
  27.  
  28. [report "settings/bg-targets.json"]
  29. device = units
  30. to = mg/dL
  31. use = bg_targets
  32. input = raw-pump/bg-targets-raw.json
  33. reporter = JSON
  34.  
  35. [report "raw-pump/insulin-sensitivities-raw.json"]
  36. device = insulin_pump
  37. use = read_insulin_sensitivities
  38. reporter = JSON
  39.  
  40. [report "settings/insulin-sensitivities.json"]
  41. device = units
  42. to = mg/dL
  43. use = insulin_sensitivities
  44. input = raw-pump/insulin-sensitivities-raw.json
  45. reporter = JSON
  46.  
  47. [report "raw-pump/clock-raw.json"]
  48. device = insulin_pump
  49. use = read_clock
  50. reporter = JSON
  51.  
  52. [report "monitor/clock.json"]
  53. date = None
  54. use = clock
  55. adjust = missing
  56. reporter = JSON
  57. device = tz
  58. input = raw-pump/clock-raw.json
  59. astimezone = False
  60.  
  61. [report "monitor/temp-basal-status.json"]
  62. device = insulin_pump
  63. use = read_temp_basal
  64. reporter = JSON
  65.  
  66. [report "oref0-predict/oref0.json"]
  67. use = shell
  68. oref0-iob = oref0-monitor/iob.json
  69. temp-basal = monitor/temp-basal-status.json
  70. reporter = text
  71. json_default = True
  72. oref0-profile = oref0-monitor/profile.json
  73. device = determine-basal
  74. remainder =
  75. glucose = monitor/glucose.json
  76.  
  77. [report "raw-pump/pump-history-raw.json"]
  78. hours = 8.0
  79. device = insulin_pump
  80. use = iter_pump_hours
  81. reporter = JSON
  82.  
  83. [report "monitor/pump-history.json"]
  84. date = created_at end_at start_at dateString timestamp
  85. use = rezone
  86. adjust = missing
  87. reporter = JSON
  88. device = tz
  89. input = raw-pump/pump-history.json
  90. astimezone = False
  91. oper = format_recent_pump_historyopenaps
  92. json_default = True
  93. remainder = report add monitor/pump-history.json JSON insulin_pump iter_pump
  94. count = 100
  95. timezone =
  96.  
  97. [report "model.json"]
  98. device = insulin_pump
  99. use = model
  100. reporter = JSON
  101.  
  102. [report "monitor/reservoir.json"]
  103. device = insulin_pump
  104. use = reservoir
  105. reporter = JSON
  106.  
  107. [report "monitor/status.json"]
  108. device = insulin_pump
  109. use = read_status
  110. reporter = JSON
  111.  
  112. [report "monitor/battery.json"]
  113. device = insulin_pump
  114. use = read_battery_status
  115. reporter = JSON
  116.  
  117. [report "oref0-enacted/enacted-temp-basal.json"]
  118. device = insulin_pump
  119. input = oref0-predict/oref0.json
  120. use = set_temp_basal
  121. reporter = JSON
  122.  
  123. [report "settings/settings.json"]
  124. device = oref0
  125. remainder = copy-fresher raw-pump/settings.json
  126. use = shell
  127. json_default = True
  128. reporter = JSON
  129.  
  130. [report "raw-pump/settings.json"]
  131. device = insulin_pump
  132. use = read_settings
  133. reporter = JSON
  134.  
  135. [report "settings/selected-basal-profile.json"]
  136. device = oref0
  137. remainder = copy-fresher raw-pump/selected-basal-profile.json
  138. use = shell
  139. json_default = True
  140. reporter = JSON
  141.  
  142. [report "raw-pump/selected-basal-profile.json"]
  143. device = insulin_pump
  144. use = read_selected_basal_profile
  145. reporter = JSON
  146.  
  147. [report "raw-pump/temp-basal-status.json"]
  148. device = insulin_pump
  149. use = read_temp_basal
  150. reporter = JSON
  151.  
  152. [report "raw-pump/reservoir.json"]
  153. device = insulin_pump
  154. use = reservoir
  155. reporter = JSON
  156.  
  157. [report "raw-pump/status.json"]
  158. device = insulin_pump
  159. use = read_status
  160. reporter = JSON
  161.  
  162. [report "raw-pump/battery.json"]
  163. device = insulin_pump
  164. use = read_battery_status
  165. reporter = JSON
  166.  
  167. [report "last_four_pump_hours.json"]
  168. device = insulin_pump
  169. hours = 4.0
  170. use = iter_pump_hours
  171. reporter = JSON
  172.  
  173. [report "monitor/clock-zoned.json"]
  174. use = clock
  175. reporter = JSON
  176. astimezone = False
  177. date = None
  178. adjust = missing
  179. input = monitor/clock.json
  180. device = tz
  181. timezone =
  182.  
  183. [device "ns"]
  184. vendor = openaps.vendors.process
  185. extra = ns.ini
  186.  
  187. [alias]
  188. rm-warmup = ! bash -c "rm -f model.json monitor/clock.json > /dev/null"
  189. warmup = report invoke model.json raw-pump/clock-raw.json monitor/clock.json
  190. fail-warmup = ! bash -c "echo PREFLIGHT FAIL; exit 1"
  191. preflight = ! bash -c "rm -f monitor/clock.json && openaps report invoke monitor/clock.json 2>/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || (mm-stick warmup || sudo oref0-reset-usb; echo PREFLIGHT FAIL; sleep 120; exit 1)"
  192. monitor-cgm = report invoke raw-pump/mm-glucose.json raw-pump/ns-glucose.json monitor/glucose.json
  193. monitor-pump-history = report invoke raw-pump/pump-history.json monitor/pump-history.json
  194. get-basal-status = report invoke monitor/temp-basal-status.json
  195. get-pump-details = report invoke monitor/reservoir.json monitor/status.json monitor/battery.json
  196. get-settings = 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
  197. gather-pump-data = ! bash -c "openaps get-basal-status; openaps get-pump-details; openaps monitor-pump-history;  openaps get-settings"
  198. gather-clean-data = ! bash -c "openaps monitor-cgm && openaps gather-pump-data"
  199. do-oref0 = report invoke oref0-monitor/profile.json oref0-monitor/iob.json oref0-predict/oref0.json
  200. enact-oref0 = report invoke oref0-enacted/enacted-temp-basal.json
  201. do-everything = ! bash -c "(openaps preflight && openaps gather-clean-data && openaps do-oref0 && openaps enact-oref0);  openaps report-nightscout"
  202. ping = ! bash -c "echo PONG! $*" --
  203. pong = ! echo PONG
  204. hello = ! echo hello
  205. okbar = ! bash -c "echo $1" --
  206. report-nightscout = report invoke monitor/clock-zoned.json nightscout/preflight.json monitor/glucoseclean.json nightscout/uploaded.json  nightscout/uploaded-entries.json
  207. gather = ! bash -c "rm -f monitor/*; openaps get-profile && openaps monitor-cgm && openaps monitor-pump && openaps report invoke monitor/iob.json"
  208. get-profile = report invoke settings/settings.json settings/bg_targets_raw.json settings/bg-targets.json settings/insulin-sensitivities-raw.json settings/insulin-sensitivities.json settings/basal-profile.json settings/profile.json
  209. monitor-pump = report invoke monitor/clock.json monitor/temp_basal.json monitor/pumphistory.json monitor/iob.json
  210. loop = ! bash -c "( openaps preflight && openaps gather && openaps enact) || echo LOOP FAILED."
  211. determine-basal = report invoke enact/suggested.json
  212. enact = report invoke enact/suggested.json enact/enacted.json
  213. retry-loop = ! bash -c "openaps preflight && until( ! mm-stick warmup || openaps loop); do sleep 5; done"
  214. backdate = use ns shell get entries/sgv.json count=300 | openaps use tz lsgaps --date dateString --minutes 6 --before yesterday --after now - | openaps use tz select --current now --date dateString --gaps - monitor/glucose.json | openaps use ns shell upload entries.json -
  215.  
  216. [report "nightscout/recent-treatments.json"]
  217. oper = format-recent-history-treatments
  218. use = shell
  219. reporter = JSON
  220. json_default = True
  221. device = ns
  222. remainder = monitor/pumphistory.json monitor/glucoseclean.json model.json
  223.  
  224. [report "nightscout/uploaded.json"]
  225. oper = upload-non-empty-treatments
  226. use = shell
  227. reporter = JSON
  228. json_default = True
  229. device = ns
  230. remainder = nightscout/recent-treatments.json
  231.  
  232. [report "nightscout/recent-missing-entries.json"]
  233. oper = format-recent-type
  234. use = shell
  235. reporter = JSON
  236. json_default = True
  237. device = ns
  238. remainder = tz  entries monitor/glucose.json
  239.  
  240. [report "nightscout/uploaded-entries.json"]
  241. oper = upload
  242. use = shell
  243. reporter = JSON
  244. device = ns
  245. remainder = entries.json nightscout/recent-missing-entries.json
  246. json_default = True
  247.  
  248. [report "nightscout/preflight.json"]
  249. oper = preflight
  250. use = shell
  251. reporter = JSON
  252. device = ns
  253. remainder =
  254. json_default = True
  255.  
  256. [report "settings/model.json"]
  257. device = insulin_pump
  258. use = model
  259. reporter = JSON
  260.  
  261. [report "monitor/glucose.json"]
  262. device = tz
  263. count = 5
  264. use = rezone
  265. reporter = JSON
  266. astimezone = True
  267. date = dateString
  268. adjust = missing
  269. input = raw-pump/ns-glucose.json
  270. timezone =
  271.  
  272. [device "oref0"]
  273. vendor = openaps.vendors.process
  274. extra = oref0.ini
  275.  
  276. [device "get-profile"]
  277. vendor = openaps.vendors.process
  278. extra = get-profile.ini
  279.  
  280. [device "calculate-iob"]
  281. vendor = openaps.vendors.process
  282. extra = calculate-iob.ini
  283.  
  284. [device "determine-basal"]
  285. vendor = openaps.vendors.process
  286. extra = determine-basal.ini
  287.  
  288. [report "settings/bg_targets_raw.json"]
  289. device = insulin_pump
  290. use = read_bg_targets
  291. reporter = JSON
  292.  
  293. [device "units"]
  294. vendor = openaps.vendors.units
  295. extra = units.ini
  296.  
  297. [report "settings/bg_targets.json"]
  298. device = units
  299. to = mg/dL
  300. use = bg_targets
  301. input = settings/bg_targets_raw.json
  302. reporter = JSON
  303.  
  304. [report "settings/insulin_sensitivities.json"]
  305. device = units
  306. to = mg/dL
  307. use = insulin_sensitivities
  308. input = settings/insulin-sensitivities-raw.json
  309. reporter = JSON
  310.  
  311. [report "settings/basal-profile.json"]
  312. device = insulin_pump
  313. use = read_basal_profile_std
  314. reporter = JSON
  315.  
  316. [report "settings/profile.json"]
  317. use = shell
  318. bg-targets = settings/bg-targets.json
  319. preferences = preferences.json
  320. settings = settings/settings.json
  321. basal-profile = settings/basal-profile.json
  322. reporter = text
  323. json_default = True
  324. device = get-profile
  325. remainder =
  326. insulin-sensitivities = settings/insulin-sensitivities.json
  327.  
  328. [report "monitor/pumphistory.json"]
  329. device = insulin_pump
  330. hours = 4.0
  331. use = iter_pump_hours
  332. reporter = JSON
  333. count = 100
  334.  
  335. [report "monitor/iob.json"]
  336. profile = settings/profile.json
  337. use = shell
  338. clock = monitor/clock.json
  339. reporter = JSON
  340. json_default = True
  341. pumphistory = monitor/pumphistory.json
  342. device = calculate-iob
  343. remainder =
  344. oref0-profile = settings/profile.json
  345.  
  346. [report "monitor/temp_basal.json"]
  347. device = insulin_pump
  348. use = read_temp_basal
  349. reporter = JSON
  350.  
  351. [report "enact/suggested.json"]
  352. profile = settings/profile.json
  353. use = shell
  354. temp_basal = monitor/temp_basal.json
  355. reporter = text
  356. json_default = True
  357. device = determine-basal
  358. remainder =
  359. iob = monitor/iob.json
  360. glucose = monitor/glucose-zoned.json
  361. oref0-iob = monitor/iob.json
  362. temp-basal = monitor/temp_basal.json
  363. oref0-profile = settings/profile.json
  364.  
  365. [vendor "openapscontrib.glucosetools"]
  366. path = .
  367. module = openapscontrib.glucosetools
  368.  
  369. [device "glucose"]
  370. vendor = openapscontrib.glucosetools
  371. extra = glucose.ini
  372.  
  373. [report "monitor/glucoseclean.json"]
  374. device = glucose
  375. use = clean
  376. infile = monitor/glucose.json
  377. reporter = JSON
  378.  
  379. [report "nightscout/openaps-status.json"]
  380. oper = monitor/clock.json
  381. use = shell
  382. reporter = JSON
  383. json_default = True
  384. device = ns
  385. remainder = oref0-monitor/iob.json oref0-predict/oref0.json oref0-enacted/enacted-temp-basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
  386.  
  387. [device "detect-sensitivity"]
  388. vendor = openaps.vendors.process
  389. extra = detect-sensitivity.ini
  390.  
  391. [report "settings/insulin-sensitivities-raw.json"]
  392. device = insulin_pump
  393. use = read_insulin_sensitivities
  394. reporter = JSON
  395.  
  396. [report "enact/enacted.json"]
  397. device = insulin_pump
  398. input = enact/suggested.json
  399. use = set_temp_basal
  400. reporter = JSON
  401.  
  402. [device "mm-glucose-format"]
  403. vendor = openaps.vendors.process
  404. extra = mm-glucose-format.ini
  405.  
  406. [report "raw-pump/mm-glucose.json"]
  407. device = insulin_pump
  408. count = 288
  409. use = iter_glucose
  410. reporter = JSON
  411.  
  412. [report "raw-pump/ns-glucose.json"]
  413. device = mm-glucose-format
  414. remainder = raw-pump/mm-glucose.json
  415. use = shell
  416. json_default = True
  417. reporter = JSON
  418.  
  419. [report "raw-pump/pump-history.json"]
  420. device = insulin_pump
  421. hours = 4.0
  422. use = iter_pump_hours
  423. reporter = JSON
  424.  
  425. [report "raw-pump/bg-targets.json"]
  426. device = insulin_pump
  427. use = read_bg_targets
  428. reporter = JSON
  429.  
  430. [report "oref0-monitor/profile.json"]
  431. insulin-sensitivities = settings/insulin-sensitivities.json
  432. use = shell
  433. settings = settings/settings.json
  434. reporter = text
  435. json_default = True
  436. device = get-profile
  437. bg-targets = settings/bg-targets.json
  438. basal-profile = settings/selected-basal-profile.json
  439. max-iob = max-iob.json
  440. remainder =
  441.  
  442. [report "oref0-monitor/iob.json"]
  443. use = shell
  444. clock = monitor/clock.json
  445. reporter = text
  446. json_default = True
  447. pump-history = monitor/pump-history.json
  448. oref0-profile = oref0-monitor/profile.json
  449. device = calculate-iob
  450. remainder =
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top