yowindow.xml-connect to a PWS

YoWindow widget Questions, Suggestions and Bugs
rf-leo

yowindow.xml-connect to a PWS

Post by rf-leo »

Hello,

i have a little problem to connect to my own PWS from the widget.
Under the following links you can find my yowindow.xml
1. http://meldung.krentruperhagen.de/yowindow.xml
2. http://fuhrmann.selfhost.de:5590/yowindow.xml

On each domain i have placed a crossdomain.xml and it works. The yowindow.xml is realy in the same place as the crossdomain.
But when the widget try to connect to the yowindow.xml nothing will be displayed from my PWS.
In the error-log from the first domain i get these error message:
[Sun Oct 17 18:29:14 2010] [error] [client 84.134.227.208] File does not exist: /var/www/webxx/html/meldung/yowindow.xml;
[Sun Oct 17 18:49:09 2010] [error] [client 84.134.227.208] File does not exist: /var/www/webxx/html/meldung/yowindow.xml;
and the error message from the second is:
Sun, 17 Oct 2010 18:44:37 84.134.227.208 200 OK GET /fuhrmann.selfhost.de/crossdomain.xml Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Sun, 17 Oct 2010 18:44:38 84.134.227.208 404 Not Found GET /fuhrmann.selfhost.de/yowindow.xml;?noCache=12BBB1418F0 Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
And now, my question is:
Why not connect the widget to my yowindow.xml?
I don't find a mistake and I'm grateful for any ideas!

Thanks a lot ..

Rainer :?
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: yowindow.xml-connect to a PWS

Post by hermanz »

Hi Rainer

your crossdomain should be:

<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy (View Source for full doctype...)>
- <cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" secure="true" />
<allow-http-request-headers-from domain="*" headers="*" secure="true" />
</cross-domain-policy>

You can test our first yowindow.xml at my site
look at http://hermanz.nl/index.php?option=com_ ... Itemid=243.

Change a value in your xml and you see the results

The second url containts :5590 , that means that you use port 5590. You have to place yowindow.xml in a directory and not behind a port.
gr.
Herman :D
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
rf-leo

Re: yowindow.xml-connect to a PWS

Post by rf-leo »

Hi Herman,

thanks for your help!

I have test my first yowindow.xml on your site and all was fine.

Then, on my local development environment I tried your crossdomain.xml with my second link and nothing were displayed from my own PWS. In a Browser you can connect to the right yowindow.xml, my local Yowindow for desktop can connect too. Only the widget can not connect to the xml file.
The error message is always the same as above:
a 200 OK GET /fuhrmann.selfhost.de/crossdomain.xml for the crossdomain and
a 404 Not Found GET /fuhrmann.selfhost.de/yowindow.xml for the yowindow.xml
Mon, 18 Oct 2010 21:56:41 79.226.160.203 200 OK GET /fuhrmann.selfhost.de/crossdomain.xml Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Mon, 18 Oct 2010 21:56:41 79.226.160.203 404 Not Found GET /fuhrmann.selfhost.de/yowindow.xml;?noCache=12BC0EA4A8C Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Likewise I tried the following in the crossdomain:
  • <allow-access-from domain="*.yowindow.com" to-ports="5590"/>
and the result is ever the same.

I don't find the reason why not connect the widget to my yowindow.xml.
You still have any ideas?

Thank you!

Rainer
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: yowindow.xml-connect to a PWS

Post by hermanz »

Hi Rainer

For yowindow.xml you do not need crossdomain.xml
Crossdomain is required when you use a landscape on your own site.
What code are you using.

I have use:

<div style="width: 600px; height: 400px;">
<object data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="600" height="400" type="application/x-shockwave-flash">
<param name="data" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
<param name="allowfullscreen" value="true" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#FFFFFF" />
<param name="flashvars" value="location_id=gn:2750325&current_weather_url=http://meldung.krentruperhagen.de/yowin ... _bar=false" />
<param name="src" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
</object>
</div>

gr.
Herman
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
rf-leo

Re: yowindow.xml-connect to a PWS

Post by rf-leo »

Hi Herman,

I'm a little bemused. I think i need urgend a crossdomain on my site for the widget. The yowindow server has to read my own yowindow.xml. :?: :?: :?:

Today, it's late ...

Good night and thank you for your support!

Rainer
rf-leo

Re: yowindow.xml-connect to a PWS

Post by rf-leo »

Hello to you all,

I've found my mistake, it was a little semicolon at a wrong place in my code: :oops:
I'am sorry! But sometimes you don't see the simplest tings ...

Have a nice evening!


Rainer
tiki

Re: yowindow.xml-connect to a PWS

Post by tiki »

Hey

I have this problem too. My homepage widget ignores my PWS yowindow.xml file.

My yowindow.xml outputs this

- <response>
- <current_weather>
- <temperature unit="c">
<temperature value="0.1" />
<feels_like value="-1.9" />
</temperature>
<humidity value="98" />
<pressure value="975.6" unit="hPa" />
- <wind>
<speed value="0" unit="m/s" />
<direction value="0" />
<gusts value="0" unit="m/s" />
</wind>
- <sky>
- <precipitation>
- <rain>
<rain rate="0.0" unit="mm" />
<daily_total value="0.0" unit="mm" />
</rain>
</precipitation>
</sky>
- <auto_update>
<interval value="900" />
</auto_update>
</current_weather>
</response>

