Cleaned up code to obtain temperature and set appropriate unit.
Cleaned up code to obtain temperature and set appropriate unit.

Changed to switch statement, and utilised the API's already built-in parameters to obtain 'metric' (centigrade/celsius), 'imperial' (fahrenheit) and 'standard' (kelvin, default) temperatures. 'metric' = '°C', 'imperial' = '°F', 'standard' = '°K'.
rattfieldnz/open-weather,rattfieldnz/open-weather