You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Météo France (and I guess probably other providers) just gives the maximum UV value during the day. I've added CommonConverter.getCurrentUV to get the UV at a given time, based on that value. Then I've used this helper method for Météo France results, but it can be used for other providers as well (as long as you know the time of the sunrise and sunset)
This is my first contribution to an Android app, so please don't hesitate to let me know if there are changes you'd like to see for it to be merged!
For a bit of a context, it's just a very naive approach, based on the graph found on https://en.wikipedia.org/wiki/Ultraviolet_index
This won't take into consideration clouds for example, which can be a big contributor to the final UV index, but it should output the worst UV index with blue sky.
When I compared the computed value from the one from AccuWeather, it's either the same or just one index above. I think this is still better than nothing :) (my last sunburn would agree at least!)
Given the lack of reply from main developer, I decided to merge all currently pending pull requests in #440, so you can find your PR there, if you want to compile from source using the other enhancements/fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
Météo France (and I guess probably other providers) just gives the maximum UV value during the day. I've added CommonConverter.getCurrentUV to get the UV at a given time, based on that value. Then I've used this helper method for Météo France results, but it can be used for other providers as well (as long as you know the time of the sunrise and sunset)
This is my first contribution to an Android app, so please don't hesitate to let me know if there are changes you'd like to see for it to be merged!