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

Making chrome-uploader more optionally standalone #19

Open
AdrianLxM opened this issue Dec 5, 2014 · 8 comments
Open

Making chrome-uploader more optionally standalone #19

AdrianLxM opened this issue Dec 5, 2014 · 8 comments

Comments

@AdrianLxM
Copy link

I think there should be an option "offline" that makes the programme not to connect to mongolab automatically. Explicit import/backfill could still be allowed.

I use the chrome-uploader as a standalone programme as it is the only programme for the Dexcom on linux and even though there is another 3rd-party semiofficial programme for Macintosh, I assume there also exist standalone users on this platform.

A) Even if no mongolab is configured in the options, it tries to connect to it. This happens with an invalid URL.

B) In some cases it might be good not to upload data even though mongolab is configured. Those cases might be: Bad/slow/interrupted (mobile) internet connection; importing from different sources before uploading to another.

C) For debugging purposes it might be good to have a Mongolab configured in the options and manually download/import from it once, but not to write anything back.

@altintx
Copy link
Contributor

altintx commented Dec 8, 2014

Absolutely agree. There are lots of assumptions all over that leading to a bad foundation. There's a secondary problem in that theoretically any Mongo database should function but that's assumptions it'll be Mongolab. Any suggestions how to fix? My gut is just fix as we go but I don't know if that's a valid answer.

One other kind of thing is @bewest is sort of interested in writing a better driver, I'm thinking the reports may wind up being NPM packages in their own right, and so the app-app may wind up being nothing but glue. Nothing wrong with that but does that lead to the problem being fixed?

@altintx
Copy link
Contributor

altintx commented Dec 9, 2014

Doing some fairly heavy refactoring in https://github.com/nightscout/chrome-uploader/tree/architecture

@altintx
Copy link
Contributor

altintx commented Dec 11, 2014

Mongo lab is playing more nice. It checks that APIKey is set before doing anything.

No progress on points B or C

@bewest
Copy link
Member

bewest commented Dec 14, 2014

Howdy, I needed a tool to dump and save all records to csv/zip file[s].
I decided to write an npm installable, browserifiable module just to deal with Dexcom protocol.
The input is a bidirectional stream object, output is a "fluent" api to request data from dexcom.

I'm a big fan of re-usable code, you can see how the pieces fit together a bit here:

@altintx
Copy link
Contributor

altintx commented Dec 16, 2014

I'll try incorporating this in a new branch, hopefully later this week. Thanks!

@altintx
Copy link
Contributor

altintx commented Dec 22, 2014

New working branch bensdriver to contain this integration

@bewest
Copy link
Member

bewest commented Jan 13, 2015

Oh wow that's nifty!

A crazy idea might be using https://github.com/bewest/comlink2-uart to get cgm and pump history from Medtronic, api is pretty similar.

@altintx
Copy link
Contributor

altintx commented Jan 13, 2015

That's a good idea for numerous reasons. I'd starting working on getting bensdriver going but am having motivational issues because browserify. Everything else is require.js and a day of fighting with it left me not wanting to fight with it. Would probably go better if everything got rewritten as CJS and requirejs was simply abandoned.

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

3 participants