Show HN: I give you the most suitable outfit to wear depending on weather
How do you decide what to wear when you wake up, or when you&#x27;re planning to go on a romantic weekend getaway?
I made an app for that called Fashion Frog, who gives you the most suitable outfit to wear depending on the current weather condition and the time of the day relevant to you.<p>I learned a lot while coding this little side project app on Android and iOS, like using the OpenWeather API.<p>I created the algorithms to propose the suitable outfit for the day anywhere in the world. It took some time to assembly and think about the looks and the illustrations. But I want to talk to you about my biggest pain: the timezone module.<p>It was very difficult to get the app working on every timezone of the world. Indeed, I wanted to give weather from morning to night but I needed to know what time was at every town of the world (to display only 4 simple informations : morning, afternoon, evening, night). At fist, I wanted to use the Google Timezone API but it was very expensive.<p>My first solution was to use Kevin Robert module called city-timezone, it covered 80% of the users requests. Sometimes the city is not found, in this case I choose a timezone list from the web that I parsed, then I used another list for the towns of the world with a timezone indication code inside. So I was able to match the town with the timezone when a user select a town. And finally, if the timezone of the town is still not found, I use timezonedb API (link below) who let me cover at the end almost all the town of the world.<p>I also set things to not call too much the weather API (like if you want to get the weather 8 mins later at the same position, I didn’t call again the API, I save it for 10 mins inside the app).<p>The app is still in progress, because I want to add an Inspiration section and to create a more complex outfit proposition algorithm (I like it so far, but I think it can be improved). I already got design feedback by a UX&#x2F;UI designer that helped me to think about the future experience inside this little app. I also used the Humaaans illustration base and recreated clothes on top, it was very creative and fun to do.<p>Fun fact: I wanted to create this app at the beginning only for Men living in Paris, France because it was my actual pain: what outfit I should prepare to look my best throughout the full day? And now, my biggest users this month (51%) are Women living in US and UK. It took me a huge amount of time to create english speaker and Women version of the app, but it was a great idea to offer the app to as many people as possible from the beginning, because my target users revealed itself.<p>LINKS :
- Weather API: <a href="https:&#x2F;&#x2F;openweathermap.org" rel="nofollow">https:&#x2F;&#x2F;openweathermap.org</a>
- Timezone module: <a href="https:&#x2F;&#x2F;github.com&#x2F;kevinroberts&#x2F;city-timezones" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kevinroberts&#x2F;city-timezones</a> 
- Timezone last chance API: <a href="http:&#x2F;&#x2F;timezonedb.com" rel="nofollow">http:&#x2F;&#x2F;timezonedb.com</a>
- Humaans illustration library: <a href="https:&#x2F;&#x2F;www.humaaans.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.humaaans.com&#x2F;</a>
- Google Timezone API: <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;maps&#x2F;documentation&#x2F;timezone&#x2F;intro" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;maps&#x2F;documentation&#x2F;timezone&#x2F;in...</a>