Question: Has anyone written a mapper from WeatherFactory (weather API) to this one?
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?
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 😃
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.