Additional setting: choose between metric or english units
onman - May 26, 2008 - 00:45
| Project: | WeatherFacti -- from a weather.com xml feed |
| Version: | 6.x-1.9 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I've installed this module and it looks nice. It is with this module not possible to choose whether I want to see all in metric (Celcius) or in english units (Fahrenheit). On the website itself it is possible to select this option. Can you add this setting to this module?
By the way, to have this module work the 'profile' module must also be activated (I hadn't activated it).

#1
I've changed one line in weatherfacti.module for see all in metric (Celsius).
Change line 319:
$url = "http://xoap.weather.com/weather/local/%s?cc=*&dayf=%s&link=xoap&prod=xoap&par=%s&key=%s";to
$url = "http://xoap.weather.com/weather/local/%s?cc=*&dayf=%s&link=xoap&prod=xoap&par=%s&key=%s&unit=m";