Page 1 of 2
Yowindow for Current Conditions Icon (attempting)
Posted: Sat Apr 10, 2010 8:39 pm
by CNYWeather
I've been messing around trying to get Yowindow to display as my current condition icon.
Made some headway but I'm stuck. If anyone would like to give me some direction, it would be appreciated.
Ok so I've got WD uploading my current conditions and that works great
I have the icon for the dashboard
see here:
http://www.cnyweather.com/index.php
Here's the code I'm using
Code: Select all
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="130" height="130">
<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=5134295¤t_weather_url=http://cnyweather.com/yowindow-xml.php;&time_format=12&unit_system=us&background=#FFFFFF&mini_temperature=false&mini_time=false&mini_locationBar=false&mini_momentBar=false"/>
Weather widget requires the free Adoble Flash Player which you can <a href="http://get.adobe.com/flashplayer/">download here</a>.
</object>
Tony
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sat Apr 10, 2010 8:47 pm
by jmcmurry
Tony,
I think it might be because you have a wayward semi-colon at the end of your url.
- Jim
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sat Apr 10, 2010 8:54 pm
by CNYWeather
I got that Jim. Thanks but still showing Rome, NY metar.
I've tried getting rid of the location ID also, but that leads to it showing NYC metar.
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sat Apr 10, 2010 9:45 pm
by jmcmurry
Tony,
I compared with mine and they look the same except for a line break after <param name="flashvars" but I don't think that's the problem since you are getting your Rome NY METAR. Here's mine, why don't you try that with your width & height settings and see what happens.
Code: Select all
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" height="167" width="200" id="yoflash">
<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:5262113&location_name=Mauston¤t_weather_url=http://jcweather.us/yowindow-xml.php&time_format=12&unit_system=us&background=#FFFFFF&mini_temperature=false&mini_time=false&mini_locationBar=false&mini_momentBar=false" />
<div><br/>This requires<br/>Adobe Flash Player<br/><a href="http://get.adobe.com/flashplayer/" style="color: blue;" target="_blank"><b>Download Here</b></a></div>
</object>
- Jim
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sun Apr 11, 2010 1:17 pm
by CNYWeather
Think I've got it now
Code: Select all
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="130" height="130">
<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:5134295¤t_weather_url=http://cnyweather.com/yowindow-xml.php&time_format=12&unit_system=us&background=#FFFFFF&mini_temperature=false&mini_time=false&mini_locationBar=false&mini_momentBar=false"/>
Weather widget requires the free Adoble Flash Player which you can <a href="http://get.adobe.com/flashplayer/">download here</a>.
</object>
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sun Apr 11, 2010 1:48 pm
by jmcmurry
Good deal Tony.
- Jim
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sat Aug 14, 2010 2:14 pm
by Snowbie
Hi lads, I'm testing out atm.
I have used your code above and have gotten somewhere.
The confusing part.
I have used my location_id=gn:2962361 as the town closest to me but have just renamed it to my site 'Killucan' like Jim's code above.
Is this displaying my current conditions from my site or the location id closest me?
How do I get a location id for my sites location?
My conditions are displaying correct here
http://www.irlweather.com/yowindowxml.php
Also when closing "flashvars" using /> , New York city appears?
the code I'm using not too dissimilar from Jim
Code: Select all
<object type="application/x-shockwave-flash"
data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" height="167" width="200" id="yoflash">
<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:2962361&location_name=Killucan¤t_weather_url=http://www.irlweather.com/yo
windowxml.php&time_format=12&unit_system=metric&background=#FFFFFF&mini_temperature=false
&mini_time=false&mini_locationBar=false&mini_momentBar=false" />
<div><br/>This requires<br/>Adobe Flash Player<br/><a href="http://get.adobe.com/flashplayer/" style="color: blue;"
target="_blank"><b>Download Here</b></a></div>
</object>
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sat Aug 14, 2010 3:05 pm
by jmcmurry
Hi,
Elsewhere in this forum you can request a location for Killucan, but I think this should work for you anyway. Try removing the line breaks between your flashvars so it's more like
Code: Select all
<param name="flashvars" value="location_id=gn:2962361&location_name=Killucan¤t_weather_url=http://www.irlweather.com/yowindowxml.php&time_format=12&∓unit_system=metric&background=#FFFFFF&mini_temperature=false&mini_time=false&mini_locationBar=false&mini_momentBar=false" />
because that is probably breaking it. See where this way it's now closed at the very end?
- Jim
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Sat Aug 14, 2010 3:41 pm
by Snowbie
Hi Jim,
I done that now but it is showing values in us instead of metric now even though unit_system=metric is within the line?
Karl.
Code: Select all
<object type="application/x-shockwave-flash"
data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" height="167" width="200" id="yoflash">
<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:2962361&location_name=Killucan¤t_weather_url=http://www.irlweather.com/yo
windowxml.php&time_format=12&∓unit_system=metric&background=#FFFFFF&mini_temperature
=false&mini_time=false&mini_locationBar=false&mini_momentBar=false" />
<div><br/>This requires<br/>Adobe Flash Player<br/><a href="http://get.adobe.com/flashplayer/" style="color: blue;"
target="_blank"><b>Download Here</b></a></div>
</object>
Re: Yowindow for Current Conditions Icon (attempting)
Posted: Mon Aug 16, 2010 12:07 pm
by par
time_format=12&∓