Skip to content

Commit 88da0d4

Browse files
Merge pull request #202 from timoschlueter/feature/update-llu-version-and-environment-variable
Feature: Updated LLU version to 4.16.0
2 parents 9e1689c + 608d05b commit 88da0d4

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The script takes the following environment variables
1818
| LINK_UP_CONNECTION | LibreLink Up Patient-ID. Can be received from the console output if multiple connections are available. | 123456abc-abcd-efgh-7891def | |
1919
| LINK_UP_TIME_INTERVAL | The time interval of requesting values from libre link up | 5 | |
2020
| LINK_UP_REGION | Your region. Used to determine the correct LibreLinkUp service (Possible values: AE, AP, AU, CA, DE, EU, EU2, FR, JP, US, LA, RU, CN) | EU | |
21+
| LINK_UP_VERSION | LibreLink Up App Version. This may need to be updated if you are using a newer version of the LibreLink Up App | 4.16.0 | |
2122
| NIGHTSCOUT_URL | Hostname of the Nightscout instance (without https://) | nightscout.yourdomain.com | X |
2223
| NIGHTSCOUT_API_TOKEN | SHA1 Hash of Nightscout access token | 162f14de46149447c3338a8286223de407e3b2fa | X |
2324
| NIGHTSCOUT_DISABLE_HTTPS | Disables the HTTPS requirement for Nightscout URLs | true | |

app.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
"value": "EU",
3838
"required": false
3939
},
40+
"LINK_UP_VERSION": {
41+
"description": "LibreLink Up App Version. This may need to be updated if you are using a newer version of the LibreLink Up App",
42+
"value": "4.16.0",
43+
"required": false
44+
},
4045
"NIGHTSCOUT_URL": {
4146
"description": "Your Nightscout URL",
4247
"value": "",

src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ function readConfig()
5555
nightscoutBaseUrl: url.toString(),
5656
linkUpUsername: process.env.LINK_UP_USERNAME as string,
5757
linkUpPassword: process.env.LINK_UP_PASSWORD as string,
58+
linkUpVersion: process.env.LINK_UP_VERSION || "4.16.0",
5859

5960
logLevel: process.env.LOG_LEVEL || 'info',
6061
singleShot: process.env.SINGLE_SHOT === 'true',
61-
allData: process.env.ALL_DATA === 'true',
62+
allData: process.env.ALL_DATA === 'true',
6263

6364
nightscoutApiV3: process.env.NIGHTSCOUT_API_V3 === 'true',
6465
nightscoutDisableHttps: process.env.NIGHTSCOUT_DISABLE_HTTPS === 'true',

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const USER_AGENT = "Mozilla/5.0 (iPhone; CPU OS 17_4.1 like Mac OS X) AppleWebKi
8282
/**
8383
* LibreLink Up API Settings (Don't change this unless you know what you are doing)
8484
*/
85-
const LIBRE_LINK_UP_VERSION = "4.12.0";
85+
const LIBRE_LINK_UP_VERSION = config.linkUpVersion;
8686
const LIBRE_LINK_UP_PRODUCT = "llu.ios";
8787
const LIBRE_LINK_UP_URL = LLU_API_ENDPOINTS[config.linkUpRegion];
8888

0 commit comments

Comments
 (0)