null8626 / python-weather

A free and asynchronous weather API wrapper made in python, for python.
https://python-weather.rtfd.io
MIT License
100 stars 31 forks source link

How do I access the UV Index number like I could in older versions? E.g. 3 instead of "Low" #43

Closed AquaQuokka closed 1 year ago

null8626 commented 1 year ago

hi! i'm afraid it's no longer possible, but i can make the UV index a part of the Ultraviolet enum for this in a future update! thanks for your concerns!

AquaQuokka commented 1 year ago

Maybe add a __int__() method, so people can do int(weather.ultraviolet) or something and get the index

null8626 commented 1 year ago

noted!

null8626 commented 1 year ago

fixed in this commit, and in update v1.0.3!