Foren

weather portlet...help please!

saly adam, geändert vor 12 Jahren.

weather portlet...help please!

Junior Member Beiträge: 37 Beitrittsdatum: 17.04.11 Neueste Beiträge
hello,

i have added a weather portlet to my website , but it ask the user to input city or zip code . is there a way so that i assign specified city and the weather of this city is always appear in the portlet to the user . coz i mainly interest of the weather of my country ??
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: weather portlet...help please!

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
If you run the portlet, you'll see that it's just linking to a weather forecast site in US which takes US city and zipcode as inputs. To get a good weather report in different country, it's probably better to change the weather site to the one's in your country.

I've personally changed my to go to a Japanese forecasting site. emoticon
saly adam, geändert vor 12 Jahren.

RE: weather portlet...help please!

Junior Member Beiträge: 37 Beitrittsdatum: 17.04.11 Neueste Beiträge
there is a famous website for weather forecast in my country.
which file (in weather portlet ) should i modify to replace the url of the default website with my url??
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: weather portlet...help please!

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
there is a famous website for weather forecast in my country.
which file (in weather portlet ) should i modify to replace the url of the default website with my url??


First, find the parameters you need to get a weather for a specific location for the weather site you want to use.

Open up view.jsp. There should be a url new the beginning of the script. You'll have to adjust what you submit to the weather site.