These are chat archives for nightscout/ios

13th
Aug 2015
Pete
@someoneAnyone
Aug 13 2015 00:52
@jwedding , careportal? haven't investigated it at all.
took a few days off to work on some things offline. what did I miss?
I don't see an endpoint for treatments but there is an html page... I could scrape it, but would prefer json
Pete
@someoneAnyone
Aug 13 2015 01:54
@jasoncalabrese , any chance we can get a new version number for the dev branch? I haven't kept up with the changes to configuration yet and could use an easy to tell if its current build or dev
i guess I could look for content in head
Paul Andrel
@stavlor
Aug 13 2015 01:57
For dev best to go by git hash
Pete
@someoneAnyone
Aug 13 2015 02:01
where is that?
Jason Calabrese
@jasoncalabrese
Aug 13 2015 14:21
Probably still a good idea to bump it, I'll set it to 0.8.0-dev or something
Pete
@someoneAnyone
Aug 13 2015 17:59
@jasoncalabrese , thank you. I don’t ever see anything populated in the head property for my sites.
Jason Calabrese
@jasoncalabrese
Aug 13 2015 18:01
it's getter stripped out, think azure and heroku both strip out the commit id
Pete
@someoneAnyone
Aug 13 2015 18:04
@jasoncalabrese , version would be perfect.
Jason Calabrese
@jasoncalabrese
Aug 13 2015 18:46
@someoneAnyone nightscout/cgm-remote-monitor#785, just waiting the builds/checks to merge it
Paul Andrel
@stavlor
Aug 13 2015 18:53
@jasoncalabrese nice, Wonder if theres an easy way to append the git hash running to the version so like 0.8.0-dev-c1511fe
Jason Calabrese
@jasoncalabrese
Aug 13 2015 18:56
it would be an extra commit, maybe automate something like that when a PR is merged? Wonder if there's a common way to do that
Ben West
@bewest
Aug 13 2015 18:57
display only
Paul Andrel
@stavlor
Aug 13 2015 18:57
suppose we could do something intresting with a potential post-recieve hook
Ben West
@bewest
Aug 13 2015 18:57
just display only in UI
I wouldn't change the version string itself, but append the hash when displayed
Paul Andrel
@stavlor
Aug 13 2015 18:59
would be nice to also get the git hash as a potential var in status.json
Ben West
@bewest
Aug 13 2015 18:59
it is
Paul Andrel
@stavlor
Aug 13 2015 18:59
for helping people troubleshoot or something
it is?
Ben West
@bewest
Aug 13 2015 18:59
that's how UI gets the version info
theres'a jsonp status.js that runs as normal script
it's same as status.json, but should include the git hash
Jason Calabrese
@jasoncalabrese
Aug 13 2015 19:06
it gets filtered out by the deployment on heroku and azure
Paul Andrel
@stavlor
Aug 13 2015 19:07
ah that would probably why i don't see it
Jason Calabrese
@jasoncalabrese
Aug 13 2015 19:09
using version as a cache buster is dirty, would like to get rid of that
Ben West
@bewest
Aug 13 2015 19:09
our azure deploy injects it back in
I'd like to see it properly injected back in everywher
there are some security groups that don't like leaking version info because it tells your attackers how to attack you
but fundamentally, the app needs to know about itself
fwiw, dokku-alt and dokku now inject the git hash into an environment variable
azure does the same thing, but I guess only during build phase
Jason Calabrese
@jasoncalabrese
Aug 13 2015 19:35
gave up waiting on Codacy, @someoneAnyone that version bump is merged
Pete
@someoneAnyone
Aug 13 2015 19:58
@jasoncalabrese ,great thank you!
Jason Calabrese
@jasoncalabrese
Aug 13 2015 20:04
I still want to add the /summary endpoint for this release
would be nice to get some docs for the api in place too, @bewest started using swagger, don't think it needs much work to get wrapped up
kenstack
@kenstack
Aug 13 2015 20:07
Is there a limit on the number of data pouts you can get from the API/v1 end point ? I seem to only get up to 1000 - maybe less
Ben West
@bewest
Aug 13 2015 20:07
that endpoint takes search parameters so you can page through results
at one point I was able to get 10k+
then it dropped to 5k
then to ~1k
Jason Calabrese
@jasoncalabrese
Aug 13 2015 20:08
there may have been a limit at 1 point, so many changes to the api, I don't really know exactly whats there now
Ben West
@bewest
Aug 13 2015 20:08
not clear if this is to due to the ISP/hosting limiting things, or if process is crashing due to data overload or what
there will be a natural upper limit, but it does seem that it should be a fairly high limit
10k would be nice to get whole month
Jason Calabrese
@jasoncalabrese
Aug 13 2015 20:09
paging isn't so bad
Ben West
@bewest
Aug 13 2015 20:09
you can add the parameters...
is your dateString in ISO8601?
if it is you can page really easily...
?find[dateString][$gte]=2015-02-00&find[dateString][$lte]=2015-02-08 this would fetch the first week of february...
but your dateString must be in iso format for that to work
I think all the released uploaders do that except xdrip and older than dreamsicle
and chrome :-(
Jason Calabrese
@jasoncalabrese
Aug 13 2015 20:16
wonder if we should fix the date for rest
would help in some cases
kenstack
@kenstack
Aug 13 2015 20:46
thanks I can search using epoch so that might be easier - would be good to grab 30-60 days at some point. I do it direct to mongolab in Dash - works pretty well - occasionally it craps out and you have to send the request again