code & tutorials / typo3 extensions / mv_yahoo_weather home contact sitemap search print view add to favourites recommend site guestbook deutsch/german  

« a journey of a thousand miles starts in front of your feet. »
(lao tzu)

 

 

my_yahoo_weather

this extension is called "yahoo weather plugin (mv)" (key: mv_yahoo_weather). with this extension it is very easy to consume the yahoo(tm) weather rss and display a weather forecast for every possible location! this extension ist also listed on ter (typo3 extension repository,  http://typo3.org/extensions/) and can be downloaded from there. following you will find a short overview and some screenshots. for further information, please download the documentation (pdf/sxw).


features

  • very easy to install - download, plug'n'play
  • configuration over flexform with wizards
  • template based design - 1 template that you can adapt to your needs
  • language constants in locallang_db.xml - german & english maintained
  • internal cache system to prevent rss load on every page hit

screenshots (click to enlarge)







documentation download

from ter  http://typo3.org/extensions/ or one of the following direct links:

 

 manual.sxw (open office) /  manual.pdf (pdf)

 

extension download

 

from ter:  http://typo3.org/extensions/

IMPORTANT NOTES

1) YAHOO(tm) WEATHER RSS FEED CONDITIONS (Terms of use)

Source:

developer.yahoo.com/weather/

The feeds are provided free of charge for use by individuals and non-profit organizations for personal, non-commercial uses. We ask

that you provide attribution to Yahoo! Weather in connection with your use of the feeds.

If you provide this attribution in text, please use: "Yahoo! Weather." If you provide this attribution with a graphic, please use the

Yahoo! Weather logo that we have included in the feed itself.

We reserve all rights in and to the Yahoo! Weather logo, and your right to use the Yahoo! Weather logo is limited to providing

attribution in connection with these RSS feeds.

Yahoo! also reserves the right to require you to cease distributing these feeds at any time for any reason.

2) PLUGIN & CLASS AUTHOR

The author of this plugin and the included class is Marco Voegeli from Switzerland, Europe.

Webpage:

www.voegeli.li

Contact:

www2.voegeli.li/no_cache/contact.html

The author only provides a method for displaying the Yahoo (tm) weather rss content and is not responsible for the usage itself!

weather class fix: xml-feed unreachable

  1.  
  2.  
  3. // Thanks to Daniel Milosevic for the following code snippet!
  4. // It shows how to fix the problem if the XML file cannot be
  5. // reached, due to security settings on the server. It uses
  6. // curl.
  7.  
  8. //If fopen is accessible use below
  9. //if (!($fp = fopen($path, "r"))) {
  10. //die("Cannot open XML data file: $path");
  11. //return false;
  12. //}
  13.  
  14. //If fopen is not accessible because of server settings, use curl below - DM
  15. $file = $path;
  16. $ch = curl_init($file);
  17. $fp = @fopen("temp.xml", "w");
  18. curl_setopt($ch, CURLOPT_FILE, $fp);
  19. curl_setopt($ch, CURLOPT_HEADER, 0);
  20. curl_exec($ch);
  21. curl_close($ch);
  22. fclose($fp);
  23. $file = "temp.xml";
  24. if (!($fp = fopen($file, "r"))){
  25. die("Cannot open XML data file: $file");
  26. return false;
  27. }
  28. // - DM
  29.  
  30.  
 
     
  © by marco voegeli, switzerland       357093 visitors total / © & disclaimer up