My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Apr 29, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) commented on by NixMonk   -   This worked for me: curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USIL0847&u=f" | awk '/Current Conditions/{getline;sub(/<BR.*/,"");print}'
    This worked for me: curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USIL0847&u=f" | awk '/Current Conditions/{getline;sub(/<BR.*/,"");print}'
  • Mar 18, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) commented on by theturtleguy   -   thanks! i had the same issue too and didnt notice the F after grep
    thanks! i had the same issue too and didnt notice the F after grep
  • Mar 12, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) commented on by robbie.trencheny   -   thanks!
    thanks!
  • Mar 12, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) commented on by aimeri   -   Here is the code how it should be for F: curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURCITYCODEHERE&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' Note the f after HERE&u=f AND after grep -E '(Current Conditions:|F <---
    Here is the code how it should be for F: curl --silent "http://xml.weather.yahoo.com/forecastrss?p=YOURCITYCODEHERE&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' Note the f after HERE&u=f AND after grep -E '(Current Conditions:|F <---
  • Mar 12, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) commented on by robbie.trencheny   -   exactly
    exactly
  • Mar 12, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) commented on by aimeri   -   I believe it is due to the f at the end. If we use c instead it works perfectly.
    I believe it is due to the f at the end. If we use c instead it works perfectly.
  • Mar 12, 2009
    issue 1 (RSS issue due to update yahoo literally just made OR due to ...) reported by robbie.trencheny   -   What steps will reproduce the problem? 1. echo "Current Weather Conditions:" && curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0280&u=f" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' What is the expected output? What do you see instead? Weather for Danville California (94506) in farenheit. What version of the product are you using? On what operating system? ?, Mac 10.5.6 Please provide any additional information below. When I set the units to C it works perfectly I think that yahoo *literally* just changed the source output. Here is the output now: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <channel> <title>Yahoo! Weather - Danville, CA</title> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Danville__CA/*http://weather.yahoo.com /forecast/USCA0280_f.html</link> <description>Yahoo! Weather for Danville, CA</description> <language>en-us</language> <lastBuildDate>Thu, 12 Mar 2009 11:53 am PDT</lastBuildDate> <ttl>60</ttl> <yweather:location city="Danville" region="CA" country="US"/> <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/> <yweather:wind chill="59" direction="0" speed="0" /> <yweather:atmosphere humidity="53" visibility="10" pressure="30.13" rising="0" /> <yweather:astronomy sunrise="7:23 am" sunset="7:13 pm"/> <image> <title>Yahoo! Weather</title> <width>142</width> <height>18</height> <link>http://weather.yahoo.com</link> <url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url> </image> <item> <title>Conditions for Danville, CA at 11:53 am PDT</title> <geo:lat>37.81</geo:lat> <geo:long>-121.97</geo:long> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Danville__CA/*http://weather.yahoo.com /forecast/USCA0280_f.html</link> <pubDate>Thu, 12 Mar 2009 11:53 am PDT</pubDate> <yweather:condition text="Fair" code="34" temp="59" date="Thu, 12 Mar 2009 11:53 am PDT" /> <description><![CDATA[ <img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br /> <b>Current Conditions:</b><br /> Fair, 59 F<BR /> <BR /><b>Forecast:</b><BR /> Thu - Sunny. High: 63 Low: 40<br /> Fri - Sunny. High: 66 Low: 41<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Danville__CA/*http://weather.yahoo.com/ forecast/USCA0280_f.html">Full Forecast at Yahoo! Weather</a><BR/> (provided by The Weather Channel)<br/> ]]></description> <yweather:forecast day="Thu" date="12 Mar 2009" low="40" high="63" text="Sunny" code="32" /> <yweather:forecast day="Fri" date="13 Mar 2009" low="41" high="66" text="Sunny" code="32" /> <guid isPermaLink="false">USCA0280_2009_03_12_11_53_PDT</guid> </item> </channel> </rss><!-- api4.weather.sp1.yahoo.com uncompressed/chunked Thu Mar 12 12:41:22 PDT 2009 --> Notice: <b>Current Conditions:</b><br /> Fair, 59 F<BR />
    What steps will reproduce the problem? 1. echo "Current Weather Conditions:" && curl --silent "http://xml.weather.yahoo.com/forecastrss?p=USCA0280&u=f" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' What is the expected output? What do you see instead? Weather for Danville California (94506) in farenheit. What version of the product are you using? On what operating system? ?, Mac 10.5.6 Please provide any additional information below. When I set the units to C it works perfectly I think that yahoo *literally* just changed the source output. Here is the output now: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <channel> <title>Yahoo! Weather - Danville, CA</title> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Danville__CA/*http://weather.yahoo.com /forecast/USCA0280_f.html</link> <description>Yahoo! Weather for Danville, CA</description> <language>en-us</language> <lastBuildDate>Thu, 12 Mar 2009 11:53 am PDT</lastBuildDate> <ttl>60</ttl> <yweather:location city="Danville" region="CA" country="US"/> <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/> <yweather:wind chill="59" direction="0" speed="0" /> <yweather:atmosphere humidity="53" visibility="10" pressure="30.13" rising="0" /> <yweather:astronomy sunrise="7:23 am" sunset="7:13 pm"/> <image> <title>Yahoo! Weather</title> <width>142</width> <height>18</height> <link>http://weather.yahoo.com</link> <url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url> </image> <item> <title>Conditions for Danville, CA at 11:53 am PDT</title> <geo:lat>37.81</geo:lat> <geo:long>-121.97</geo:long> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Danville__CA/*http://weather.yahoo.com /forecast/USCA0280_f.html</link> <pubDate>Thu, 12 Mar 2009 11:53 am PDT</pubDate> <yweather:condition text="Fair" code="34" temp="59" date="Thu, 12 Mar 2009 11:53 am PDT" /> <description><![CDATA[ <img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br /> <b>Current Conditions:</b><br /> Fair, 59 F<BR /> <BR /><b>Forecast:</b><BR /> Thu - Sunny. High: 63 Low: 40<br /> Fri - Sunny. High: 66 Low: 41<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Danville__CA/*http://weather.yahoo.com/ forecast/USCA0280_f.html">Full Forecast at Yahoo! Weather</a><BR/> (provided by The Weather Channel)<br/> ]]></description> <yweather:forecast day="Thu" date="12 Mar 2009" low="40" high="63" text="Sunny" code="32" /> <yweather:forecast day="Fri" date="13 Mar 2009" low="41" high="66" text="Sunny" code="32" /> <guid isPermaLink="false">USCA0280_2009_03_12_11_53_PDT</guid> </item> </channel> </rss><!-- api4.weather.sp1.yahoo.com uncompressed/chunked Thu Mar 12 12:41:22 PDT 2009 --> Notice: <b>Current Conditions:</b><br /> Fair, 59 F<BR />
  • Mar 11, 2009
    Desktop-1.jpg (How it should look like, GeekTool Weather Feed) file uploaded by rodolfo.novak
  • Mar 11, 2009
    Desktop.jpg (How it should look like, GeekTool Weather Feed) file uploaded by rodolfo.novak
  • Mar 11, 2009
    Project sh-weather-rss created by rodolfo.novak   -   This is a small script to display Weather RSS in the terminal (to be used in GeekTools)
    This is a small script to display Weather RSS in the terminal (to be used in GeekTools)
 
Hosted by Google Code