Skip to content

Commit 7ffdfc3

Browse files
Merge pull request #205 from timoschlueter/release/3.0.0
Release 3.0.0
2 parents 34bc408 + 979a450 commit 7ffdfc3

File tree

5 files changed

+123
-13
lines changed

5 files changed

+123
-13
lines changed

.do/deploy.template.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# Digital Ocean App Platform Deployment Template
3+
#
4+
spec:
5+
name: nightscout-librelink-up
6+
region: fra
7+
workers:
8+
- name: nightscout-librelink-up
9+
image:
10+
registry_type: DOCKER_HUB
11+
registry: timoschlueter
12+
repository: nightscout-librelink-up
13+
tag: latest
14+
instance_count: 1
15+
instance_size_slug: apps-s-1vcpu-0.5gb
16+
envs:
17+
- key: LINK_UP_USERNAME
18+
scope: RUN_TIME
19+
type: GENERAL
20+
value: ""
21+
- key: LINK_UP_PASSWORD
22+
scope: RUN_TIME
23+
type: SECRET
24+
value: ""
25+
- key: LINK_UP_CONNECTION
26+
scope: RUN_TIME
27+
type: GENERAL
28+
value: ""
29+
- key: LINK_UP_TIME_INTERVAL
30+
scope: RUN_TIME
31+
type: GENERAL
32+
value: "5"
33+
- key: LINK_UP_REGION
34+
scope: RUN_TIME
35+
type: GENERAL
36+
value: "EU"
37+
- key: LINK_UP_VERSION
38+
scope: RUN_TIME
39+
type: GENERAL
40+
value: "4.16.0"
41+
- key: NIGHTSCOUT_URL
42+
scope: RUN_TIME
43+
type: GENERAL
44+
value: ""
45+
- key: NIGHTSCOUT_API_TOKEN
46+
scope: RUN_TIME
47+
type: SECRET
48+
value: ""
49+
- key: NIGHTSCOUT_DISABLE_HTTPS
50+
scope: RUN_TIME
51+
type: GENERAL
52+
value: "false"
53+
- key: LOG_LEVEL
54+
scope: RUN_TIME
55+
type: GENERAL
56+
value: "info"

README.md

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55
Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout. The upload should
66
work with at least Freestyle Libre 2 (FGM) and Libre 3 CGM sensors.
77

