Skip to content

Instantly share code, notes, and snippets.

View loudestnoise's full-sized avatar

David Cintron loudestnoise

View GitHub Profile
@loudestnoise
loudestnoise / gist:8355939da3918ec356ca2e5bf20f6452
Created August 10, 2020 22:45
Export Tidepool Web data to JSON using API
(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
@loudestnoise
loudestnoise / updatenightscout.md
Last active February 18, 2021 22:58
Update Nightscout instructions on Linux (Ubuntu) VPS with PM2

Update Nightscout instructions on Linux (Ubuntu) VPS with PM2

  • run pm2 delete server to stop Nightscout
  • cd into cgm-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