forked from nightscout/cgm-remote-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from nightscout/dev
Update Dev
- Loading branch information
Showing
117 changed files
with
10,814 additions
and
4,690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
# "date": "1413782506964" | ||
|
||
curl -H "Content-Type: application/json" -H "api-secret: $API_SECRET" -XPOST 'http://localhost:1337/api/v1/entries/' -d '{ | ||
"sgv": 100, | ||
"type": "sgv", | ||
"direction": "Flat", | ||
"date": "1415950912800" | ||
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,20 @@ | ||
(function () { | ||
|
||
window.Nightscout = window.Nightscout || {}; | ||
|
||
// Default features | ||
|
||
window.Nightscout = { | ||
units: require('../lib/units')(), | ||
profile: require('../lib/profilefunctions')() | ||
}; | ||
|
||
// Plugins | ||
|
||
var inherits = require("inherits"); | ||
var PluginBase = require('../lib/pluginbase'); // Define any shared functionality in this class | ||
|
||
window.NightscoutPlugins = window.NightscoutPlugins || {}; | ||
|
||
window.NightscoutPlugins = { | ||
iob: require('../lib/iob')(PluginBase), | ||
cob: require('../lib/cob')(PluginBase), | ||
bwp: require('../lib/boluswizardpreview')(PluginBase), | ||
cage: require('../lib/cannulaage')(PluginBase) | ||
}; | ||
// class inheritance to the plugins from the base + map functions over | ||
|
||
for (var p in window.NightscoutPlugins) { | ||
var plugin = window.NightscoutPlugins[p]; | ||
inherits(plugin, PluginBase); | ||
plugin.name = p; | ||
|
||
for (var n in PluginBase.prototype) { | ||
var item = PluginBase.prototype[n]; | ||
plugin[n] = item; | ||
} | ||
} | ||
|
||
console.info("Nightscout bundle ready", window.Nightscout); | ||
window._ = require('lodash'); | ||
window.$ = window.jQuery = require('jquery'); | ||
window.moment = require('moment-timezone'); | ||
window.Nightscout = window.Nightscout || {}; | ||
|
||
window.Nightscout = { | ||
units: require('../lib/units')(), | ||
utils: require('../lib/utils')(), | ||
profile: require('../lib/profilefunctions')(), | ||
language: require('../lib/language')(), | ||
plugins: require('../lib/plugins/')().registerClientDefaults(), | ||
sandbox: require('../lib/sandbox')() | ||
}; | ||
|
||
console.info('Nightscout bundle ready', window.Nightscout); | ||
|
||
})(); | ||
|
Oops, something went wrong.