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 nightscout#23 from timoschlueter/release/1.4.1
Release 1.4.1
- Loading branch information
Showing
3 changed files
with
22 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,21 @@ The script takes the following environment variables | |
|LINK_UP_USERNAME|LibreLink Up Login Email|[email protected]| | ||
|LINK_UP_PASSWORD|LibreLink Up Login Password|mypassword| | ||
|NIGHTSCOUT_URL|Hostname of the Nightscout instance (without https://)|nightscout.yourdomain.com| | ||
|NIGHTSCOUT_API_TOKEN|Nightscout access token|librelinku-123456789abcde| | ||
|NIGHTSCOUT_API_TOKEN|SHA1 Hash of Nightscout access token| | ||
162f14de46149447c3338a8286223de407e3b2fa| | ||
|
||
## Usage | ||
There are different options for using this script. | ||
|
||
### Variant 1: Local | ||
### Variant 1: On Heroku | ||
|
||
- Click [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/timoschlueter/nightscout-librelink-up) | ||
- Login to Heroku if not already happened | ||
- Provide proper values for the `environment variables` | ||
- **Important: make sure that yor Nightscout API token is hashed with SHA1** | ||
- Click `Deploy` to deploy the app | ||
|
||
### Variant 2: Local | ||
|
||
The installation process can be startetd by running `npm install` in the root directory. | ||
|
||
|
@@ -27,14 +36,15 @@ To start the process simply create a bash script with the set environment variab | |
export LINK_UP_USERNAME="[email protected]" | ||
export LINK_UP_PASSWORD="mypassword" | ||
export NIGHTSCOUT_URL="nightscout.yourdomain.com" | ||
export NIGHTSCOUT_API_TOKEN="librelinku-123456789abcde" | ||
# use `shasum` instead of `sha1sum` on Mac | ||
export NIGHTSCOUT_API_TOKEN=$(echo -n "foo-bar-baz" | sha1sum | cut -d ' ' -f 1) | ||
npm start | ||
``` | ||
|
||
Execute the script and check the console output. | ||
|
||
### Variant 2: Docker | ||
### Variant 3: Docker | ||
The easiest way to use this is to use the latest docker image: | ||
|
||
``` | ||
|
@@ -44,7 +54,7 @@ docker run -e LINK_UP_USERNAME="[email protected]" \ | |
-e NIGHTSCOUT_API_TOKEN="librelinku-123456789abcde" timoschlueter/nightscout-librelink-up | ||
``` | ||
|
||
### Variant 3: Docker Compose | ||
### Variant 4: Docker Compose | ||
If you are already using a dockerized Nightscout instance, this image can be easily added to your existing docker-compose file: | ||
|
||
``` | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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