← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: [Clock] Online API for Sunrise/Sunset Info

 

Hi Nekhelesh,

looks good. We're waiting for lat/long from the phone too.

One thing I've noticed when using OWM Api is that sometimes an empty response is delivered. But a direct retry will then work. I guess this only concerns JSON requests.

Cheers
Martin

Am Montag, den 29.04.2013, 18:01 +0200 schrieb Nekhelesh Ramananthan <krnekhelesh@xxxxxxxxx>:
Hi Martin,

Thanks for the info. I updated my branch to get the Sunrise/Sunset
information using the API using the XmlListModel. Currently however, I
am just giving it a static latitude and longitude info. Hopefully in
the near future, the platform API will give me the actual lat,long of
the phone which I can then plug in to get the info.

Nekhelesh

On Mon, Apr 29, 2013 at 3:08 PM, Martin Borho  wrote:
 Hi Nekhelesh,

 here's Martin from the weather app team. We haven't implemented
Sunrise/Sunset by now, but after the last version update (2.5) of the
Openweathermap API the sunrise/sunset data is available in the current
weather data and even in the searches. For example in this calls:

 http://api.openweathermap.org/data/2.5/weather?q=London,uk&mode=xml
[2]
 http://api.openweathermap.org/data/2.5/weather?id=2172797&mode=xml
[3]
http://api.openweathermap.org/data/2.5/find?q=London&units=metric&mode=xml
[4]

 Hope this helps, I'll try to contact you on IRC later. My nick is
m-b-o

 Cheers
 Martin

 Am Montag, den 29.04.2013, 14:56 +0200 schrieb Nekhelesh Ramananthan
:

 Hi all,

I am currently working on implementing the Sunrise/Sunset feature for
 the clock app as per the clock app journey provided by the design
 team. On talking to them, they mentioned that the weather app team
 would also be showing the Sunrise/Sunset in the future and that it
 would be best if both the clock app and the weather app obtain the
 data from the same source (leading to consistency, uniformity etc).

 I did have a peek at the weather app code and see that you obtain
your
 weather info from the openweathermap.org [6] [1] website. However, I
was

 wondering if you also get the Sunrise/Sunset info from them as well?
I
also looked through the openweathermap online API, and could not find
 an API call for Sunrise/Sunset times.

 Perhaps we can meet over IRC on ubuntu-touch to dicuss this and
 implement it together. My IRC nick is nik90.

 Kind regards,
 Nekhelesh

 Links:
 ------
 [1] http://openweathermap.org [7]

 --
 Mailing list: https://launchpad.net/~ubuntu-touch-coreapps [8]
 Post to     : ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx [9]
 Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps [10]
 More help   : https://help.launchpad.net/ListHelp [11]

--
Nekhelesh Kandasamy Ramananthan
Msc Control & Simulation
TU Delft

Links:
------
[1] mailto:martin@xxxxxxxxx
[2]
http://api.openweathermap.org/data/2.5/weather?q=London,uk&mode=xml
[3] http://api.openweathermap.org/data/2.5/weather?id=2172797&mode=xml
[4]

http://api.openweathermap.org/data/2.5/find?q=London&units=metric&mode=xml
[5] mailto:krnekhelesh@xxxxxxxxx
[6] http://openweathermap.org
[7] http://openweathermap.org
[8] https://launchpad.net/~ubuntu-touch-coreapps
[9] mailto:ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx
[10] https://launchpad.net/~ubuntu-touch-coreapps
[11] https://help.launchpad.net/ListHelp



References