MY STATION WIDGET ywl by xml

YoWindow widget Questions, Suggestions and Bugs
Maresme

MY STATION WIDGET ywl by xml

Post 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
Last edited by Maresme on Tue Oct 30, 2012 9:30 pm, edited 2 times in total.
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: MY STATION WIDGET CANET DE MAR

Post 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:
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
Maresme

Re: MY STATION WIDGET CANET DE MAR

Post 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
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: MY STATION WIDGET CANET DE MAR

Post 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.
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Maresme

Re: MY STATION WIDGET CANET DE MAR

Post 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
Last edited by Maresme on Tue Oct 30, 2012 9:32 pm, edited 3 times in total.
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: MY STATION WIDGET CANET DE MAR

Post 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?
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Maresme

Re: MY STATION WIDGET CANET DE MAR

Post 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
Last edited by Maresme on Tue Oct 30, 2012 9:32 pm, edited 1 time in total.
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: MY STATION WIDGET CANET DE MAR

Post 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
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
Maresme

Re: MY STATION WIDGET CANET DE MAR

Post by Maresme »

I have not touched anything ... and now it works .... ¿¿...???

Anyway thank you very much for your kindness
Maresme

Re: MY STATION WIDGET CANET DE MAR

Post by Maresme »

PS: I just uploaded the file to the server using Firefox crossdomain instead of Safari

Thanks
Post Reply