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
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

Truttle - May 30, 2008 - 10:46

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";

 
 

Drupal is a registered trademark of Dries Buytaert.