Commit graph

282 commits

Author SHA1 Message Date
Roumen Georgiev 116865896b
Automation (#69) (#70)
* Adding trigger AutosensValue

* new trigger and tests

* AS value in %

* adding tests

* fixed tests

* fix for maxValue and tests

* Using InputDouble

* icon added

* unavailable data and IS_NOT_AVAILABLE case

* Fixing after comments

* Autosens !=0 && IS_NOT_AVAILABLE doesn't exist enymore

* cleanup
2019-06-03 15:06:40 +03:00
Roumen Georgiev 5c4910ed5b added trigger Delta 2019-05-30 12:16:42 +03:00
Milos Kozak a33e1f6d3c TriggerLocation 2019-05-03 07:37:49 +02:00
Milos Kozak 3ab2a142d1 Merge remote-tracking branch 'origin/dev' into automation 2019-05-02 22:27:54 +02:00
Milos Kozak 4336b47431 NPE fixes from Firebase 2019-04-29 11:36:30 +02:00
AdrianLxM 7c890f2129
Merge pull request #1757 from MilosKozak/update-checker
update logic version checker
2019-04-23 21:58:52 +02:00
Milos Kozak a678c6509c TriggerWifiSsid, UI tweaking 2019-04-22 22:47:59 +02:00
AdrianLxM 0361ee8589 update logic version checker 2019-04-22 14:10:12 +02:00
Milos Kozak 1840ddabb3 TriggerTempTarget 2019-04-22 12:42:19 +02:00
Milos Kozak bef170699f
Merge pull request #1756 from schmitzn/automation-patch1
Check value after setting unit
2019-04-22 09:37:17 +02:00
Milos Kozak 45312d9ffe ActionProfileSwitchPercent 2019-04-21 23:48:05 +02:00
Milos Kozak 42cd2ddaa3 TriggerProfilePercent 2019-04-21 22:32:06 +02:00
Nico Schmitz 3fec2ce16c Check value after setting unit
This makes sure that the value is in the range of minValue and maxValue. Also, it sets an inital value != 0 as it's called in the constructor.
2019-04-21 20:01:29 +02:00
Milos Kozak e679f5eaff ActionNotification 2019-04-21 16:17:25 +02:00
Milos Kozak 5f32eea488
Merge branch 'dev' into automation 2019-04-21 10:39:24 +02:00
Milos Kozak 8ca3d7cba2 TriggerIob, refactoring, lint cleanup, tests 2019-04-21 10:04:30 +02:00
Milos Kozak 27783fe33e TriggerIob, more fixes 2019-04-19 09:20:59 +02:00
Milos Kozak 715a59bfba
Merge pull request #1749 from MilosKozak/update-checker
Update checker
2019-04-18 22:26:18 +02:00
Milos Kozak a08f01e69b more TriggerBg tests 2019-04-18 21:06:16 +02:00
Milos Kozak 46c6cdf98f Merge remote-tracking branch 'origin/dev' into automation 2019-04-18 19:48:51 +02:00
Milos Kozak 89ec81a850 UI and logic tweaking 2019-04-18 19:33:23 +02:00
AdrianLxM 6c6b23066b mocking the time 2019-04-18 00:33:24 +02:00
AdrianLxM 84573cc0cc refactor constraints checker 2019-04-17 21:29:16 +02:00
AdrianLxM 9be0ffffa9 verify static calls on mocked classes 2019-04-17 21:28:32 +02:00
Milos Kozak bfb39d81e7 fix test 2019-04-17 00:00:44 +02:00
Milos Kozak a6bd81a1b9 fix tests 2019-04-16 21:28:21 +02:00
Milos Kozak 4ae7efc75f Merge branch 'dev' into automation 2019-04-16 21:08:08 +02:00
Milos Kozak 952a6fe509 fix GlucoseStatus calculation 2019-04-16 20:36:18 +02:00
Milos Kozak 7e54db64be Glucose logging 2019-04-15 15:19:19 +02:00
AdrianLxM f739980988 testing and SP logic 2019-04-15 08:04:56 +02:00
Milos Kozak 0f6b05206f clear MidnightTime cache 2019-04-13 21:49:15 +02:00
AdrianLxM 04618156cc restructure and test version checker 2019-04-11 12:43:52 +02:00
Johannes Mockenhaupt cefee4827b
TDDing 2019-04-10 14:58:01 +02:00
Johannes Mockenhaupt 85cc61934c
add test 2019-04-10 14:51:50 +02:00
Milos Kozak 83e987f3c8 Fix DanaRS tests 2019-04-09 22:55:12 +02:00
Milos Kozak a1d93b0d68 LINT: fix errors in strings 2019-04-08 12:06:34 +02:00
Milos Kozak 1f62c820ca Automation: split recurring and nonrecurring time 2019-04-02 00:05:12 +02:00
Milos Kozak dc0846eab9 ActionStopTempTarget 2019-04-01 22:36:15 +02:00
Milos Kozak 5a555cdfba AutomationPlugin:processActions and some tweaking 2019-03-31 21:54:31 +02:00
rob 25950fc6cf Libre/miaomiao delta modifications
* Remove hard limit of processing 9 records.  Processing will now stop
    at first value outside of time range of interest
  * Keep a list of all values within 2.5 minutes.  Average this value to use
    as the now value
  * Don't change the now value date.  Always use the time of the latest value
  * Added new test for data spaced at 1 minute intervals, to mimic libre data from glimp
  * Fix existing test results for average < 2.5 minute data. Deltas are different due to
    not updating the now value time
2019-03-31 11:03:48 +10:00
Milos Kozak 350e23647e ActionStartTempTargetTest 2019-03-31 00:03:31 +01:00
Milos Kozak 6a365b3483 ActionTest 2019-03-30 23:11:22 +01:00
Milos Kozak bad6edfb8b Action:applyTest 2019-03-30 23:08:25 +01:00
Milos Kozak e5dc655c64 ActionLoopResumeTest 2019-03-30 22:53:19 +01:00
Milos Kozak 77dd32a14f ActionLoopSuspendTest 2019-03-30 22:47:22 +01:00
Milos Kozak fe844b2dba ActionLoopEnableTest 2019-03-30 22:35:05 +01:00
Milos Kozak 1ba923b14d ActionLoopDisableTest 2019-03-30 22:32:28 +01:00
Milos Kozak 876c59a6fe ActionTest 2019-03-30 18:40:13 +01:00
Milos Kozak 6357dd40d7 fix tests 2019-03-30 17:10:21 +01:00
Milos Kozak cabdb1d2fb Merge branch 'dev' into automation 2019-03-30 15:47:23 +01:00