Skip to content

Commit

Permalink
Merge pull request #55 from timoschlueter/bugfix/german-api-endpoint
Browse files Browse the repository at this point in the history
Bugfix for German users
  • Loading branch information
timoschlueter authored Jul 14, 2022
2 parents 4647bf0 + c95b501 commit e33a0cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ work with at least Freestyle Libre 2 (FGM) and Libre 3 CGM sensors.

The script takes the following environment variables

| Variable | Description | Example | Required |
|-----------------------|--------------------------------------------------------------------------------------------------------------|------------------------------------------|--------|
| LINK_UP_USERNAME | LibreLink Up Login Email | [email protected] | X |
| LINK_UP_PASSWORD | LibreLink Up Login Password | mypassword | X |
| LINK_UP_CONNECTION | LibreLink Up Patient-ID. Can be received from the console output if multiple connections are available. | 123456abc-abcd-efgh-7891def | |
| LINK_UP_TIME_INTERVAL | The time interval of requesting values from libre link up | 5 | |
| LINK_UP_REGION | Your region. Used to determine the correct LibreLinkUp service (Possible values: US, EU, FR, JP, AP, AU, AE) | EU | |
| NIGHTSCOUT_URL | Hostname of the Nightscout instance (without https://) | nightscout.yourdomain.com | X |
| NIGHTSCOUT_API_TOKEN | SHA1 Hash of Nightscout access token | 162f14de46149447c3338a8286223de407e3b2fa | X |
| LOG_LEVEL | The setting of verbosity for logging, should be one of info or debug | info | X |
| Variable | Description | Example | Required |
|-----------------------|------------------------------------------------------------------------------------------------------------------|------------------------------------------|--------|
| LINK_UP_USERNAME | LibreLink Up Login Email | [email protected] | X |
| LINK_UP_PASSWORD | LibreLink Up Login Password | mypassword | X |
| LINK_UP_CONNECTION | LibreLink Up Patient-ID. Can be received from the console output if multiple connections are available. | 123456abc-abcd-efgh-7891def | |
| LINK_UP_TIME_INTERVAL | The time interval of requesting values from libre link up | 5 | |
| LINK_UP_REGION | Your region. Used to determine the correct LibreLinkUp service (Possible values: US, EU, DE, FR, JP, AP, AU, AE) | EU | |
| NIGHTSCOUT_URL | Hostname of the Nightscout instance (without https://) | nightscout.yourdomain.com | X |
| NIGHTSCOUT_API_TOKEN | SHA1 Hash of Nightscout access token | 162f14de46149447c3338a8286223de407e3b2fa | X |
| LOG_LEVEL | The setting of verbosity for logging, should be one of info or debug | info | X |

## Usage

Expand Down Expand Up @@ -70,7 +70,7 @@ docker run -e LINK_UP_USERNAME="[email protected]" \
### 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:
docker-compose file. In this example, the region is set for germany ("DE"):

```yaml
version: '3.7'
Expand All @@ -83,6 +83,7 @@ services:
LINK_UP_USERNAME: "[email protected]"
LINK_UP_PASSWORD: "mypassword"
LINK_UP_TIME_INTERVAL: "5"
LINK_UP_REGION: "DE"
NIGHTSCOUT_URL: "nightscout.yourdomain.com"
NIGHTSCOUT_API_TOKEN: "librelinku-123456789abcde"
LOG_LEVEL: "info"
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"required": true
},
"LINK_UP_REGION": {
"description": "Your region. Used to determine the correct LibreLinkUp service (Possible values: US, EU, FR, JP, AP, AU, AE)",
"description": "Your region. Used to determine the correct LibreLinkUp service (Possible values: US, EU, DE, FR, JP, AP, AU, AE)",
"value": "EU",
"required": false
},
Expand Down
1 change: 1 addition & 0 deletions utils/llu-api-endpoints.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const LLU_API_ENDPOINTS = {
US: "api-us.libreview.io",
EU: "api-eu.libreview.io",
DE: "api-de.libreview.io",
FR: "api-fr.libreview.io",
JP: "api-jp.libreview.io",
AP: "api-ap.libreview.io",
Expand Down

0 comments on commit e33a0cb

Please sign in to comment.