These are chat archives for nightscout/ios

18th
Nov 2015
Pete Schwamb
@ps2
Nov 18 2015 00:13
Have you tried myBG? It's in the App Store and reads from NS
Scott Leibrand
@scottleibrand
Nov 18 2015 00:14
I haven't really used any of them much, because I need openaps-specific stuff
haven't gotten to the point of actually figuring out which would be easiest to extend
right now I have a custom Cards for Pebble watch app/face that shows openaps data
Eric Martin
@ericmarkmartin
Nov 18 2015 01:08
Does myBG have a complication?
Pete Schwamb
@ps2
Nov 18 2015 01:27
No, not yet
Pete
@someoneAnyone
Nov 18 2015 01:49
I
N
Need help with nightscouter. I recently started a branch working towards watchOS 2 support and hopefully a complication.
I hopefully checking in some code for watch tonight.
FYI. I'm typing on my phone... And badly at that.
Eric Martin
@ericmarkmartin
Nov 18 2015 03:22
I just changed all of the NSURLConnections to NSURLSessions, do you want me to throw up a PR?
Pete
@someoneAnyone
Nov 18 2015 03:34
@ericmarkmartin, I’m already using NSURLSessionDownloadTask
i can take a look, where is the impact?
Eric Martin
@ericmarkmartin
Nov 18 2015 03:36
@someoneAnyone I just made a PR
Pete
@someoneAnyone
Nov 18 2015 03:38
Ok, I’ll look, but I’m not seeing it o github yet
Eric Martin
@ericmarkmartin
Nov 18 2015 03:38
@someoneAnyone here you go: nightscout/nightscout-apple-watch#3
Pete
@someoneAnyone
Nov 18 2015 03:38
oh, that’s not my code
sorry.
Eric Martin
@ericmarkmartin
Nov 18 2015 03:39
Ah
Am I in the wrong chatroom?
Pete
@someoneAnyone
Nov 18 2015 03:39
i don’t control that repo
i was confused for a moment there…
Eric Martin
@ericmarkmartin
Nov 18 2015 03:42
Doesn't nightscout have its own native iOS app?
Pete
@someoneAnyone
Nov 18 2015 03:43
@ericmarkmartin , not really. Someone wrote an iOS watch app, someone ported a webview, I’m working on a true native app that uses the rest services.
apple-watch app that’s your mentioned before is a watchos 1 app.
are you an iOS dev?
Eric Martin
@ericmarkmartin
Nov 18 2015 03:46
Yeah.
I haven't done it for a little bit, but I'd like to get back into it especially with all the new watch stuff
Pete
@someoneAnyone
Nov 18 2015 03:47
Sweet. Could really use some help
Eric Martin
@ericmarkmartin
Nov 18 2015 03:47
What can I do?
Pete
@someoneAnyone
Nov 18 2015 03:47
Not sure, its been crickets for a few weeks (just me toiling) but in the last two days two people have stepped up..
Eric Martin
@ericmarkmartin
Nov 18 2015 03:48
Now 3?
Pete
@someoneAnyone
Nov 18 2015 03:48
3 have shown interest… not real work yet.
I’m trying to get the watch working, but the code base has grown a lot and I’m a designer by trade so its moving slowly.
I would love to hae push notificaitons up and running soon
Eric Martin
@ericmarkmartin
Nov 18 2015 03:49
Do you have a service for them yet?
Pete
@someoneAnyone
Nov 18 2015 03:49
I was going to use Google push
Eric Martin
@ericmarkmartin
Nov 18 2015 03:49
Ok. Where do you stand as of yet on the watch?
Pete
@someoneAnyone
Nov 18 2015 03:49
but we could connect back withe NS foundation and connect to their hosted solution
i have a branch on github sort of working
Eric Martin
@ericmarkmartin
Nov 18 2015 03:50
ok
I presume its "wip-apple-watch-support"?
Pete
@someoneAnyone
Nov 18 2015 03:52
yup
if you’d like I can add you to the current test flight build, just DM me your email address
Eric Martin
@ericmarkmartin
Nov 18 2015 03:52
DM?
Pete
@someoneAnyone
Nov 18 2015 03:52
direct message.
Eric Martin
@ericmarkmartin
Nov 18 2015 03:52
ah
I know it as pm
lol
Do you have a test nightscout sight I can hook up to?
Pete
@someoneAnyone
Nov 18 2015 03:54
i think the invite will provide a site url
are you not running NS yet?
Eric Martin
@ericmarkmartin
Nov 18 2015 03:56
i'm afraid not
Eric Martin
@ericmarkmartin
Nov 18 2015 06:18
@someoneAnyone, when you get a chance, it would be great if you could look at this and tell me what sizes of complication we want to support.
Mikael Rinnetmäki
@mrinnetmaki
Nov 18 2015 09:17
@someoneAnyone @ericmarkmartin I quickly drafted some initial ideas on what I'd like to see. http://mrinnetmaki.github.io/applewatch-cgm-complications/index.html
For the Modular watch face.
@scottleibrand might want to see something more in complications too. I'd just start with the CGM reading and have other info available from the app that opens from the complication.
Pete
@someoneAnyone
Nov 18 2015 13:21
@mrinnetmaki , I think we’re bound to specific complication templates at the moment, so not sure if a spark line is possible.
Pete
@someoneAnyone
Nov 18 2015 13:30
The app currently supports multiple sites so people can montior multiple poeple. For the complication and the glance to work right we need a way for the user to either choose (or we choose) which site ends up as the one prioitized for glance and complication usage.
and click on the different Template links in the Inherts from section
Mikael Rinnetmäki
@mrinnetmaki
Nov 18 2015 13:38
I was thinking of creating images on the iOS side
ImageProviders
Pete
@someoneAnyone
Nov 18 2015 13:39
but they look limied to a specific qidth
width
limited
we can run some experimenets, but it looks like it enforces a table column layout
my oringal plan was to use the large template and do something simlar to what i’ve done for the today widget.
Simulator Screen Shot Nov 18, 2015, 8.40.21 AM.png
This message was deleted
The Image dimension table on that page says image can only be 22-64 pixels wide and 22 height
Pete
@someoneAnyone
Nov 18 2015 15:44
if anyone is following, the https://github.com/someoneAnyone/Nightscouter/tree/wip-apple-watch-support branch is starting to shape up nicely… here are some screenshots...
Simulator Screen Shot Nov 18, 2015, 10.44.06 AM.png
Simulator Screen Shot Nov 18, 2015, 10.43.59 AM.png
i’ve been toying with the idea of starting the watch Ui with a table then going to a detail view verses just going directly to a page view (swiping between sites). Any thoughts?
Eric Martin
@ericmarkmartin
Nov 18 2015 15:49
I was thinking of starting with a stacked image complication that gives an arrow and a number
Jim Matheson
@jmatheson
Nov 18 2015 16:45
@someoneAnyone - working on getting your app running locally. Have you seen this embedded binary identifier is not prefixed with parent app’s bundle identifier? I am not sure where to fix it (first time with bundled apps)
Eric Martin
@ericmarkmartin
Nov 18 2015 17:09
I think I've seen that before. I'll take a look when I get home
Jim Matheson
@jmatheson
Nov 18 2015 17:34
nevermind. @ericmarkmartin i got it working
Pete
@someoneAnyone
Nov 18 2015 17:37
What did you have to change?
you’ll need a dev account to get the shared sandbox working
i’ve started refactoring my watch branch… caught a lot of mistakes working on cleaning it up more.
Jim Matheson
@jmatheson
Nov 18 2015 17:39
in the build settings i had to edit the product bundle identifier and copy my entire parent bundle identifier in front of the bundle identifier for today.
Pete
@someoneAnyone
Nov 18 2015 17:39
Yes. It doesn’t inherit.
Jim Matheson
@jmatheson
Nov 18 2015 17:39
so it now reads com.nothingonline.NightscouterJCM.com.nothingonline.Nightscouter.NightscouterTodayJCM
Pete
@someoneAnyone
Nov 18 2015 17:40
I think we can create a global variable taht can be used across targets… just not sure how to do it. I think Apple did something similar in their sample app called Listr
anyone feel like improve the app’s charts? I’ve played with https://github.com/danielgindi/ios-charts but haven’t gotten a solid enough chart to call it better then the one I’m currently using.
Jim Matheson
@jmatheson
Nov 18 2015 18:49
@scottleibrand "I haven't really used any of them much, because I need openaps-specific stuff” - what things specifically would you like to see?
Scott Leibrand
@scottleibrand
Nov 18 2015 19:39
We use IOB, predicted BGs, last enacted temp (rate, enacted duration, and timestamp), currently running temp (rate, duration left, and timestamp), and currently-suggested temp. Might be able to get by without all three of those, though.
Jim Matheson
@jmatheson
Nov 18 2015 19:43
So 3 temps - last, current, and next suggested?
Scott Leibrand
@scottleibrand
Nov 18 2015 19:45
Yes. But we can probably do better than that with some intelligence, as we really just want to know whether we're successfully enacting temps and reading them from the pump, and what the current/next one is.
Jim Matheson
@jmatheson
Nov 18 2015 19:46
got it. alright, will start thinking about this...
Scott Leibrand
@scottleibrand
Nov 18 2015 19:46
Maybe more important than that, though, is getting everything from Nightscout into the watch, including the basal visualization.
That, combined with a color-coded "time since last successful loop" indicator would probably do the trick.
Might also be worth asking in #intend-to-bolus what other loopers want.
The new Nightscout basal viz was a huge advance, and there are people who want openaps just for that. We should get that onto the watch.
Jim Matheson
@jmatheson
Nov 18 2015 19:50
ok, good to know. I have not experienced it yet, so hard for me to yet understand what pieces are valuable to have on watch instantly vs on the ios app if you occasionally want to drill down.
Scott Leibrand
@scottleibrand
Nov 18 2015 20:36
Heh
Check out bewest.labs.diabetes.watch if you want a public NS site to view.
Eric Martin
@ericmarkmartin
Nov 18 2015 20:44
Do we have arrow assets?
Scott Leibrand
@scottleibrand
Nov 18 2015 20:46
Cgm-remote-monitor just uses the Unicode arrow characters.
Jim Matheson
@jmatheson
Nov 18 2015 20:50
thanks, helpful.
Eric Martin
@ericmarkmartin
Nov 18 2015 20:50
But that won't look great on a complication, will it?
it actually doesn't look horrible
Jim Matheson
@jmatheson
Nov 18 2015 20:52
@ericmarkmartin what if we came up with a way to denote trends without using arrows?
Eric Martin
@ericmarkmartin
Nov 18 2015 20:52
go on...
Jim Matheson
@jmatheson
Nov 18 2015 20:53
I dont have a watch, so i could be wrong here. but, often see numbers with a partially filled circle around it in mockups
Eric Martin
@ericmarkmartin
Nov 18 2015 20:53
i don't have one either
Jim Matheson
@jmatheson
Nov 18 2015 20:53
so why not do a partial circlle
Eric Martin
@ericmarkmartin
Nov 18 2015 20:53
how does a partial circle show trends though?
Jim Matheson
@jmatheson
Nov 18 2015 20:53
and possibly color it
11-1 on clock shows up, 10-2 shows double up. 2-4 shows level, etc
and then red/yellow/green for the color
Scott Leibrand
@scottleibrand
Nov 18 2015 20:59
We probably want something consistent with what people expect from Dexcom. Their latest uses an arrow on the circle around the BG number, if we don't want a standalone arrow.
Eric Martin
@ericmarkmartin
Nov 18 2015 21:00
what does 11-1, 10-2, 2-4 mean?
and @scottleibrand while that's true, we should also realize that different complication families require different methods of displaying the information
Jim Matheson
@jmatheson
Nov 18 2015 21:01
how far the cirlce appears on a virtual clock.
Eric Martin
@ericmarkmartin
Nov 18 2015 21:02
i see
Jim Matheson
@jmatheson
Nov 18 2015 21:02
it might actually be semi close to what scott is saying. agree we may not be able to do exact depending on limitations from apple
Eric Martin
@ericmarkmartin
Nov 18 2015 21:02
I was starting with modular small
we have a couple options for modular small
we can use a stackedtext, which is two lines of text
or we can use a stackedimage, which is an image on the first line, and text on the second line
stacked text seemed nice to me, but the unicode arrows render a little bit too small
so we could in theory build assets for each of the arrows and use those as images
thoughts?
Jim Matheson
@jmatheson
Nov 18 2015 21:04
trying to find that link to the different complications styles avail...
Scott Leibrand
@scottleibrand
Nov 18 2015 21:04
For me it's going to be important to save real estate for graphs, and overlay text where possible. There's a lot of info and not a lot of screen.
But I'm not an iOS dev, so I'm like your idiot product guy who thinks he's a designer but isn't. ;-)
I believe you were talking about the rings
the only problem with those is that they take a fill fraction, and not a start and stop point
Jim Matheson
@jmatheson
Nov 18 2015 21:06
thx, yes
damn
Eric Martin
@ericmarkmartin
Nov 18 2015 21:07
as a side note, on my xcode, Command+Shift+2 isn't working to set force touch, anyone else have this problem?
Jim Matheson
@jmatheson
Nov 18 2015 21:10
probably just have to go stacked with arrows.
Eric Martin
@ericmarkmartin
Nov 18 2015 21:11
sigh...
is there a unicode for double up?
Ben West
@bewest
Nov 18 2015 21:12
fwiw, I know how to make fonts
it'd be pretty easy to create a diabetes font, with all the glyphs you want
Eric Martin
@ericmarkmartin
Nov 18 2015 21:13
unfortunately, I believe complications are coerced into using system font for consistency with the rest of the watch face
in other words, San Francisco
on the first iOS screen, next isn't clickable even when I type in a site. have you guys come across this before?
Scott Leibrand
@scottleibrand
Nov 18 2015 21:15
yes, if it fails a HEAD check
I had all kinds of issues with http:// sites and ones with port numbers after the hostname
Eric Martin
@ericmarkmartin
Nov 18 2015 21:17
bewest.labs.diabetes.watch is failing a HEAD check then
can anyone give me a test site that is reporting data?
Ben West
@bewest
Nov 18 2015 21:17
hmm
it's working
Eric Martin
@ericmarkmartin
Nov 18 2015 21:18
ah, it has to http
not https
Ben West
@bewest
Nov 18 2015 21:18
it's not https
that's true
Scott Leibrand
@scottleibrand
Nov 18 2015 21:18
the app might accept http:// now, but it defaults to https://
Eric Martin
@ericmarkmartin
Nov 18 2015 21:36
have you guys come across this?
_interfaceControllerClientIDForControllerID:] clientIdentifier for interfaceControllerID:B92C0002 not found Program ended with exit code: 0
Eric Martin
@ericmarkmartin
Nov 18 2015 22:00
do we want the direction on top or bottom?
Pete
@someoneAnyone
Nov 18 2015 22:30
Hi all! don’t have time to hang too long at the moment but I’m excited!
just got the message from apple the version 1.0 is ready for release
IMG_0428.jpg
Scott Leibrand
@scottleibrand
Nov 18 2015 22:35
congrats! :)
Jim Matheson
@jmatheson
Nov 18 2015 22:35
Nice!
Pete
@someoneAnyone
Nov 18 2015 22:37
Just hit release
Jim Matheson
@jmatheson
Nov 18 2015 22:39
Drop the link in here, always hard to find new apps in search
Pete
@someoneAnyone
Nov 18 2015 22:39
it isn’t showing up in the store yet, it might take a few hours
Eric Martin
@ericmarkmartin
Nov 18 2015 22:51
congrats!