Changes in the location field for the widget

YoWindow widget Questions, Suggestions and Bugs
Post Reply
elpasotx

Changes in the location field for the widget

Post by elpasotx »

Hello,

When you first generate the widget code for your PWS web site, the location field looks like this:

value="location_id=gn:5520993&location_name=El%20Paso&time_format=12&unit_system=us&background=#FFFFFF&copyright_bar=false"
/>

When you want to substitute your own PWS data, you are asked to amend it as follows:

"location_id=gn:5128581&current_weather_url=http://mysite.com/yowindow.xml"/>
</object>

The initial location_id value has many more variables in it than the amended one??? Further, when you want to add your own landscape, you are given yet another way to change that line, i.e.:

value="location_id=360630&landscape=http://myserver.com/landscapes/london/london.ywl"/>

It seems to me based on the examples, that you can have your own website data, or your own landscape image, but not both. I didn't see any examples shown to pick your own PWS data AND your own landscape?

Likewise, what about all the other data that was in the initial value before deleting it to add one or the other of these?

Thanks,
Lew
User avatar
Don
Posts: 687
Joined: Tue Sep 14, 2010 12:14 am
Name: Don
Location: Roseville, California, United States of America
Contact:

Re: Changes in the location field for the widget

Post by Don »

elpasotx wrote:Hello,

When you first generate the widget code for your PWS web site, the location field looks like this:

value="location_id=gn:5520993&location_name=El%20Paso&time_format=12&unit_system=us&background=#FFFFFF&copyright_bar=false"
/>

When you want to substitute your own PWS data, you are asked to amend it as follows:

"location_id=gn:5128581&current_weather_url=http://mysite.com/yowindow.xml"/>
</object>

The initial location_id value has many more variables in it than the amended one??? Further, when you want to add your own landscape, you are given yet another way to change that line, i.e.:

value="location_id=360630&landscape=http://myserver.com/landscapes/london/london.ywl"/>

It seems to me based on the examples, that you can have your own website data, or your own landscape image, but not both. I didn't see any examples shown to pick your own PWS data AND your own landscape?

Likewise, what about all the other data that was in the initial value before deleting it to add one or the other of these?

Thanks,
Lew
Hi Lew,

You can have both. See the example below. There is no need to delete the other parameters; each parameter is separated by "&" and they can be changed individually when or if necessary.

Don

<param name="flashvars" value="location_id=gn:2643743&location_name=London&current_weather_url=http://mysite.com/yowindow.xml&landscap ... _bar=false"
/>
elpasotx

Re: Changes in the location field for the widget

Post by elpasotx »

Thanks Don,

that is good to know. Perhaps where the two examples are that I pointed out, all the standard variables could be left in the example and use a color, bold, or some other method to show the changed part.

When I saw the example without the other initial variables, it wasn't obvious that the values were made such that the others could remain in.

Thanks
User avatar
Don
Posts: 687
Joined: Tue Sep 14, 2010 12:14 am
Name: Don
Location: Roseville, California, United States of America
Contact:

Re: Changes in the location field for the widget

Post by Don »

elpasotx wrote:Thanks Don,

that is good to know. Perhaps where the two examples are that I pointed out, all the standard variables could be left in the example and use a color, bold, or some other method to show the changed part.

When I saw the example without the other initial variables, it wasn't obvious that the values were made such that the others could remain in.

Thanks
Hi Lew,

If you like, you may make your suggestion here. http://he1.yowindow.com/forum/viewforum.php?f=5

Don
elpasotx

Re: Changes in the location field for the widget

Post by elpasotx »

Appreciate your help and have it up and running at http://elpasotxweather.com right now!
Post Reply