I think it is fine but my homepage widget ignore it. I test homepage widget with some other yowindow.xml adress and it work fine. I put my homepage code her too

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Yowindow</title>
</head>
<body style="color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"
 alink="#cccccc" link="#cccccc" vlink="#cccccc">
<div style="text-align: center;"><br>
<br>
<hr style="width: 100%; height: 2px;"><br>
<br>
<div style="width: 600px; height: 400px;">
<object type="application/x-shockwave-flash"
 data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" height="400"
 width="600"> <param name="movie"
 value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"><param
 name="allowfullscreen" value="true"> <param name="wmode"
 value="opaque"> <param name="bgcolor" value="#FFFFFF"> <param
 name="flashvars"
 value="location_id=gn:650946&current_weather_url=http://xxxxxxxx.fi/xxx/yowindow.xml&time_format=24&unit_system=metric&lang=fi-su&background=#FFFFFF&lang=fi"><a
 href="http://yowindow.com/?client=widget&link=stub"
 style="background: rgb(221, 221, 255) url(http://yowindow.com/img/logo.png) no-repeat scroll 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 600px; height: 400px; display: block; text-indent: -50000px; font-size: 0px;">Free
Weather Widget</a> </object>
</div>
<div
 style="width: 600px; height: 15px; font-size: 12px; font-family: Arial,Helvetica,sans-serif;">
<span style="float: left;"><a target="_top"
 href="http://yowindow.com/?client=widget&link=copyright"
 style="color: rgb(47, 169, 0); text-decoration: none;"
 title="Free Weather Widget">YoWindow.com</a></span>
<span style="float: right; color: rgb(136, 136, 136);">Forecast
by&nbsp;<a href="http://yr.no/"
 style="color: rgb(47, 169, 0); text-decoration: none;">yr.no</a></span>
</div>
<br>
</div>
</body>
</html>
Can anyone see where problem is?
Last edited by tiki on Sat Feb 05, 2011 10:06 am, edited 1 time in total.
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: yowindow.xml-connect to a PWS

Post by hermanz »

Hi Tiki

http://xxxxxxxx.fi/xxx/yowindow.xml is a wrong address


gr.
Herman :D
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
tiki

Re: yowindow.xml-connect to a PWS

Post by tiki »

hermanz wrote:Hi Tiki

http://xxxxxxxx.fi/xxx/yowindow.xml is a wrong address


gr.
Herman :D
Hi

You are right :) . Can you see anything else wrong here?
tiki

Re: yowindow.xml-connect to a PWS

Post by tiki »

tiki wrote:Hey

I have this problem too. My homepage widget ignores my PWS yowindow.xml file.

My yowindow.xml outputs this

- <response>
- <current_weather>
- <temperature unit="c">
<temperature value="0.1" />
<feels_like value="-1.9" />
</temperature>
<humidity value="98" />
<pressure value="975.6" unit="hPa" />
- <wind>
<speed value="0" unit="m/s" />
<direction value="0" />
<gusts value="0" unit="m/s" />
</wind>
- <sky>
- <precipitation>
- <rain>
<rain rate="0.0" unit="mm" />
<daily_total value="0.0" unit="mm" />
</rain>
</precipitation>
</sky>
- <auto_update>
<interval value="900" />
</auto_update>
</current_weather>
</response>

I think it is fine but my homepage widget ignore it. I test homepage widget with some other yowindow.xml adress and it work fine. I put my homepage code her too

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Yowindow</title>
</head>
<body style="color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"
 alink="#cccccc" link="#cccccc" vlink="#cccccc">
<div style="text-align: center;"><br>
<br>
<hr style="width: 100%; height: 2px;"><br>
<br>
<div style="width: 600px; height: 400px;">
<object type="application/x-shockwave-flash"
 data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" height="400"
 width="600"> <param name="movie"
 value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"><param
 name="allowfullscreen" value="true"> <param name="wmode"
 value="opaque"> <param name="bgcolor" value="#FFFFFF"> <param
 name="flashvars"
 value="location_id=gn:650946&current_weather_url=http://xxxxxxxx.fi/xxx/yowindow.xml&time_format=24&unit_system=metric&lang=fi-su&background=#FFFFFF&lang=fi"><a
 href="http://yowindow.com/?client=widget&link=stub"
 style="background: rgb(221, 221, 255) url(http://yowindow.com/img/logo.png) no-repeat scroll 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 600px; height: 400px; display: block; text-indent: -50000px; font-size: 0px;">Free
Weather Widget</a> </object>
</div>
<div
 style="width: 600px; height: 15px; font-size: 12px; font-family: Arial,Helvetica,sans-serif;">
<span style="float: left;"><a target="_top"
 href="http://yowindow.com/?client=widget&link=copyright"
 style="color: rgb(47, 169, 0); text-decoration: none;"
 title="Free Weather Widget">YoWindow.com</a></span>
<span style="float: right; color: rgb(136, 136, 136);">Forecast
by&nbsp;<a href="http://yr.no/"
 style="color: rgb(47, 169, 0); text-decoration: none;">yr.no</a></span>
</div>
<br>
</div>
</body>
</html>
Can anyone see where problem is?
And one thing more. In my windows PC Yowindow software can read that yowindow.xml file from server. Only temperature is showing NaN C. Maybe this gives ideas what's wrong?
Post Reply