Page 1 of 1

Changes in the location field for the widget

Posted: Wed Sep 19, 2012 9:03 pm
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

Re: Changes in the location field for the widget

Posted: Wed Sep 19, 2012 9:44 pm
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"
/>

Re: Changes in the location field for the widget

Posted: Thu Sep 20, 2012 2:48 am
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

Re: Changes in the location field for the widget

Posted: Tue Sep 25, 2012 10:38 pm
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

Re: Changes in the location field for the widget

Posted: Wed Sep 26, 2012 2:42 am
by elpasotx
Appreciate your help and have it up and running at http://elpasotxweather.com right now!