8-
[![Deploy](https://www.herokucdn.com/deploy/button.svg)][heroku]
8+
<a href="https://cloud.digitalocean.com/apps/new?repo=https://github.com/timoschlueter/nightscout-librelink-up/tree/main&refcode=0b12ad5a5fe6" target="_blank">
9+
<img src="https://www.deploytodo.com/do-btn-blue.svg" height="30" alt="Deploy to DigitalOcean" />
10+
</a>
11+
<a href="https://heroku.com/deploy?template=https://github.com/timoschlueter/nightscout-librelink-up" target="_blank">
12+
<img src="https://www.herokucdn.com/deploy/button.svg" height="30" alt="Deploy to Heroku" />
13+
</a>
14+
<a href="https://render.com/deploy?repo=https://github.com/timoschlueter/nightscout-librelink-up" target="_blank">
15+
<img src="https://render.com/images/deploy-to-render-button.svg" height="30" alt="Deploy to Render" />
16+
</a>
917

1018
## Configuration
1119

@@ -31,15 +39,30 @@ The script takes the following environment variables
3139

3240
There are different options for using this script.
3341

34-
### Variant 1: On Heroku
42+
### Variant 1: On Digital Ocean App Platform
3543

36-
- Click on [![Deploy](https://www.herokucdn.com/deploy/button.svg)][heroku]
44+
- Click on <a target="_blank" href="https://cloud.digitalocean.com/apps/new?repo=https://github.com/timoschlueter/nightscout-librelink-up/tree/main&refcode=0b12ad5a5fe6"><img src="https://www.deploytodo.com/do-btn-blue.svg" height="30" alt="Deploy to DigitalOcean" /></a>
45+
- Login to Digital Ocean if not already happened ([Register first if you don't have an account (referral link)](https://www.digitalocean.com/?refcode=0b12ad5a5fe6&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge))
46+
- Provide proper values for the `Environment variables`
47+
- Click `Create app` to deploy the app
48+
49+
### Variant 2: On Heroku
50+
51+
- Click on <a target="_blank" href="https://heroku.com/deploy?template=https://github.com/timoschlueter/nightscout-librelink-up"><img src="https://www.herokucdn.com/deploy/button.svg" height="30" alt="Deploy to Heroku" /></a>
3752
- Login to Heroku if not already happened
3853
- Provide proper values for the `environment variables`
3954
- **Important: make sure that yor Nightscout API token is [hashed with SHA1](#hashing-api-token)**
4055
- Click `Deploy` to deploy the app
4156

42-
### Variant 2: Local
57+
### Variant 3: On Render
58+
59+
- Click on <a href="https://render.com/deploy?repo=https://github.com/timoschlueter/nightscout-librelink-up" target="_blank"><img src="https://render.com/images/deploy-to-render-button.svg" height="30" alt="Deploy to Render" /></a>
60+
- Login to Render if not already happened
61+
- Provide proper values for the `Environment variables`
62+
- **Important: make sure that yor Nightscout API token is [hashed with SHA1](#hashing-api-token)**
63+
- Click `Deploy Background Worker` to deploy the app
64+
65+
### Variant 4: Local
4366

4467
The installation process can be started by running `npm install` in the root directory.
4568

@@ -60,7 +83,7 @@ npm start
6083

6184
Execute the script and check the console output.
6285

63-
### Variant 3: Docker
86+
### Variant 5: Docker
6487

6588
The easiest way to use this is to use the latest docker image:
6689

@@ -75,7 +98,7 @@ docker run -e LINK_UP_USERNAME="[email protected]" \
7598
timoschlueter/nightscout-librelink-up
7699
```
77100

78-
### Variant 4: Docker Compose
101+
### Variant 6: Docker Compose
79102

80103
If you are already using a dockerized Nightscout instance, this image can be easily added to your existing
81104
docker-compose file. In this example, the region is set for germany ("DE"):
@@ -118,9 +141,10 @@ which will print the hash (40 characters in length):
118141

119142
You might also use an online tool to generate your hash, e.g. https://codebeautify.org/sha1-hash-generator
120143

121-
## ToDo
144+
## Sponsoring and affiliate links
145+
If you enjoy using this project and would like to support its ongoing development, I would be truly grateful.
146+
You can help keep things moving forward by becoming a GitHub sponsor or by using one of the referral links for the hosting providers below.
122147

123-
- **Integration into Nightscout**: I have not yet looked into the plugin architecture of Nightscout. Maybe this should
124-
be converted into a plugin.
148+
Your support means a lot — thank you!
125149

126-
[heroku]: https://heroku.com/deploy?template=https://github.com/timoschlueter/nightscout-librelink-up
150+
[![DigitalOcean Referral Badge](https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg)](https://www.digitalocean.com/?refcode=0b12ad5a5fe6&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightscout-librelink-up",
3-
"version": "2.9.0",
3+
"version": "3.0.0",
44
"description": "Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout",
55
"main": "dist/index.js",
66
"scripts": {

render.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# render.yaml
2+
services:
3+
- name: nightscout-librelink-up
4+
type: worker
5+
runtime: image
6+
plan: starter
7+
image:
8+
url: timoschlueter/nightscout-librelink-up:latest
9+
autoDeploy: true
10+
envVars:
11+
- key: LINK_UP_USERNAME
12+
sync: false
13+
- key: LINK_UP_PASSWORD
14+
sync: false
15+
- key: LINK_UP_CONNECTION
16+
value: ""
17+
- key: LINK_UP_TIME_INTERVAL
18+
value: "5"
19+
- key: LINK_UP_REGION
20+
value: "EU"
21+
- key: LINK_UP_VERSION
22+
value: "4.16.0"
23+
- key: NIGHTSCOUT_URL
24+
sync: false
25+
- key: NIGHTSCOUT_API_TOKEN
26+
sync: false
27+
- key: NIGHTSCOUT_DISABLE_HTTPS
28+
value: "false"
29+
- key: LOG_LEVEL
30+
value: "info"

0 commit comments

Comments
 (0)