Anachron / i3blocks

Additional/custom blocks which fit my needs
GNU General Public License v3.0
585 stars 106 forks source link

Cloudy vs Partly Cloudy #60

Open bergsm opened 3 years ago

bergsm commented 3 years ago

Currently there is not distinguishing between cloudy and partly cloudy, the script uses the cloudy icon for any weather report with the word cloud in it, even if there are few clouds.

vKnmnn commented 3 years ago

could you compile a list of the other strings you get with "cloudy" in them? Please give an example what the 'weather report' looks like, so i get an idea how to fix this.

bergsm commented 3 years ago

Hey vKnmnn,

Thanks for your response! I went ahead and looked into openweathermap api a bit more, and discovered all of the possible condition codes that can be returned as well as a list of available icons provided by openweathermap. You can check out the list here. It may allow for easier development as well using the condition codes rather than parsing the text from the response :)