dferrante / pywx

python weather bot
10 stars 3 forks source link

allow user to set their preferred units #3

Open dmd opened 7 years ago

dmd commented 7 years ago

I would like to be able to set my preferred units independent of my location.

Suggested syntax:


wx units si         # set me to always use SI units
wx units us         # set me to always use US units
wx units default    # remove the preference; use default units for location requested
dziban303 commented 5 years ago

You can request either metric or imperial units when doing a lookup.

wx Paris                  # returns Paris weather in standard format for the location, i.e. metric units
wx -F Paris               # returns Paris weather in imperial units
wx -C New Orleans         # returns New Orleans weather in metric units

Not exactly what you were asking for but it's what's available.