Page 1 of 2

MY STATION WIDGET ywl by xml

Posted: Wed Sep 19, 2012 7:41 pm
by Maresme
Hello,

I'm trying to place the widget on my weather station Canet de Mar in my website without success. Since the population is not active yet I have placed provisionally ID from the nearest town.
But does not work using my data...Can you tell me my mistake ?


<div style="width:620px; height:450px;">
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="620" height="450">
<param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
<param name="allowfullscreen" value="true"/>
<param name="wmode" value="opaque"/>
<param name="bgcolor" value="#FFFFFF"/>
<param name="flashvars"
value="location_id=gn:3127007&location_name=Canet%20de%20Mar&current_weather_url=http://....../yowindow.xml;time_format=24&unit_system=metric&lang=es&background=#FFFFFF&copyright_bar=false"
/>
<a href="http://yowindow.com/weatherwidget.php"
style="width:620px;height:450px;display: block;text-indent: -50000px;font-size: 0px;background:#DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"
>Widget del tiempo atmosférico</a>
</object>
</div>
<div style="width: 620px; height: 15px; font-size: 14px; font-family: Arial,Helvetica,sans-serif;">
<span style="float:left;"><a target="_top" href="http://yowindow.com?client=widget&link=copyright" style="color: #2fa900; font-weight:bold; text-decoration:none;" title="Widget del tiempo atmosférico">YoWindow.com</a></span>
<span style="float:right; color:#888888;">Forecast by&nbsp;<a href="http://yr.no" style="color: #2fa900; text-decoration:none;">yr.no</a></span>
</div>



Thanks

Re: MY STATION WIDGET CANET DE MAR

Posted: Thu Sep 20, 2012 10:28 am
by hermanz
Hi

Your site http://info.canetmeteoinfo.com is not configured. I see error's
You have to place the file crossdomain.xml in the root.

the file http://info.canetmeteoinfo.com/yowindow.xml have 1 error

value="location_id=gn:3127007&location_name=Canet%20de%20Mar&current_weather_url=http://info.canetmeteoinfo.com/yowindow.xml&amp;time_format=24&unit_system=metric&lang=es&background=#FFFFFF&copyright_bar=false"

After this the content is good.

gr.
Herman :beer:

Re: MY STATION WIDGET CANET DE MAR

Posted: Thu Sep 20, 2012 8:29 pm
by Maresme
Thank you very much for the answer

Now I have the crossdomain in the root directory of my website and on the change in the HTML. Goes perfect on my desk from the start... but without providing continuous data from my weather station!

http://www.canetmeteoinfo.com

that may be due to?????

Thanks again

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 9:20 am
by ikarus1969
Maresme wrote:that may be due to?????
That may be due to that the yowindow.xml is not at the location you provide in the sourcecode:

your sourcecode:

Code: Select all

<param name="flashvars"
value="location_id=gn:3127007&location_name=Canet%20de%20Mar&current_weather_url=
http://canetmeteoinfo.com/yowindow.xml&time_format=24&unit_system=metric&lang=es&background=#FFFFFF&copyright_bar=false"
    />
at "http://canetmeteoinfo.com/" there is no yowindow.xml.

error-message when trying to look at the yowindow.xml:
YoWindow - canet de mar - yowindow.xml not found.jpg
Please correct the path to the yowindow.xml, try again and tell us if that helped you out.

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 5:13 pm
by Maresme
....... is a subdomain ... http://.........com/yowindow.xml
should operate.

I can see this ...

<!-- http://www.canetmeteoinfo.com 21/09/12 %time% --><!-- Remove auto_update section if wanting the default, otherwise in seconds --><!-- Remove snow section if not inputting snow --><response><current_weather><auto_update><interval value="300"/></auto_update><temperature><current value="23.4"/><feels_like value="23"/></temperature><humidity value="72"/><pressure value="1016" trend="-1"/><wind><speed value="1.6"/><gusts value="2.6"/><direction value="180"/></wind><sky><icon id="0" format="wd"/><description value="Seco"/><precipitation><rain><rate value="0.0"/><daily_total value=" 0.0"/></rain><snow><level value="0" unit="inch"/></snow></precipitation></sky><uv value="0.0"/></current_weather></response>



thank you very much

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 5:42 pm
by ikarus1969
Hi!

The path to the yowindow.xml is ok now (thank you for correcting the sourcecode!). It is accessible.

But the crossdomain.xml is malformed - look at the screenshot:
YoWindow - malformed crossdomain.xml.jpg
please correct it - the file has to be a normal text-file.


Another thing: i am not sure if you have to put the crossdomain.xml in the root of the sub-domain (which would be http://info.canetmeteoinfo.com/) or at the root of the domain (which would be http://canetmeteoinfo.com/yowindow.xml).

Does anyone know that? hermanz maybe?

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 6:03 pm
by Maresme
I can see for this Firefox

<cross-domain-policy><allow-access-from domain="*" secure="true"/></cross-domain-policy>.........http://..............com/crossdomain.xml

but my site does not work ¿¿...???

Thanks

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 7:48 pm
by hermanz
Hi

If you place the code http://info.canetmeteoinfo.com/yowindow.xml then http://info.canetmeteoinfo.com/crossdomain.xml.
Otherwise replace the 2 files on http://www.canetmeteoinfo.com.
Now you can use the widget with the following code on http://www.canetmeteoinfo.com

<div style="width:620px; height:450px;">
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="620" height="450">
<param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
<param name="allowfullscreen" value="true"/>
<param name="wmode" value="opaque"/>
<param name="bgcolor" value="#FFFFFF"/>
<param name="flashvars" value="location_id=gn:3127007&location_name=Canet%20de%20Mar&current_weather_url=http://info.canetmeteoinfo.com/yowindow ... _bar=false"
/>
<a href="http://yowindow.com/weatherwidget.php"
style="width:620px;height:450px;display: block;text-indent: -50000px;font-size: 0px;background:#DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"
>Widget del tiempo atmosférico</a>
</object>
</div>
<div style="width: 620px; height: 15px; font-size: 14px; font-family: Arial,Helvetica,sans-serif;">
<span style="float:left;"><a target="_top" href="http://yowindow.com?client=widget&link=copyright" style="color: #2fa900; font-weight:bold; text-decoration:none;" title="Widget del tiempo atmosférico">YoWindow.com</a></span>
<span style="float:right; color:#888888;">Forecast by&nbsp;<a href="http://yr.no" style="color: #2fa900; text-decoration:none;">yr.no</a></span>
</div>

Look at http://hermanz.nl/index.php/nl/canet . Change the value manual and see the changes on the website.

gr.
Herman

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 7:57 pm
by Maresme
I have not touched anything ... and now it works .... ¿¿...???

Anyway thank you very much for your kindness

Re: MY STATION WIDGET CANET DE MAR

Posted: Fri Sep 21, 2012 9:45 pm
by Maresme
PS: I just uploaded the file to the server using Firefox crossdomain instead of Safari

Thanks