Skip to content

Commit 192c4d0

Browse files
stop using uniq for SGVs since we use buckets (nightscout#2370)
* stop using uniq for SGVs since we use buckets also enables more detailed monitoring when there is data from multiple devices with the same mills * clean up * bump version to 0.9.3-dev-20161224
1 parent 1e81aad commit 192c4d0

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightscout",
3-
"version": "0.9.3-dev-20161219",
3+
"version": "0.9.3-dev-20161224",
44
"dependencies": {
55
"colorbrewer": "~1.0.0",
66
"jQuery-Storage-API": "~1.7.2",

lib/data/dataloader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ function loadEntries (ddata, ctx, callback) {
111111
}
112112
}
113113
});
114+
115+
//stop using uniq for SGVs since we use buckets, also enables more detailed monitoring
116+
ddata.sgvs = sgvs;
117+
114118
ddata.mbgs = uniq(mbgs);
115-
ddata.sgvs = uniq(sgvs);
116119
ddata.cals = uniq(cals);
117120
}
118121
callback();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Nightscout",
3-
"version": "0.9.3-dev-20161219",
3+
"version": "0.9.3-dev-20161224",
44
"description": "Nightscout acts as a web-based CGM (Continuous Glucose Montinor) to allow multiple caregivers to remotely view a patients glucose data in realtime.",
55
"license": "AGPL-3.0",
66
"author": "Nightscout Team",

static/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
<meta name="msapplication-config" content="/browserconfig.xml">
2626
<meta name="theme-color" content="#333333">
2727

28-
<link rel="stylesheet" type="text/css" href="/css/drawer.css?v=0.9.3-dev-20161219" />
29-
<link rel="stylesheet" type="text/css" href="/css/main.css?v=0.9.3-dev-20161219" />
28+
<link rel="stylesheet" type="text/css" href="/css/drawer.css?v=0.9.3-dev-20161224" />
29+
<link rel="stylesheet" type="text/css" href="/css/main.css?v=0.9.3-dev-20161224" />
3030
<link rel="stylesheet" type="text/css" href="/css/dropdown.css" />
31-
<link rel="stylesheet" type="text/css" href="/css/sgv.css?v=0.9.3-dev-20161219" />
31+
<link rel="stylesheet" type="text/css" href="/css/sgv.css?v=0.9.3-dev-20161224" />
3232
<link rel="stylesheet" type="text/css" href="/bower_components/tipsy-jmalonzo/src/stylesheets/tipsy.css" />
3333
<link rel="stylesheet" type="text/css" href="/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.min.css">
3434
</head>
@@ -590,7 +590,7 @@
590590
<audio src="/audio/alarm2.mp3" preload="auto" loop="true" class="urgent alarm2 mp3" type="audio/mp3"></audio>
591591
</div>
592592

593-
<script src="/public/js/bundle.js?v=0.9.3-dev-20161219"></script>
593+
<script src="/public/js/bundle.js?v=0.9.3-dev-20161224"></script>
594594
<script src="/socket.io/socket.io.js"></script>
595595
<script src="/bower_components/jQuery-Storage-API/jquery.storageapi.min.js"></script>
596596
<script src="/bower_components/tipsy-jmalonzo/src/javascripts/jquery.tipsy.js"></script>

static/report/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<meta name="msapplication-config" content="/browserconfig.xml">
2424
<meta name="theme-color" content="#333333">
2525

26-
<link rel="stylesheet" type="text/css" href="/css/report.css?v=0.9.3-dev-20161219" />
26+
<link rel="stylesheet" type="text/css" href="/css/report.css?v=0.9.3-dev-20161224" />
2727
<link rel="stylesheet" type="text/css" href="/bower_components/jquery-ui/themes/ui-lightness/jquery-ui.min.css">
2828
</head>
2929
<body>
@@ -116,7 +116,7 @@ <h1><img src="/images/logo1.png"><span class="translate">Nightscout reporting</s
116116
<hr>
117117
<b><span class="translate">Authentication status</span>: </b><span id="authentication_placeholder"></span>
118118

119-
<script src="/public/js/bundle.js?v=0.9.3-dev-20161219"></script>
119+
<script src="/public/js/bundle.js?v=0.9.3-dev-20161224"></script>
120120
<script src="/socket.io/socket.io.js"></script>
121121
<script src="/bower_components/jQuery-Storage-API/jquery.storageapi.min.js"></script>
122122
<script src="/bower_components/tipsy-jmalonzo/src/javascripts/jquery.tipsy.js"></script>
@@ -125,7 +125,7 @@ <h1><img src="/images/logo1.png"><span class="translate">Nightscout reporting</s
125125
<script src="/bower_components/jquery-flot/jquery.flot.time.js"></script>
126126
<script src="/bower_components/jquery-flot/jquery.flot.fillbetween.js"></script>
127127
<script src="/bower_components/jquery-ui/jquery-ui.min.js"></script>
128-
<script src="/report/js/report.js?v=0.9.3-dev-20161219"></script>
128+
<script src="/report/js/report.js?v=0.9.3-dev-20161224"></script>
129129
<script src="/report/js/flotcandle.js"></script>
130130
</body>
131131
</html>

tests/openaps-storage.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ describe('openaps storage', function () {
6565
should.not.exist(err);
6666
should.exist(results);
6767

68-
console.info('>>>devicestatus results', results);
69-
7068
results.length.should.equal(1);
7169
results[0].openaps.enacted.eventualBG.should.equal(82);
7270

0 commit comments

Comments
 (0)