These are chat archives for abranson/rockpool

17th
Aug 2016
Andrew Branson
@abranson
Aug 17 2016 08:02
Here's a question back. Do you want me to ask Katharine, or not? :)
are they free? could we get our own?
ruff
@rufferson
Aug 17 2016 08:06
No idea, when I go to TWC - all API references are pointing to WU, so direct TWC seems to be not available for retail, probably some special agreement for embedding
Andrew Branson
@abranson
Aug 17 2016 08:10
i suppose i'd better ask her really, but I can't see how she could possibly be allowed to say yes
ruff
@rufferson
Aug 17 2016 08:10
Unless they got it for free either
which i really really doubt
the way it's implemented now is that api key should be supplied from appsetings config file, it's not hardocded
if apikey is empty weather is disabled - timer shuts itself down and direct call to refresh just returns
there's dbus call to set the api key (but not to retrieve it) so I'm not sure how we distribute it :)
otherwise - I'm planning to reshuffle the code now the way that it should be possible to implement several providers
to split libpebble code handling the formatting and blobdb operations from json parsers and refresh timers
that way we can leave TWC as reference implementation and maybe later add publicly available WU provider
Andrew Branson
@abranson
Aug 17 2016 08:25
yes, lots of watchfaces use the yahoo api without much bother. is the watch app hardcoded to use that weather channel?
ruff
@rufferson
Aug 17 2016 08:26
it's not watchapp really, weather watchapp is just a tip of the iceberg - it just shows current conditions and short forecast. More extended forecast is inserted in the timeline. So the actual app is in the phone
I didn't find any string resembling api key in android (not that i was actively searching really) - i just picked that key from HTTP interception between android and TWC
Andrew Branson
@abranson
Aug 17 2016 08:52
so there's nothing to bind it to TWC? i would say we shouldn't be using it at all then. i wonder if the jolla weather info is available. copying that would be nice
ruff
@rufferson
Aug 17 2016 08:54
Ah, no, the phone app is hardcoded to use TWC, you cannot change that, you cannot even change the API key
Andrew Branson
@abranson
Aug 17 2016 08:55
does that affect rockpool?
i mean, if the watchapp doesn't particularly need TWC (i.e. for location finding) then we don't need to use it do we?
ruff
@rufferson
Aug 17 2016 08:57
no, technically not, that's where I'm saying once I proved it works with TWC, i can now split twc off leaving it as a reference provider and have just weather API available. And then we can either write a WU provider or link to Jolla's
I didn't find any way to get weather/location details from jolla's wether though
So most probably WU/Yahoo is our only choice
but if Kath says that yea just go ahead using our API key, as long as you not start selling it - we don't need to code anytihng additional :)
Andrew Branson
@abranson
Aug 17 2016 10:47
what's WU?
ruff
@rufferson
Aug 17 2016 12:23
Weather Underground
TWC's spinoff for public services
Andrew Branson
@abranson
Aug 17 2016 14:11
so i didn't hear from katharine, but the general mood in the group was that it's not free or ours to use
i'll look into getting the info out of the jolla weather app