Commit Graph
53 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 3a0629578e Refactor moment to be loaded from ctx (#7331)
* Experimental branch that replaces momentjs with dayjs in the client

* Revert unintentional change

* feat

* Turns out dayjs is a no-go, but this has some good restructuring so submitting that
2023-01-01 19:14:59 +02:00
Bill Gestrich 1a83292ede Remove unused OTP field from Remote Override form. 2022-08-14 06:48:20 -04:00
Pete Schwamb 39936b9b53 Fix incorrect appending for loop enacted status 2022-07-18 11:42:31 -05:00
Pete Schwamb 9ce3920b7c fix typo 2022-03-28 09:16:49 -05:00
Pete Schwamb c8a1a9cdb2 Show automatic bolus decisions from enacted field 2022-03-28 08:50:58 -05:00
Sulka Haro c12ad765be * Refactor how the levels dependency is loaded, to fix some localization issues
* Moves reporting client to the bundles
2020-12-14 20:31:20 +02:00
CalebandGitHub 76b9de9a8e Use lodash.get() in virtual assistant API endpoints (v2) (#6199)
* Fixed #5632 - Improved value resolution

* More value resolution improvements

* Fixed a couple object paths
2020-10-20 11:57:36 +03:00
josep1972andGitHub 5698ae28c1 Add remote bolus/carbs + otp entry for loop (#5598)
Add a remote bolus entry field for users on Loop, along with support for an OTP field
2020-06-12 17:33:17 +03:00
inventor96 43a32b34fb Misc fixes for tests (even though they didn't fail 🤔) 2019-11-05 14:52:00 -07:00
inventor96 b9dc376b19 Migrated titles to use translate() 2019-11-05 14:11:55 -07:00
inventor96 c6e2b58b52 Translation improvements 2019-11-05 00:57:34 -07:00
inventor96 13dd0fa77e Fixed a few missing definitions 2019-11-01 15:06:49 -06:00
inventor96 67e6cddc4b Merge branch 'update-virtual-assistants' into update-virtual-assistants-v2 2019-10-21 14:24:58 -07:00
PieterGitandGitHub 36de82bffd Revert "fix/feat: Update Alexa integration and add Google Home support (#4980)" (#5131)
This reverts commit 30b88f6765.
2019-10-21 16:23:32 +02:00
CalebandPieterGit 30b88f6765 fix/feat: Update Alexa integration and add Google Home support (#4980)
* Copied work done by mdomox

* Updates and fixes to CONTRIBUTING.md

* Spacing unification

* One more fix for CONTRIBUTING.md

* Minor code formatting improvements

* One more time...

* Renamed Alexa stuff to virtAsst for generic-ness

* Corrected missed translate() text

* Updated googlehome plugin to mimic the alexa plugin

* Changed order of operations

* Fixed parameter referencing in googlehome

* Yet another CONTRIBUTING fix

* Removed extra google stuff

* Migrated standalone intents to MetricNow intent

* Simplified route handling

* Added logging

* Added forgotten path selector

* Separated instructions for adding virtual assistant support in a plugin

* A few typo fixes

* Improved logging

* Updated Google Home plugin instructions

* Attempt to trigger download of template file

* Small wording tweaks

* Updated Alexa plugin documentation

* Updated test files

* Re-added handler count tests so devs are prompted to write tests for new handlers

* Updated Alexa documentation

* Small typo fix

* Clarification

* Further clarifications and typos

* Added language info to Google Home plugin doc

* URL correction

* URL fix v2

* Wording clarification

* Ugh...

* Minor instruction fix

* Sub steps fix

* Fixed Alexa references in Google Home

* Added a couple steps for improved user experience

* One more forgotten step

* Updated pump reservoir handler to handle undefined values

* Updated titles and unknown-value responses

* Modified forecast responses to use translate()

* Updated tests

* Improved training phrases

* Wording improvements

* Google Home setup instruction corrections

* Corrected how metric selection is found
2019-10-21 14:09:49 +02:00
Pete SchwambandSulka Haro d729b0eb00 Remote Loop overrides (#5043)
* skeleton code

* publishing

* Activating remote override

* Fix event types refresh, and fix custom duration

* Don't create treatment record; loop will

* Additional override details for treatment tooltip

* Pass client from careportal

* attempt at moving endpoint to api/v2

* Add bodyParser to v2/notifications

* Remove notifications api from v1

* Remove unused var

* Better error handling and reporting

* Add documentation for new loop plugin vars

* Handle indefinite duration overrides

* Move label of indeterminate duration override to now line when start is offscreen

* test

* Use separate representation for indefinite duration treatments

* fix display for finite duration treatments

* Fix re-use of elements when treatment ordering changes

* Handle more rect transition() updates

* Add check for LOOP_DEVELOPER_TEAM_ID

* Support configuration of aps-environment via environment variable.

* Fix expiration date math; was essentially preventing retries
2019-10-16 12:35:22 +03:00
inventor96 ddd8f63cbd Modified forecast responses to use translate() 2019-09-16 15:47:06 -06:00
inventor96 bf57dfec78 Updated titles and unknown-value responses 2019-09-16 15:12:59 -06:00
inventor96 b3a47b36e0 Simplified route handling 2019-09-07 23:39:17 -06:00
inventor96 efa35c4616 Renamed Alexa stuff to virtAsst for generic-ness 2019-09-07 17:51:31 -06:00
Sulka HaroandGitHub 8f25a6e7a4 Fix all issues from ESLint (#4730)
* Cherry picks the ES language changes from #4690

* Fix small issues found in linting

* * Fix all but one eslint complaint in the bundled code
* Add eslint and js-beautify rc files into the repo
2019-07-17 15:04:57 +03:00
Jason Calabrese a4f9b52850 update readme to include the override plugin and resole TODO 2019-05-08 19:20:30 -07:00
Jason Calabrese 9d88a37b1d display Loop override in a new pill
could be also be used by openaps, AAPS, or other systems
2019-05-07 18:19:25 -07:00
Sulka Haro 051576056a Moved server-specific sources to their own folder. Removed some unused code as per Codacy reports 2017-12-28 19:15:52 +02:00
Dragan MaksimovicandSulka Haro 18892a491b Fix bg units in updated Loop pill (#3114)
* Update package.json

* update package.json

* Update loop.js

* test

* add BLE RSSI

* add BLE RSSI

* update RSSI time stamp

* update Loop RSSI reporting

* update Loop RSSI reporting

* show RSSI and pumpRSSI in Loop pill, if available

* update Loop pill RSSI

* Update RSSI in Loop pill

* Fix bg units

* updated Loop pill test

* Fix bg units
2017-12-05 16:17:21 +02:00
Dragan MaksimovicandSulka Haro 68a44fcf97 Add recommended bolus and eventual BG to Loop pill (#3040)
* Update package.json

* update package.json

* Update loop.js

* test

* add BLE RSSI

* add BLE RSSI

* update RSSI time stamp

* update Loop RSSI reporting

* update Loop RSSI reporting

* show RSSI and pumpRSSI in Loop pill, if available

* update Loop pill RSSI

* Update RSSI in Loop pill

* Add recommended bolus to Loop pill

* Add eventual BG to Loop pill

* Update test for Loop pill with eventual BG

* Update test for Loop pill with eventual BG
2017-11-28 18:39:08 +02:00
Dragan MaksimovicandSulka Haro 56d88347ac Update Loop pill RSSI (#3034)
* Update package.json

* update package.json

* Update loop.js

* test

* add BLE RSSI

* add BLE RSSI

* update RSSI time stamp

* update Loop RSSI reporting

* update Loop RSSI reporting

* show RSSI and pumpRSSI in Loop pill, if available

* update Loop pill RSSI

* Update RSSI in Loop pill
2017-11-09 00:35:17 +02:00
Sulka Haro c99570ff1e Always show RSSI 2017-10-15 23:29:53 +03:00
Sulka Haro 703a30d25c One more Loop RSSI fix 2017-10-15 23:08:20 +03:00
Sulka Haro 42a3a65bf3 Loop RSSI fix 2017-10-15 22:47:32 +03:00
Sulka Haro 3ab41ced00 Display RSSI on Loop pill 2017-10-15 10:21:16 +03:00
Paul Dickens 464e263e0c fix loop notification, remove space 2017-02-04 22:41:23 +11:00
Jason Calabrese efe69e5095 refactoring: move deviceName, timeFormat, formatAgo, timeAt to utils 2016-12-11 23:57:48 -08:00
Jason Calabrese 00b93d572d refactoring, add alexa tests 2016-11-12 12:55:21 -08:00
Jason Calabrese f4919d76b0 fix some codacy warnings 2016-11-06 18:28:34 -08:00
Jason Calabrese a47d8e0cbf Alexa integration from some friends of Nightscout 2016-11-06 00:41:15 -07:00
Milos KozakandGitHub e7d4828822 Merge pull request #2143 from MilosKozak/dev
Translations
2016-10-25 00:35:10 +02:00
MilosKozak b5c09a48c5 fix depending tests 2016-10-24 23:37:38 +02:00
MilosKozak 7712b5efbc timeago translations 2016-10-24 23:22:23 +02:00
Pete Schwamb 5b0aef1cff Round cob 2016-10-23 16:44:25 -05:00
Pete Schwamb a965408111 Mark cob as local variable, to fix error that happens with Loop 1.1 2016-10-23 16:36:53 -05:00
Pete Schwamb 91658d9772 Show last predicted, even if lastLoop doesn't have a prediction 2016-08-23 15:55:16 -05:00
Pete Schwamb 3540adc8e3 split out function with high cyclomatic complexity into separate functions. 2016-08-19 21:47:46 -05:00
Pete Schwamb 6be0e005e9 more codacy changes 2016-08-19 16:40:02 -05:00
Pete Schwamb f2adaa3eb3 Fix codacy warnings 2016-08-19 16:17:15 -05:00
Pete Schwamb ba94795319 Use loop name in pill, and fix variable shadowing 2016-08-15 14:29:42 -05:00
Pete Schwamb 0a981bddc9 Show last temp when subsequent loops have no recommendation/temp 2016-08-14 23:27:13 -05:00
Pete Schwamb 2a33b6058b Add units to temp basal, IOB, and COB 2016-08-13 22:45:00 -05:00
Pete Schwamb e9502fa95a Remove unused code 2016-08-13 22:24:16 -05:00
Pete Schwamb ebae558c76 Show errors, and new symbol for open-looping 2016-08-13 21:31:42 -05:00