- run
pm2 delete server
to stop Nightscout cd
intocgm-remote-monitor
- run
git pull
- run
git checkout 14.2.1
(but substitude 14.2.1 with whatever new release tag from here) - run
rm -r node_modules
- run
npm i
- run
npm run postinstall
- run
env $(cat my.env) pm2 start lib/server/server.js --update-env
This file contains hidden or 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
(user @ host): ~ | |
--> curl -v -X POST -u [email protected] https://api.tidepool.org/auth/login | |
Enter host password for user '[email protected]': | |
* Trying 34.216.109.25... | |
* TCP_NODELAY set | |
* Connected to api.tidepool.org (34.216.109.25) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/cert.pem |
This document describes making a self hosted nightscout instance, with SSL encryption and certificate with Let's Encrypt.
Set up a Digital Ocean or Linode virtual private server (VPS) using Ubuntu LTS. Dave chose 20.04 at the time of writing (2020-07-10)
Update the Ubuntu instance:
sudo apt-get update && sudo apt-get upgrade
This file contains hidden or 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
pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp |
This file contains hidden or 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
nightscout@nightscout:~/cgm-remote-monitor$ sudo apt-get install -y python-software-properties python g++ make git | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
python is already the newest version. | |
git is already the newest version. | |
The following extra packages will be installed: | |
binutils g++-4.8 gcc gcc-4.8 libasan0 libatomic1 libc-dev-bin libc6-dev | |
libgcc-4.8-dev libgomp1 libitm1 libquadmath0 libstdc++-4.8-dev libtsan0 | |
linux-libc-dev manpages-dev |
This file contains hidden or 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
MONGO=mongodb://localhost:27017/nightscout | |
API_SECRET=PUTACRAZYLONGPASSWORDHERE | |
THEME=colors | |
ENABLE=bridge%20iob%20careportal%20basal%20cob%20cage%20sage%20pump | |
DEVICESTATUS_ADVANCED=true | |
PUMP_FIELDS=reservoir%20battery | |
PORT=1337 | |
BRIDGE_USER_NAME=username | |
BRIDGE_PASSWORD=password | |
BRIDGE_MAX_COUNT=3 |
This file contains hidden or 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
(dcintron @ DCintron-MBP): ~/Loop | |
⇢ git merge upstream/master | |
warning: Cannot merge binary files: Carthage/Build/iOS/xDripG5.framework/xDripG5 (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Carthage/Build/iOS/xDripG5.framework/Modules/xDripG5.swiftmodule/x86_64.swiftmodule (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Carthage/Build/iOS/xDripG5.framework/Modules/xDripG5.swiftmodule/i386.swiftmodule (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Carthage/Build/iOS/xDripG5.framework/Modules/xDripG5.swiftmodule/arm64.swiftmodule (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Carthage/Build/iOS/xDripG5.framework/Modules/xDripG5.swiftmodule/arm.swiftmodule (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Carthage/Build/iOS/SwiftCharts.framework/SwiftCharts (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Carthage/Build/iOS/ShareClient.framework/ShareClient (HEAD vs. upstream/master) | |
warning: Cannot merge binary files: Car |
This file contains hidden or 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
(pi @ raspberrypi): ~/skadoosh | |
⇢ openaps gather-pump-data | |
pump://JSON/read_temp_basal/monitor/temp-basal-status.json | |
reporting monitor/temp-basal-status.json | |
pump://JSON/reservoir/monitor/reservoir.json | |
reporting monitor/reservoir.json | |
pump://JSON/read_status/monitor/status.json | |
reporting monitor/status.json | |
pump://JSON/read_battery_status/monitor/battery.json | |
reporting monitor/battery.json |
This file contains hidden or 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
[ | |
{ | |
"monitor/glucose-raw.json": { | |
"count": "20", | |
"device": "Maxim", | |
"use": "iter_glucose", | |
"reporter": "JSON" | |
}, | |
"type": "report", | |
"name": "monitor/glucose-raw.json" |
This file contains hidden or 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
MONGO_CONNECTION=mongodb://user:pass.mlab.com:36648/mydb | |
MONOGO_COLLECTION=entries | |
CUSTOM_TITLE=sitename | |
THEME=colors | |
BRIDGE_USER_NAME=myuser | |
BRIDGE_PASSWORD=mypassword |
NewerOlder