Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get Glooko connect to work #44

Open
fclingen opened this issue Dec 5, 2024 · 0 comments
Open

Can't get Glooko connect to work #44

fclingen opened this issue Dec 5, 2024 · 0 comments

Comments

@fclingen
Copy link

fclingen commented Dec 5, 2024

I'm a newbie, I'm undoubtedly doing something wrong.

I've had cgm-remote-monitor running for years on Heroku, taking data from the REST API in Xdrip+. I'm trying to change it to take connect data from Glooko because I have a Pod 5 doing the looping for me and the Pod 5 controller connects to Glooko out of the box.

The master branch of cgm-remote-monitor appears to have nightscout-connect in it's plugins? I can run nightscout-connect from the master branch (I just updated my repo, but it has been running for years otherwise). I've set my config variables as given in the README here.

When I run:

```nightscout-connect forever --source "glooko"`

I get:

STARTING {
  _: [ 'forever' ],
  source: 'glooko',
  hint: 'glooko',
  glookoServer: 'api.glooko.com',
  glookoEmail: '[email protected]',
  glookoTimezoneOffset: -5,
  glookoPassword: 'myfakepassword',
  '$0': 'nightscout-connect'
}
CONFIGURED OUTPUT { name: 'nightscout', url: undefined, apiSecret: undefined }
CONFIGURED INPUT { kind: 'glooko', url: undefined, apiSecret: undefined }
SELECTING OUTPUT { name: 'nightscout', url: undefined, apiSecret: undefined } nightscout [Function: nightscoutRestAPI]
SETTING UP nightscoutRestAPI { name: 'nightscout', url: undefined, apiSecret: undefined }

... a bunch of raw javascript-looking code ...


TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:387:5)
    at validateString (node:internal/validators:162:11)
    at Url.parse (node:url:168:3)
    at Object.urlParse [as parse] (node:url:155:13)
    at nightscoutRestAPI (/app/node_modules/nightscout-connect/lib/outputs/nightscout.js:15:22)
    at sidecarLoop (/app/node_modules/nightscout-connect/commands/forever.js:14:33)
    at Object.main [as handler] (/app/node_modules/nightscout-connect/commands/forever.js:45:16)
    at /app/node_modules/nightscout-connect/node_modules/yargs/build/index.cjs:1:8993
    at j (/app/node_modules/nightscout-connect/node_modules/yargs/build/index.cjs:1:4956)
    at _.handleValidationAndGetResult (/app/node_modules/nightscout-connect/node_modules/yargs/build/index.cjs:1:8962) {
  code: 'ERR_INVALID_ARG_TYPE'
}

If I try to fork out of nightscout/nightscout-connect and deploy, my app fails to run, and I don't understand the errors it is giving me in the logs. It doesn't look like anything. Since the error looks like some URL is missing I've tried to manually set CONNECT_GLOOKO_SERVER to its default but that doesn't appear to make any difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant