Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: tigers on March 12, 2012, 11:16:33 PM

Title: Is the output from the "Custom CGI" panel always in imperial units?
Post by: tigers on March 12, 2012, 11:16:33 PM
It seems that that's case. If so, I'll go with that and implement some code in my template that lets a user change it from their end.

If not, is there a way to get WC to pass a variable in the URL that indicates either imperial or SI units?
Title: Re: Is the output from the "Custom CGI" panel always in imperial units?
Post by: WCDev on March 12, 2012, 11:23:17 PM
Hi Tigers,
Just caught you before getting some zzz's.

Yes, the output of the custom CGI is always in imperial units - temperatures in Fahrenheit, rain and pressure in inches, speeds in miles per hour. Date and time is UTC unless the 'Send Time As Local' tick box is ticked.

Hope this helps,
Stu.
Title: Re: Is the output from the "Custom CGI" panel always in imperial units?
Post by: tigers on March 13, 2012, 12:11:39 AM
Thanks. Just wanted to make sure there wasn't some option I was missing. Also helps from my end because I can then depend on the units being consistent regardless of locale.