weather_animation icon indicating copy to clipboard operation
weather_animation copied to clipboard

Question: Has anyone written a mapper from WeatherFactory (weather API) to this one?

Open remoteportal opened this issue 11 months ago • 2 comments

I'm having to hand-parse data from the weather / WeatherFactory API on pub.dev. To not duplicate work, I'm wondering if anyone has already written some mapping code to set up the WrapperScene and various weather units based on real weather?

remoteportal avatar Jan 20 '25 19:01 remoteportal

I haven't seen this kind of thing, but I think there are enough weather services to do this kind of comparison for each one. I think this could be published as separate gist or mini-projects, so everyone could copy some generic model and tweak it to suit their needs. Or even make implementations for specific services at once 😃

PackRuble avatar Jan 21 '25 09:01 PackRuble

It's an interesting problem to solve. I think that the API I'm using is one of the main ones, and they have a value called weatherConditionCode which looks like an HTTP code (200s, 300s, etc.) with each range corresponding to a type of weather (like snow), and particular sub-codes (like 405) will map to certain configurations of your weather widgets. I can also look at some other values from the API to configure your weather widgets further, like wind speed. Thank you.

remoteportal avatar Jan 21 '25 14:01 remoteportal