You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Disables the HTTPS requirement for Nightscout URLs
40
+
#NIGHTSCOUT_DISABLE_HTTPS=true
41
+
42
+
# Sets the device name used in Nightscout
43
+
#NIGHTSCOUT_DEVICE_NAME="nightscout-librelink-up"
44
+
45
+
###################
46
+
# Script config
47
+
###################
48
+
49
+
# The setting of verbosity for logging, should be one of info or debug
50
+
#LOG_LEVEL="info"
51
+
52
+
# Disables the scheduler and runs the script just once
53
+
#SINGLE_SHOT=true
54
+
55
+
# Upload all available data from LibreLink Up instead of just data newer than last upload.
56
+
# LibreLinkUp sometimes lags behind in reporting recent historical data, so it is advised to run the script with ALL_DATA set to true at least once a day.
| LINK_UP_USERNAME | LibreLink Up Login Email |mail@example.com| X |
25
25
| LINK_UP_PASSWORD | LibreLink Up Login Password | mypassword | X |
26
26
| LINK_UP_CONNECTION | LibreLink Up Patient-ID. Can be received from the console output if multiple connections are available. | 123456abc-abcd-efgh-7891def ||
27
-
| LINK_UP_TIME_INTERVAL | The time interval of requesting values from libre link up| 5 ||
27
+
| LINK_UP_TIME_INTERVAL | The time interval (in minutes) of requesting values from libre link up.| 5 ||
28
28
| 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 ||
29
-
| 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 ||
29
+
| 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 ||
30
30
| NIGHTSCOUT_URL | Hostname of the Nightscout instance (without https://) | nightscout.yourdomain.com | X |
31
31
| NIGHTSCOUT_API_TOKEN | SHA1 Hash of Nightscout access token | 162f14de46149447c3338a8286223de407e3b2fa | X |
32
32
| NIGHTSCOUT_DISABLE_HTTPS | Disables the HTTPS requirement for Nightscout URLs | true ||
@@ -35,6 +35,8 @@ The script takes the following environment variables
35
35
| SINGLE_SHOT | Disables the scheduler and runs the script just once | true ||
36
36
| ALL_DATA | Upload all available data from LibreLink Up instead of just data newer than last upload. LibreLinkUp sometimes lags behind in reporting recent historical data, so it is advised to run the script with ALL_DATA set to true at least once a day. | true ||
37
37
38
+
These variables can be set in your environment or in a `.env` file in the root directory of the project - see `.env.example` for an example (copy this file to `.env` and adjust the values accordingly).
39
+
38
40
## Usage
39
41
40
42
There are different options for using this script.
@@ -66,7 +68,13 @@ There are different options for using this script.
66
68
67
69
The installation process can be started by running `npm install` in the root directory.
68
70
69
-
To start the process simply create a bash script with the set environment variables (`start.sh`):
71
+
To start the script, either:
72
+
73
+
1. Copy `.env.example` file to `.env` and adjust the values accordingly, then run `npm start`
74
+
75
+
or
76
+
77
+
2. Create a bash script with the set environment variables (`start.sh`), then execute the script and check the console output:
70
78
71
79
```shell
72
80
#!/bin/bash
@@ -81,8 +89,6 @@ export LOG_LEVEL="info"
81
89
npm start
82
90
```
83
91
84
-
Execute the script and check the console output.
85
-
86
92
### Variant 5: Docker
87
93
88
94
The easiest way to use this is to use the latest docker image:
0 commit comments