Skip to content

Commit

Permalink
Merge pull request nightscout#23 from timoschlueter/release/1.4.1
Browse files Browse the repository at this point in the history
Release 1.4.1
  • Loading branch information
timoschlueter authored Feb 21, 2022
2 parents ea3ab6c + 4bf5c79 commit 760591d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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:

```
Expand All @@ -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:

```
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nightscout-librelink-up",
"version": "1.4.0",
"version": "1.4.1",
"description": "Script written in JavaScript (Node) that uploads CGM readings from LibreLink Up to Nightscout",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 760591d

Please sign in to comment.