Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pr/5379 #5441

Merged
merged 26 commits into from
Jan 11, 2020
Merged

Pr/5379 #5441

Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5fa81e7
Merge pull request #3 from nightscout/master
inventor96 Oct 16, 2019
41ac93f
Merge pull request #5113 from nightscout/dev
sulkaharo Dec 17, 2019
66a758b
Merge branch 'master' of github.com:inventor96/cgm-remote-monitor
inventor96 Dec 17, 2019
f57ccb8
Release 13.0.1 (#5329)
sulkaharo Dec 18, 2019
7e96d9d
Merge branch 'master' of github.com:inventor96/cgm-remote-monitor
inventor96 Dec 18, 2019
f96da8b
Added handlers and translations for CGM info
inventor96 Dec 28, 2019
e1560d6
Defined translate()
inventor96 Dec 28, 2019
1740c11
Fixed sensor state reference
inventor96 Dec 28, 2019
ee3dffc
Improved wording for tx age response
inventor96 Dec 28, 2019
5979d7b
Improved wording for session duration response
inventor96 Dec 28, 2019
bc29c91
Updated documentation and templates
inventor96 Dec 28, 2019
f8dfa6b
Updated README.md TOC and a reference to it
inventor96 Dec 28, 2019
06a64c5
Added CGM battery info
inventor96 Dec 28, 2019
6d1eecb
Added unit reference to CGM battery levels
inventor96 Dec 28, 2019
24e43ef
Added handlers and translations for CGM info
inventor96 Dec 28, 2019
7dba437
Defined translate()
inventor96 Dec 28, 2019
84d557f
Fixed sensor state reference
inventor96 Dec 28, 2019
d8dc95e
Improved wording for tx age response
inventor96 Dec 28, 2019
e32cd88
Improved wording for session duration response
inventor96 Dec 28, 2019
8f1f6d2
Updated documentation and templates
inventor96 Dec 28, 2019
920edf4
Updated README.md TOC and a reference to it
inventor96 Dec 28, 2019
b8b9ef1
Added CGM battery info
inventor96 Dec 28, 2019
601e86a
Added unit reference to CGM battery levels
inventor96 Dec 28, 2019
3247036
Merge branch 'virt-asst/xdripjs-plugin' of github.com:inventor96/cgm-…
inventor96 Dec 28, 2019
5665c08
Updated API reference in Google Home template
inventor96 Dec 29, 2019
56d9f57
Merge branch 'dev' into pr/5379
sulkaharo Jan 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed sensor state reference
  • Loading branch information
inventor96 committed Dec 28, 2019
commit 1740c1150d5f1ad76f44c67866d7dc6dbc4f48a5
2 changes: 1 addition & 1 deletion lib/plugins/xdripjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ function init(ctx) {
// session start is only valid if in a session
if (sbx.properties.sensorState && sbx.properties.sensorState.lastSessionStart) {
if (sbx.properties.sensorState.lastState != 0x1) {
var duration = moment.duration(moment().diff(moment(sensor.lastSessionStart)));
var duration = moment.duration(moment().diff(moment(sbx.properties.sensorState.lastSessionStart)));
response = translate('virtAsstCGMSessAge', {
params: [
duration.days(),
Expand Down