timoschlueter / nightscout-librelink-up

Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout.
MIT License
192 stars 246 forks source link

Added support for multiple patients. #25

Closed timoschlueter closed 2 years ago

timoschlueter commented 2 years ago

Support for multiple patient connections

The (optional) LINK_UP_CONNECTION environment variable takes a Patient-ID if multiple patients are available. To receive available IDs you can check the output of the console:

2022-02-28T13:39:33.555Z [info]: Logged in to LibreLink Up
2022-02-28T13:39:33.735Z [info]: Found 2 LibreLink Up connections:
2022-02-28T13:39:33.735Z [info]: [1] Timo Schlüter (Patient-ID: XXXXX-XXXXX-XXXXX)
2022-02-28T13:39:33.735Z [info]: [2] Thilo Schröder (Patient-ID: YYYYY-YYYYY-YYYYY)

If there are multiple connections available but the LINK_UP_CONNECTION variable is not set, the first connection will be used (which might not always be the same!).