These are chat archives for nightscout/ios

10th
Nov 2015
Pete
@someoneAnyone
Nov 10 2015 03:16
@scottleibrand i'm looking through your request.... you should have no problem using "http" i'm still investigating ports. do you have problems using "http"?
Scott Leibrand
@scottleibrand
Nov 10 2015 03:17
Just got home, lemme try a few things.
Pete
@someoneAnyone
Nov 10 2015 03:17
i've got the code open now so let me know.
one thing to note... if you enter a url without http or https, the code assumes you want https and prepends that do the url.
Scott Leibrand
@scottleibrand
Nov 10 2015 03:23
"A connection to http://mysite.net:port was not successful. Reson: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection."
Pete
@someoneAnyone
Nov 10 2015 03:24
ohhh....
where did that app policy come up?
Scott Leibrand
@scottleibrand
Nov 10 2015 03:25
after I tried to enter it several ways, then canceled back to the home screen
most of the time it never lets me enter it at all, but apparently one attempt succeeded at least that far
Pete
@someoneAnyone
Nov 10 2015 03:25
odd... i have't had any issues testing against Azure and heroku
Scott Leibrand
@scottleibrand
Nov 10 2015 03:26
they probably both support SSL
I know azure does
Pete
@someoneAnyone
Nov 10 2015 03:26
they do
Scott Leibrand
@scottleibrand
Nov 10 2015 03:27
now I'm back to the "before we get going" "give us your URL" page, and it won't take my entries at all
let me try with my azure site
Pete
@someoneAnyone
Nov 10 2015 03:27
can you file an issue on github... I'm gonna have to think bout how to fix it
and crash logs
?
Scott Leibrand
@scottleibrand
Nov 10 2015 03:27
don't think it ever crashed
Pete
@someoneAnyone
Nov 10 2015 03:28
well, I guess that's good. ;-)
Scott Leibrand
@scottleibrand
Nov 10 2015 03:28
is it checking the existence of the site before letting you hit next?
seems to be. Next goes from grey to dark when I type the g of something in something.azurewebsites.net
Pete
@someoneAnyone
Nov 10 2015 03:29
yes
i do a head check before allowing the user to move forward
Scott Leibrand
@scottleibrand
Nov 10 2015 03:30
when my azure site was sleeping (which it does when I'm not using it) my azure site stayed grey. after loading it in a browser and waking it up, it goes black now.
Pete
@someoneAnyone
Nov 10 2015 03:30
probably should add a spinner or something
it happens with heroku too it looks stalled but it will return at some point
Scott Leibrand
@scottleibrand
Nov 10 2015 03:31
now I made it crash
using a hypenated hostname
Pete
@someoneAnyone
Nov 10 2015 03:31
is that legal?
Scott Leibrand
@scottleibrand
Nov 10 2015 03:31
definitely
Pete
@someoneAnyone
Nov 10 2015 03:31
hmmm.
i might have to toss out the validator I'm using then...
The Internet standards (Requests for Comments) for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-'). The original specification of hostnames in RFC 952, mandated that labels could not start with a digit or with a hyphen, and must not end with a hyphen. However, a subsequent specification (RFC 1123) permitted hostname labels to start with digits. No other symbols, punctuation characters, or white space are permitted.
your validator might also be throwing out the :port part at the end of the hostname
Pete
@someoneAnyone
Nov 10 2015 03:32
i see... not very common
Scott Leibrand
@scottleibrand
Nov 10 2015 03:32
or maybe it's just trying to do SSL to that port
stupid auto-emoji
: port
so apparently both my NS sites use uncommon hostnames that trip up your app in different ways. :)
heh, now nightscouter crashes every time I open it. oops. :)
Pete
@someoneAnyone
Nov 10 2015 03:34
yes. I'm using this as the validator. https://github.com/NitWitStudios/NSURL-Validation-Extension
can you send the log?
Scott Leibrand
@scottleibrand
Nov 10 2015 03:36
looking for the button
is it in testflight?
not seeing an option to send logs
do you know where NSURL-Validation-Extension's actual validation code is?
I'm not familiar with the project layouts of ios apps
Pete
@someoneAnyone
Nov 10 2015 03:37
yes
for the logs... I'll see if I can find the steps
yes - on the validator
Scott Leibrand
@scottleibrand
Nov 10 2015 03:38
I see a Send Feedback button in Testflight, but it just says it's sending deviceinfo, not crash logs.
Pete
@someoneAnyone
Nov 10 2015 03:38
we can try it... maybe they'll send it to me automatically.
the code strips out and spaces, www...
then it forces a https if it doesn't find a http or https... from everything I see so far "-" should work.
Pete Schwamb
@ps2
Nov 10 2015 03:41
@someoneAnyone Is the github repo up to date with the version you’ve submitted to apple?
Scott Leibrand
@scottleibrand
Nov 10 2015 03:41
nothing interesting in deviceinfo
Pete
@someoneAnyone
Nov 10 2015 03:41
master is... dev contains my latest as of this evening to fix a bug apple found
Pete Schwamb
@ps2
Nov 10 2015 03:42
ok, thanks!
Pete
@someoneAnyone
Nov 10 2015 03:42
i also published my new branch with apple watch support
Pete Schwamb
@ps2
Nov 10 2015 03:43
Have you implemented Complications or are you planning to?
Pete
@someoneAnyone
Nov 10 2015 03:44
i'm working towards it.
i just got the watch talking with the phone and updating over the network on its own
i sent some screenshots of that earlier today
Scott Leibrand
@scottleibrand
Nov 10 2015 03:45
nice
Pete
@someoneAnyone
Nov 10 2015 03:45
look back in this thread
Pete Schwamb
@ps2
Nov 10 2015 03:45
Yeah, that looks really cool.
I’ve been using myBG, but it’s a bit buggy.
Also, I’m thinking about putting some apple watch support into the RileyLink app, and was looking for other brave souls who had paved the path. ;)
Pete
@someoneAnyone
Nov 10 2015 03:48
it took me awhile to understand the dance between the phone and watch... its different then how myBG was designed using watchOS 1
Pete Schwamb
@ps2
Nov 10 2015 03:48
yeah, watchOS2 seems to open up many more possibilities.
Pete
@someoneAnyone
Nov 10 2015 03:50
yes...
who knows if i'm doing it right either...
but its displaying and getting data so I'm happy
the branch is on github... you'll need a dev account to get things running but it shouldn't be to hard
i might do an apple tv prototype before the complication... not sure yet
Scott Leibrand
@scottleibrand
Nov 10 2015 03:52
Complications seems like a silly name. Who would want to add Complications?
Pete
@someoneAnyone
Nov 10 2015 03:52
its apple... it needs to be different
Scott Leibrand
@scottleibrand
Nov 10 2015 03:53
they use widget in ios. seems like it's the same thing
but whatever, they're apple
Pete
@someoneAnyone
Nov 10 2015 03:58
I released a new beta tonight via test flight. it doesn't resolve the super complicated url issue but it does get it closer to app store approval.
Scott Leibrand
@scottleibrand
Nov 10 2015 04:00
not seeing the new beta in testflight yet. I'll test when I do.
Pete
@someoneAnyone
Nov 10 2015 04:01
i just hit submit so it might take a few
Scott Leibrand
@scottleibrand
Nov 10 2015 04:18
got the update. now it accepts my hyphenated azure site, but it never actually manages to read anything from it. says LAST READING: Just now though
Pete
@someoneAnyone
Nov 10 2015 04:18
what version of nightscout are you running?
Scott Leibrand
@scottleibrand
Nov 10 2015 04:19
0.9.0-dev on that one
Pete
@someoneAnyone
Nov 10 2015 04:19
i haven't tested that yet
Scott Leibrand
@scottleibrand
Nov 10 2015 04:19
it's pulling directly from the nightscout dev branch
could be buggy: let me see if I can roll back to master
Pete
@someoneAnyone
Nov 10 2015 04:19
8 for now
8.x
should work with 7 too
Scott Leibrand
@scottleibrand
Nov 10 2015 04:21
redeploying master
redeployed version 0.8.2 and still getting the same symptoms
Pete
@someoneAnyone
Nov 10 2015 04:28
what happens with this site? https://nscgm.herokuapp.com
Scott Leibrand
@scottleibrand
Nov 10 2015 04:29
works
Pete
@someoneAnyone
Nov 10 2015 04:29
my son is on 0.8.2 and it works too
can you share the output of some the endpoints or the url?
Scott Leibrand
@scottleibrand
Nov 10 2015 04:30
bewest.labs.diabetes.watch is another public site that doesn't work (no SSL)
even when I specify http, the head check fails
yeah, happy to share API output
Pete
@someoneAnyone
Nov 10 2015 04:31
whatever you're comfortable with... i could use the status endpoint and the pebble as a start
Scott Leibrand
@scottleibrand
Nov 10 2015 04:32
mean time you can probably repro with ben's URL
at least the SSL vs. http:// issue
STATUS OK
what is the pebble URI?
from your site of course
Scott Leibrand
@scottleibrand
Nov 10 2015 04:44
{"status":[{"now":1447130593686}],"bgs":[{"sgv":"100","trend":5,"direction":"FortyFiveDown","datetime":1447130314000,"bgdelta":-5,"iob":"0","bwp":"0.67","bwpo":100}],"cals":[]}
sgv and bwpo falsified. :)
{"status":"ok","name":"Nightscout","version":"0.8.2","serverTime":"2015-11-10T04:45:12.642Z","apiEnabled":true,"careportalEnabled":true,"head":"24b674e8346d5a692fa0ba4e2f061f5affbb566f","settings":{"units":"mg/dL","timeFormat":12,"nightMode":false,"showRawbg":"never","customTitle":"Nightscout","theme":"default","alarmUrgentHigh":true,"alarmUrgentHighMins":[30,60,90,120],"alarmHigh":true,"alarmHighMins":[30,60,90,120],"alarmLow":true,"alarmLowMins":[15,30,45,60],"alarmUrgentLow":true,"alarmUrgentLowMins":[15,30,45],"alarmUrgentMins":[30,60,90,120],"alarmWarnMins":[30,60,90,120],"alarmTimeagoWarn":true,"alarmTimeagoWarnMins":15,"alarmTimeagoUrgent":true,"alarmTimeagoUrgentMins":30,"language":"en","scaleY":"log","showPlugins":"","heartbeat":60,"baseURL":"","thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":80,"bgLow":55},"DEFAULT_FEATURES":["delta","direction","upbat","errorcodes"],"alarmTypes":["predict"],"enable":["iob","cob","bwp","basal","bridge","careportal","treatmentnotify","delta","direction","upbat","errorcodes","ar2"]},"extendedSettings":{}}
Pete
@someoneAnyone
Nov 10 2015 04:46
thank you very much! i'll take a look, tomorrow. I'm running out of steam tonight
Scott Leibrand
@scottleibrand
Nov 10 2015 04:47
k, thx
Pete
@someoneAnyone
Nov 10 2015 04:58
fyi - i think i found the bug, I'll work on it tomorrow
Scott Leibrand
@scottleibrand
Nov 10 2015 05:01
cool
Pete
@someoneAnyone
Nov 10 2015 13:58
@scottleibrand, I have the site working... I'll post a new beta tonight.
Simulator Screen Shot Nov 10, 2015, 8.58.08 AM.png
Scott Leibrand
@scottleibrand
Nov 10 2015 17:05
:+1: