Skip to content

pingfu/cgmsharp

Repository files navigation

cgmsharp

Install dependencies

npm install

Or

npm i github:marcbarry/libre-link-up-api-client
npm i @influxdata/influxdb-client
npm i @babel/runtime
npm i dotenv

Configure environment variables

$ touch .env
NODE_ENV=production

LIBRE_USERNAME=your_libre_username
LIBRE_PASSWORD=your_libre_password
LIBRE_VERSION=4.9.0

PUSHOVER_USER=your_pushover_user
PUSHOVER_TOKEN=your_pushover_token

INFLUX_DB_URL=your_INFLUX_DB_url
INFLUX_DB_TOKEN=your_INFLUX_DB_token
INFLUX_DB_ORG=your_INFLUX_DB_org
INFLUX_DB_BUCKET=your_INFLUX_DB_bucket

Run gcm-monitor

Node.js

$ cd ./src
$ node app.js

Docker Compose

With environment variables

version: '3.8'
services:
  app:
    image: ghcr.io/pingfu/cgmsharp/cgmsharp:latest
    container_name: cgmsharp
    environment:
      - NODE_ENV=production
      - LIBRE_USERNAME=your_libre_username
      - LIBRE_PASSWORD=your_libre_password
      - LIBRE_VERSION=4.9.0
      - PUSHOVER_USER=your_pushover_user
      - PUSHOVER_TOKEN=your_pushover_token
      - INFLUX_DB_URL=your_INFLUX_DB_url
      - INFLUX_DB_TOKEN=your_INFLUX_DB_token
      - INFLUX_DB_ORG=your_INFLUX_DB_org
      - INFLUX_DB_BUCKET=your_INFLUX_DB_bucket

See also