mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nightscout",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2-dev-20161130",
|
||||
"dependencies": {
|
||||
"colorbrewer": "~1.0.0",
|
||||
"jQuery-Storage-API": "~1.7.2",
|
||||
|
||||
@@ -110,8 +110,6 @@ function configure (app, wares, ctx, env) {
|
||||
direction = ' and rapidly dropping';
|
||||
} else if (records[0].direction === 'DoubleUp') {
|
||||
direction = ' and rapidly rising';
|
||||
} else {
|
||||
direction = records[0].direction;
|
||||
}
|
||||
var status = sbx.scaleMgdl(records[0].sgv) + direction + ' as of ' + moment(records[0].date).from(moment(sbx.time));
|
||||
callback('Current blood glucose', status);
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ function init(ctx) {
|
||||
|
||||
function getIob(sbx) {
|
||||
if (sbx.properties.iob && sbx.properties.iob.iob !== 0) {
|
||||
return sbx.properties.iob.iob + ' units of';
|
||||
return utils.toFixed(sbx.properties.iob.iob) + ' units of';
|
||||
}
|
||||
return 'no';
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Nightscout",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2-dev-20161130",
|
||||
"description": "Nightscout acts as a web-based CGM (Continuous Glucose Montinor) to allow multiple caregivers to remotely view a patients glucose data in realtime.",
|
||||
"license": "AGPL-3.0",
|
||||
"author": "Nightscout Team",
|
||||
|
||||
+4
-4
@@ -25,10 +25,10 @@
|
||||
<meta name="msapplication-config" content="/browserconfig.xml">
|
||||
<meta name="theme-color" content="#333333">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/drawer.css?v=0.9.1" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css?v=0.9.1" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/drawer.css?v=0.9.2-dev-20161130" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css?v=0.9.2-dev-20161130" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/dropdown.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/sgv.css?v=0.9.1" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/sgv.css?v=0.9.2-dev-20161130" />
|
||||
<link rel="stylesheet" type="text/css" href="/bower_components/tipsy-jmalonzo/src/stylesheets/tipsy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.min.css">
|
||||
</head>
|
||||
@@ -590,7 +590,7 @@
|
||||
<audio src="/audio/alarm2.mp3" preload="auto" loop="true" class="urgent alarm2 mp3" type="audio/mp3"></audio>
|
||||
</div>
|
||||
|
||||
<script src="/public/js/bundle.js?v=0.9.1"></script>
|
||||
<script src="/public/js/bundle.js?v=0.9.2-dev-20161130"></script>
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
<script src="/bower_components/jQuery-Storage-API/jquery.storageapi.min.js"></script>
|
||||
<script src="/bower_components/tipsy-jmalonzo/src/javascripts/jquery.tipsy.js"></script>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<meta name="msapplication-config" content="/browserconfig.xml">
|
||||
<meta name="theme-color" content="#333333">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/report.css?v=0.9.1" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/report.css?v=0.9.2-dev-20161130" />
|
||||
<link rel="stylesheet" type="text/css" href="/bower_components/jquery-ui/themes/ui-lightness/jquery-ui.min.css">
|
||||
</head>
|
||||
<body>
|
||||
@@ -116,7 +116,7 @@
|
||||
<hr>
|
||||
<b><span class="translate">Authentication status</span>: </b><span id="authentication_placeholder"></span>
|
||||
|
||||
<script src="/public/js/bundle.js?v=0.9.1"></script>
|
||||
<script src="/public/js/bundle.js?v=0.9.2-dev-20161130"></script>
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
<script src="/bower_components/jQuery-Storage-API/jquery.storageapi.min.js"></script>
|
||||
<script src="/bower_components/tipsy-jmalonzo/src/javascripts/jquery.tipsy.js"></script>
|
||||
@@ -125,7 +125,7 @@
|
||||
<script src="/bower_components/jquery-flot/jquery.flot.time.js"></script>
|
||||
<script src="/bower_components/jquery-flot/jquery.flot.fillbetween.js"></script>
|
||||
<script src="/bower_components/jquery-ui/jquery-ui.min.js"></script>
|
||||
<script src="/report/js/report.js?v=0.9.1"></script>
|
||||
<script src="/report/js/report.js?v=0.9.2-dev-20161130"></script>
|
||||
<script src="/report/js/flotcandle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -223,11 +223,11 @@ describe('IOB', function() {
|
||||
|
||||
iob.alexa.intentHandlers[0].intentHandler(function next(title, response) {
|
||||
title.should.equal('Current IOB');
|
||||
response.should.equal('You have 1.5 units of insulin on board');
|
||||
response.should.equal('You have 1.50 units of insulin on board');
|
||||
|
||||
iob.alexa.rollupHandlers[0].rollupHandler([], sbx, function callback (err, response) {
|
||||
should.not.exist(err);
|
||||
response.results.should.equal('and you have 1.5 units of insulin on board.');
|
||||
response.results.should.equal('and you have 1.50 units of insulin on board.');
|
||||
response.priority.should.equal(2);
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user