These are chat archives for nightscout/ios

17th
Jul 2015
Pete
@someoneAnyone
Jul 17 2015 14:51
Update to my beta app "Nightscouter" in the works... here is a preview.
iOS Simulator Screen Shot Jul 17, 2015, 10.50.50 AM.png
jwedding
@jwedding
Jul 17 2015 15:11
That looks great. We do need to talk about your icon, or getting it moved into the common Nightscout Repo.
Scott Leibrand
@scottleibrand
Jul 17 2015 15:20
I wasn't able to get it working with my Nightscout site: it doesn't seem to like port numbers in the hostname portion of the URL.
jwedding
@jwedding
Jul 17 2015 15:21
It balked at my 8.2 phone...updating, and of COURSE yesterday her sensor came off at the pool, so who knows when I'll have live data. Gee, if only we had a test database that was always running....
Jason Calabrese
@jasoncalabrese
Jul 17 2015 15:21
I don't try apps like this until the code is open
jwedding
@jwedding
Jul 17 2015 15:23
I'm sure Pete will open it up. That's part of the effort here. Ideally, we'd find a way to merge this with John's simple app that has the Sleep override and with Alistair's Apple Watch bits and simply have Nighscout for iOS.
Jason Calabrese
@jasoncalabrese
Jul 17 2015 15:26
I just don't understand why some apps stay closed source till they are ready
jwedding
@jwedding
Jul 17 2015 15:27
I'm not sure anyone asked before now.
He's already said he's going to port it up, perhaps we can set that up today?
Jason Calabrese
@jasoncalabrese
Jul 17 2015 15:28
I'm not saying it should go directly to a ns repo
could be in a personal repo to get it started build some momentum, see if others want to get involved, etc
jwedding
@jwedding
Jul 17 2015 15:31
We'll get it sorted soon enough.
Pete
@someoneAnyone
Jul 17 2015 15:34
It more of the fact that I've never done this before
so I'm learning as I go
I fully intend to open it up.
I was working with John's repo a while back but he sort of handed it off to me and Alastair a few months ago
so i wasn't sure where to take it.
I'll look into allowing port numbers... I'm using a pretty restrictive reg-expression for url entry... I need to make it more flexible
and yes... minimum at the moment is 8.3 I might be able to take it lower... not sure
jwedding
@jwedding
Jul 17 2015 15:37
Installing 8.4 now. No worries. Just one of those things.
I'd be curious if we could get it back to 8.X, but not the end of the world.
Pete
@someoneAnyone
Jul 17 2015 15:38
i have a sample site up at nscgm.herokuapp.com
jwedding
@jwedding
Jul 17 2015 15:38
So where is that coming from?
Pete
@someoneAnyone
Jul 17 2015 15:38
i was targeting 8.3 because of watch
jwedding
@jwedding
Jul 17 2015 15:38
That's actually at least as interesting to me.
Pete
@someoneAnyone
Jul 17 2015 15:38
some anonymous cgm readings...
jwedding
@jwedding
Jul 17 2015 15:38
But they're real?
Pete
@someoneAnyone
Jul 17 2015 15:39
yes
for now
delayed
jwedding
@jwedding
Jul 17 2015 15:39
Damn. I've been looking at putting together a simulated database that anyone could test against.
Pete
@someoneAnyone
Jul 17 2015 15:40
i know me too... i did some local iOS side faking for a while but it was getting too out of hand
jwedding
@jwedding
Jul 17 2015 15:40
Was hoping you'd already done it. :P
jwedding
@jwedding
Jul 17 2015 15:49
Just so I understand, your monitor is based on the iOS stuff John had already done?
Or did you go from scratch?
I'm trying to figure out how we organize the github piece if we want to perhaps take it and push it forward with the NS Apple credentials, etc.
Pete
@someoneAnyone
Jul 17 2015 15:49
scratch
jwedding
@jwedding
Jul 17 2015 15:50
OK.
Pete
@someoneAnyone
Jul 17 2015 15:50
are there any good steps on getting a local git up to github on a personal repo?
i want to make sure my personal dev credentials aren't out there.
jwedding
@jwedding
Jul 17 2015 15:51
Oh, that's a good question for Ben as well.
Hey, @bewest, a little GitHub lesson for me, please? If we decided to take Pete's iOS client and essentially replace John's stuff, how would/should we do that in GitHub?
Or Jason, or Scott, if you guys have thoughts, I'd appreciate the insight.
jwedding
@jwedding
Jul 17 2015 15:57
Just got it loaded. This is pretty.
Multiple site support is nice.
Oh, it just looks like multiple site support.
and now I've killed it.
Pete
@someoneAnyone
Jul 17 2015 15:59
it does
hopefully, I'll get a crash report...
I have more fixes in the works... probably have a new build later today
bummer...
jwedding
@jwedding
Jul 17 2015 16:01
Yeah, I had your test data up, went to add a new site using the +. Entered in my site (with admittedly, no current data in it,) and it crashed out.
Now I can't even launch. I'll delete it and come back. I really like the idea of a native app.
Pete
@someoneAnyone
Jul 17 2015 16:02
interesting... can you send the crashreport?
jwedding
@jwedding
Jul 17 2015 16:04
Doesn't give me an option?
reinstalling. Hold.
Jason Calabrese
@jasoncalabrese
Jul 17 2015 16:04
might be too basic, but the could be a good place to start: https://help.github.com/categories/bootcamp/
you'd want to make sure that any keys, etc aren't in the repo
jwedding
@jwedding
Jul 17 2015 16:05
wow, REALLY doesn't like my website.
interesting.
Pete
@someoneAnyone
Jul 17 2015 16:05
but the other loads?
jwedding
@jwedding
Jul 17 2015 16:06
it did.
Pete
@someoneAnyone
Jul 17 2015 16:06
strange.
jwedding
@jwedding
Jul 17 2015 16:06
try weddingscout.azurewebsites.net
Pete
@someoneAnyone
Jul 17 2015 16:07
will do.
it didn't crash on my simulator...
but not data
jwedding
@jwedding
Jul 17 2015 16:13
Strange. On my phone it's killing the app to the point where I have to uninstall.
Pete
@someoneAnyone
Jul 17 2015 16:15
i have some better protections in playpen at the moment. I'll post those soon, but there is something strange happening with dates on your site (in my code)...
Jason Calabrese
@jasoncalabrese
Jul 17 2015 16:16
what dates are you using?
dateString is only for debug
trips up lots of people, the uploaders don't populate it consistently
Pete
@someoneAnyone
Jul 17 2015 16:17
and datetime for pebble enpoint
I use date for entries
i convert them from milliseconds
jwedding
@jwedding
Jul 17 2015 16:17
My site is a weird mix of direct Android uploader and Share bridge.
Pete
@someoneAnyone
Jul 17 2015 16:17
to seconds...
I've tested my site on both heroku and azure but i don't have a share so I might be missing something
Jason Calabrese
@jasoncalabrese
Jul 17 2015 16:18
datetime from /pebble should be ok
Pete
@someoneAnyone
Jul 17 2015 16:20
is your uploader still uploading but without data?
jwedding
@jwedding
Jul 17 2015 16:22
I don't think so.
Nothing is hooked up right now.
Pete
@someoneAnyone
Jul 17 2015 16:23
ok. i'll track it down...
jwedding
@jwedding
Jul 17 2015 16:26
I'll get her plugged in shortly. I hate when we're offline...
Pete
@someoneAnyone
Jul 17 2015 16:30
i found the bug... I was assuming raw data in the pebble enbpoint
endpoint
Jason Calabrese
@jasoncalabrese
Jul 17 2015 16:30
lots of optional info in there
iob too
Pete
@someoneAnyone
Jul 17 2015 16:31
saw that too... don't have any handlers for that yet
given some of the types I've seen wouldn't it make sense to have a cal object and sgv object in the pebble endpoint?
anyways... break time.. .off to lunch
Jason Calabrese
@jasoncalabrese
Jul 17 2015 16:33
you get the cal if it's enabled and using an uploader that can get raw
Pete
@someoneAnyone
Jul 17 2015 16:33
"filtered": 301056,
"unfiltered": 291264,
"noise": 1 are being lumped with bG though
Jason Calabrese
@jasoncalabrese
Jul 17 2015 16:34
yeah, /pebble endpoint is mess
really need a new endpoint
almost impossible to change /pebble without breaking things
Pete
@someoneAnyone
Jul 17 2015 17:14
i thought it would be a nice fit if the entries endpoint had the info pebble does... like battery and bgdeltas
Jason Calabrese
@jasoncalabrese
Jul 17 2015 17:47
what I'd like is a new /summary endpoint
entries is more for single values, with many of the apps people are looking at building we need a snapshot of the current state
with all the information
and lots more is being added with the plugins and notifications that are getting added to dev
also thinking that long polling would be a great fit here, so instead of trying to time the polling you'd make the request, the server would wait up to a minute for new data, if there is new data you'd get if not, you'd make the next request
with that updates would be instant
Pete
@someoneAnyone
Jul 17 2015 18:11
Jason Calabrese
@jasoncalabrese
Jul 17 2015 18:12
:+1:
Pete
@someoneAnyone
Jul 17 2015 18:12
and new betas are out...