These are chat archives for nightscout/ios

11th
Mar 2015
Pete
@someoneAnyone
Mar 11 2015 00:28
I agree with @jwedding. After thinking how cool research kit was I thought about the implications of having someone else's data in my health kit. Might get a bit wonky.
I have some code in my personal repo that connects to the nightscout api, but I'm struggling with it. Any solid documentation on the pebble endpoint?
Jason Calabrese
@jasoncalabrese
Mar 11 2015 00:38
no docs that I know of but the output of /pebble is just some very simple json
Ben West
@bewest
Mar 11 2015 00:39
you can curl mysite.net/pebble
or visit /pebble in browser
there's also an aggregator already proposed and written for research use: http://nightscout.github.io/posts/2015-02-26-towards-aggregating/
Pete
@someoneAnyone
Mar 11 2015 00:40
yeah my api is already getting it, I'm looking at it. just not sure how deal with intercept, slope, scale... filtered ect.
Ben West
@bewest
Mar 11 2015 00:40
IRB is being crafted around that already :-)
Pete
@someoneAnyone
Mar 11 2015 00:41
i've been creeping on the all the web code trying to make sense of everything.
Ben West
@bewest
Mar 11 2015 00:42
:-) some bits of it are convoluted I guess
it was originally quickly little hack and became popular and grew much faster than we've been able to organize things nicely
but it's intended to be one page app
it uses websocket to transmit all data/alarms
it has a REST API to get and post stuff to
and a /pebble endpoint
Pete
@someoneAnyone
Mar 11 2015 00:43
anybody looking documenting the api or standardizing it?
Ben West
@bewest
Mar 11 2015 00:44
when the API is enabled for write mode, it's supposed to be protected by the api-secret header, which is basically like http-bearer
Jason Calabrese
@jasoncalabrese
Mar 11 2015 00:44
intercept, slope, scale... filtered are all for raw data
Pete
@someoneAnyone
Mar 11 2015 00:44
I have code that is able to preform "GET" on just about all the end points
Ben West
@bewest
Mar 11 2015 00:44
what would the standard be?
we'd definitely be interested in that
we've gone over bunch of models
important thing is keeping things up and running and future compatible
Pete
@someoneAnyone
Mar 11 2015 00:45
http://swagger.io has some nice tools for documenting and generating code for various platforms
Ben West
@bewest
Mar 11 2015 00:45
the mqtt work has forced us to revisit lot of assumptions about data model at least
Jason Calabrese
@jasoncalabrese
Mar 11 2015 00:45
I think features are still more important than making everything perfect
Ben West
@bewest
Mar 11 2015 00:45
so we have some nice protobuf models now, that everyone likes
and we've kind of settled on some conventional things that seem to work
Pete
@someoneAnyone
Mar 11 2015 00:45
sure, my only concern is the new clients coming to life that might handle things slightly differently.
Ben West
@bewest
Mar 11 2015 00:45
mix of pavingn the cowpaths and codifying things at same time
Jason Calabrese
@jasoncalabrese
Mar 11 2015 00:46
but cleaning things up in a backwards compatible way is nice
Ben West
@bewest
Mar 11 2015 00:46
yeah, for example the chrome app does things slightly differently
Pete
@someoneAnyone
Mar 11 2015 00:46
the existing endpoints could remain under the v1 endpoint
Ben West
@bewest
Mar 11 2015 00:46
would be nice to come up with design spec
Pete
@someoneAnyone
Mar 11 2015 00:47
not sure what the best way to do it is, but I'd be willing to help brainstorm more, but it sounds like a data structure is already in the works?
Ben West
@bewest
Mar 11 2015 00:47
there are protobuf models in android-uploader and sgvdat
sgvdata
this swagger thing is odd
what is it
have you used it?
looks useful
Pete
@someoneAnyone
Mar 11 2015 00:48
I have just started to use it at work.
there are similar tools for strongloop.
the code gen for various platforms help insure some consistency. you can really push most of the business logic to the server
Ben West
@bewest
Mar 11 2015 01:27
they use swagger
I like this
Alastair Halliday
@iphotostuff
Mar 11 2015 18:04
anyone know if flurry is being used in the iOS app? I'm deeply curious about iPhone version and OS version our users have.