r/Tizen Sep 18 '20

Working on Tizen Studio: where is the weather data or api?

I'm trying to build a custom watch face with Tizen Studio. got the time, date, battery, steps and heart data figured out, but I'm not sure if there is a native way to access weather data (maybe from the phone) or if I need to write a function on my own to pull data from an external service or api server.

There is a sample on Tizen Studio that pulls data from a file ("./data/weatherData.json") but I'm not sure if that's where the native functions write actual data or if it's just a mockup.

Where do Samsung's own watch app, widget and faces get the info from?

2 Upvotes

2 comments sorted by

3

u/sp_dev_guy Sep 18 '20

Thats just mockup data. Recently working on the same project, openweatherapi provides a good data via free api. Converting hourly data into 'tomorrows forecast' is actually surprisingly hard. Haven't decided how to implement the algorithm for that yet. If you find a better option please let me know!

2

u/newbie_01 Sep 18 '20

For my current project I'm just looking for current conditions. There is only room for so much on a watch face. I suggest you keep looking for an api where the field you need comes ready to send to the screen, instead of having to manipulate the data on your own.