Hi,
I'm using Toybox.Weather API to get today's daily forecast and would like to be able to output the condition's description text. I'm able to get the condition for today, which ends up being a Weather.Condition or really just a number. Can I use that to reference a text description or would I need to define my own dictionary with all the descriptions I want?
Some sample code:
var daily = Weather.getDailyForecast() as Array<DailyForecast>; var today = daily[0]; var condition = today.condition; System.println(condition); //outputs: 1, or some other number based on the forecast
Thanks for the help!