These are chat archives for nightscout/ios

20th
Nov 2015
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 04:32 UTC
Quick update: I wrote the circular small complication, but circular complications can't take a tint colour
Because you suggested CircularSmallStackText, I just set it up the exact same way as the ModularSmallStackText. Is that OK?
Pete
@someoneAnyone
Nov 20 2015 04:34 UTC
This message was deleted
This message was deleted
is what i was thinking
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 05:35 UTC
Ok, I'll move that into the branch
i'll do some clean up and then a pr sometime tomorrow hopefully
Pete
@someoneAnyone
Nov 20 2015 13:03 UTC
I forgot about tint color…
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 16:13 UTC
I'm taking care of it
The only problem is that not very template supports tint color
CircularSmall, for indtance
*instance
Pete
@someoneAnyone
Nov 20 2015 17:34 UTC
that’s fair. it still gives people flexibiltiy for different complications.
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 17:40 UTC
Ok.
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:07 UTC
@someoneAnyone, you're using the variable model in your timeline entry creation, but where is that instance of WatchModel coming from?
Pete
@someoneAnyone
Nov 20 2015 18:14 UTC
no where… i was faking it.
i don’t really have a datastore for the watch setup yet.
its on my todo list
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:28 UTC
ah
Is there anyway we can just pull the most recent data from the server?
Pete
@someoneAnyone
Nov 20 2015 18:31 UTC
yes…
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:32 UTC
what is that
Pete
@someoneAnyone
Nov 20 2015 18:32 UTC
it probably needs some updating but I have a function in the NightscoutAPIClient class
public func fetchDataForEntries(count: Int = default, completetion: (entries: EntryArray?, errorCode: NightscoutAPIError) -> Void)
or ideally, I’d like to create and function that does sometihng similar on the pebble endpoint. That’s the data we need for complications
for future events we’ll have to implement some sort of forecasting algo… there isn’tm a rest service available on nightscout for that… at least that I’m aware of
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:35 UTC
I assume you're talking about forecasting for time travel, correct?
Pete
@someoneAnyone
Nov 20 2015 18:36 UTC
correct
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:36 UTC
Is that safe?
Pete
@someoneAnyone
Nov 20 2015 18:36 UTC
the web client forcasts a bg for 2 hours out… i don’t see why we couldn’t...
its not a requiremnt, just something to explore
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:37 UTC
Ah, I wasn't aware that the web client did that
Is there an API reference that I can take a look at?
Pete
@someoneAnyone
Nov 20 2015 18:37 UTC
it gives a confedence band…
for what?
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:37 UTC
nightscout
I can add in the pebble endpoint if there's some kind of reference I can look at
Pete
@someoneAnyone
Nov 20 2015 18:41 UTC
I alread have: public func fetchDataForWatchEntry(completetion: (watchEntry: WatchEntry?, errorCode: NightscoutAPIError) -> Void)
but i needs to be extended to take a count and return an array
or a new method created to similar
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:41 UTC
Do you want to me to take a whack at that, or finish up the complications?
Pete
@someoneAnyone
Nov 20 2015 18:42 UTC
i’d say finish up the complications with dummy data and they we can dicuss how to fix the rest calls
sound fair?
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:42 UTC
I already have live data actually
Pete
@someoneAnyone
Nov 20 2015 18:42 UTC
the move forward
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:42 UTC
sure
Pete
@someoneAnyone
Nov 20 2015 18:43 UTC
then move forward, i didn’t want to hassle you if it was too much
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:43 UTC
no problem
I'll finish up a complication for each family, but before we begin with forward time travel, the method for timeline entry creation probably needs to be refactored a bit
Eric Mark Martin
@ericmarkmartin
Nov 20 2015 18:45 UTC
perfect, thanks