Is there an autodetect value for the unit+system parameter?
Is there an autodetect value for the unit+system parameter?
I am planning to use the widget on my site. I want my visitors to see their weather in their location and of course use the unit_system of their country. Basically it is always metric except in the US and a few very small countries. From the documentation I see that the allowed values for the widget are "us" or "metric". Is there an undocumented value of "auto" or something similar, which would choose the proper unit system generally in use in that country?
- Don
- Posts: 687
- Joined: Tue Sep 14, 2010 12:14 am
- Name: Don
- Location: Roseville, California, United States of America
- Contact:
Re: Is there an autodetect value for the unit+system paramet
jackaroo,
Remove the unit_system parameter and YoWindow will use your visitors' IP address to determine which unit system to use.
Don
Remove the unit_system parameter and YoWindow will use your visitors' IP address to determine which unit system to use.
Don
Re: Is there an autodetect value for the unit+system paramet
Don,
Thank you very much for the information. You saved me a lot of work. I was already looking into using my own geolocation code.
Jackaroo
Thank you very much for the information. You saved me a lot of work. I was already looking into using my own geolocation code.
Jackaroo
Re: Is there an autodetect value for the unit+system paramet
Don,
Me again. I used your suggestion on my website (i.e. remove the unit_system parameter), and I had a few people from Canada check. They saw units in farenheit; in Canada it should be Celsius. The city was ok but not the units.
jackaroo
Me again. I used your suggestion on my website (i.e. remove the unit_system parameter), and I had a few people from Canada check. They saw units in farenheit; in Canada it should be Celsius. The city was ok but not the units.
jackaroo
- Don
- Posts: 687
- Joined: Tue Sep 14, 2010 12:14 am
- Name: Don
- Location: Roseville, California, United States of America
- Contact:
Re: Is there an autodetect value for the unit+system paramet
Maybe YoWindow uses Fahrenheit for all of North America. :? Perhaps Pavel can answer that one for us :?:jackaroo wrote:Don,
Me again. I used your suggestion on my website (i.e. remove the unit_system parameter), and I had a few people from Canada check. They saw units in farenheit; in Canada it should be Celsius. The city was ok but not the units.
jackaroo
If you could post a link to your YoWindow page maybe some of our friends from other countries could have look and tell us what they see. Any volunteers?

Don
-
- Posts: 1645
- Joined: Wed Nov 18, 2009 9:58 am
- Location: Vienna, Austria
Re: Is there an autodetect value for the unit+system paramet
Me, me! Gimme the website to check units!Don wrote:Any volunteers?

»Man is impressive. In a universe full of untold secrets he has invented boredom.«
- Don
- Posts: 687
- Joined: Tue Sep 14, 2010 12:14 am
- Name: Don
- Location: Roseville, California, United States of America
- Contact:
Re: Is there an autodetect value for the unit+system paramet
You can check my site if you want. http://home.surewest.net/donjr/yowindow ... r_six.htmlikarus1969 wrote:Me, me! Gimme the website to check units!
jackaroo has me wondering if this feature works the way I think it does.
-
- Posts: 1645
- Joined: Wed Nov 18, 2009 9:58 am
- Location: Vienna, Austria
Re: Is there an autodetect value for the unit+system paramet
i'm sorry, neither location nor units are ok for my city (vienna, metric)Don wrote:You can check my site if you want. http://home.surewest.net/donjr/yowindow ... r_six.htmlikarus1969 wrote:Me, me! Gimme the website to check units!
jackaroo has me wondering if this feature works the way I think it does.

»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Re: Is there an autodetect value for the unit+system paramet
Same here (Umeå, Sweden - metric)ikarus1969 wrote: i'm sorry, neither location nor units are ok for my city (vienna, metric)
Get Radio? Sure! - the best Internet Radio Player ever? 

Re: Is there an autodetect value for the unit+system paramet
Hi Jackaroo,
Just to let you know:
Location was detected right for me (Mijdrecht, Netherlands), but the units should be metric.
It showed me Fahrenheit instead.
I'm sorry, but I don't know if and how this can be changed.
Goodluck,
Fred
Just to let you know:
Location was detected right for me (Mijdrecht, Netherlands), but the units should be metric.
It showed me Fahrenheit instead.
I'm sorry, but I don't know if and how this can be changed.
Goodluck,
Fred