These are chat archives for nightscout/ios

20th
Nov 2015
Eric Martin
@ericmarkmartin
Nov 20 2015 04:32
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
This message was deleted
This message was deleted
is what i was thinking
Eric Martin
@ericmarkmartin
Nov 20 2015 05:35
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
I forgot about tint color…
Eric Martin
@ericmarkmartin
Nov 20 2015 16:13
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
that’s fair. it still gives people flexibiltiy for different complications.
Eric Martin
@ericmarkmartin
Nov 20 2015 17:40
Ok.
Eric Martin
@ericmarkmartin
Nov 20 2015 18:07
@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
no where… i was faking it.
i don’t really have a datastore for the watch setup yet.
its on my todo list
Eric Martin
@ericmarkmartin
Nov 20 2015 18:28
ah
Is there anyway we can just pull the most recent data from the server?
Pete
@someoneAnyone
Nov 20 2015 18:31
yes…
Eric Martin
@ericmarkmartin
Nov 20 2015 18:32
what is that
Pete
@someoneAnyone
Nov 20 2015 18:32
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 Martin
@ericmarkmartin
Nov 20 2015 18:35
I assume you're talking about forecasting for time travel, correct?
Pete
@someoneAnyone
Nov 20 2015 18:36
correct
Eric Martin
@ericmarkmartin
Nov 20 2015 18:36
Is that safe?
Pete
@someoneAnyone
Nov 20 2015 18:36
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 Martin
@ericmarkmartin
Nov 20 2015 18:37
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
it gives a confedence band…
for what?
Eric Martin
@ericmarkmartin
Nov 20 2015 18:37
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
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 Martin
@ericmarkmartin
Nov 20 2015 18:41
Do you want to me to take a whack at that, or finish up the complications?
Pete
@someoneAnyone
Nov 20 2015 18:42
i’d say finish up the complications with dummy data and they we can dicuss how to fix the rest calls
sound fair?
Eric Martin
@ericmarkmartin
Nov 20 2015 18:42
I already have live data actually
Pete
@someoneAnyone
Nov 20 2015 18:42
the move forward
Eric Martin
@ericmarkmartin
Nov 20 2015 18:42
sure
Pete
@someoneAnyone
Nov 20 2015 18:43
then move forward, i didn’t want to hassle you if it was too much
Eric Martin
@ericmarkmartin
Nov 20 2015 18:43
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 Martin
@ericmarkmartin
Nov 20 2015 18:45
perfect, thanks