Title: Weather Widget
Author: sk33t
Published: <strong>26 Mart 2008</strong>
Last modified: 16 Temmuz 2009

---

Eklentilerde ara

Bu eklenti, **WordPress’in son 3 ana dağıtımı ile test edilmemiş**. Artık bakımı
yapılmıyor veya desteklenmiyor olabilir ve WordPress’in daha güncel sürümleriyle
birlikte kullanıldığında uyumluluk sorunları olabilir.

![](https://s.w.org/plugins/geopattern-icon/weather-widget.svg)

# Weather Widget

 [sk33t](https://profiles.wordpress.org/sk33t/) tarafından

[İndir](https://downloads.wordpress.org/plugin/weather-widget.zip)

 * [Detaylar](https://tr.wordpress.org/plugins/weather-widget/#description)
 * [İncelemeler](https://tr.wordpress.org/plugins/weather-widget/#reviews)
 *  [Kurulum](https://tr.wordpress.org/plugins/weather-widget/#installation)
 * [Geliştirme](https://tr.wordpress.org/plugins/weather-widget/#developers)

 [Destek](https://wordpress.org/support/plugin/weather-widget/)

## Açıklama

#### Requirements

 * WordPress 2.2 or 2.0.x/2.1.x with WordPress Widgets
 * PHP 4.3.0 or greater (needed for function file_get_contents)

#### Location

The location can either be a zip code for US users or the locid. To find the locid,
you can do a search using http://xoap.weather.com/search/search?where=[search parameters].
This will return an XML file with search results and their corresponding locid’s.

You can also find it using the Weather.com website. After searching for and selecting
your city, you will be sent to a url that will look something like, http://www.weather.
com/outlook/driving/interstate/local/USTX0617?from=search_city, where USTX0617 is
the locid.

#### Image Hosting

I’ve provided the images used and provided by weather.com [here](http://nothingoutoftheordinary.com/weatherimages.tar.gz).
If you want to host your own images, extract and upload the files, then, in the 
admin panel, edit the ‘Image Location’ field to point to your directory of images.
Make sure to have the trailing slash.

If you don’t use your own images, you are free to use the ones that I’ve hosted,
which are located at http://nothingoutoftheordinary.com/weatherimages/

### Formatting

You can edit ‘Widget Formatting’ to change how the info is displayed. To access 
the variables, use this formatting:

 * %loc% – Location
 * %temp% – Current temperature
 * %feels% – Feels like temperature
 * %icon% – The icon referring to the current weather. This is just a number
 * %iconhref% – The location of the image with your set image location at the front
 * %attribution% – The link supposedly required to be displayed. Weather data provided
   by weather.com®

The default formatting is:

<img src=”%iconhref%” alt=”%cond%” style=”float:right;” />
 %loc%<br /> <span style
=”font-size: 150%;”>%temp% °F</span> (%feels% °F)<br /> <span style=”font-size: 
65%; float: right;”>%attribution%</a>

## Ekran Görüntüleri

[⌊Default Display⌉⌊Default Display⌉[

Default Display

[⌊Admin Panel⌉⌊Admin Panel⌉[

Admin Panel

## Yükleme

 1. Download weather-widget.zip
 2. Extract and upload weather.php to the plugins/ directory
 3. Enable Weather Widget in the Plugin admin panel
 4. In widget admin panel, place Weather in the sidebar, and edit it to enter your 
    location

## SSS

  Nothing shows up when I try it or I get an error that file_get_contents doesn’t
exist

This script relies on the function file_get_contents to fetch the RSS feed. If your
host doesn’t allow the use of it, but allows the use of curl, you can replace

    ```
    $stories = file_get_contents($uri);
    ```

with

    ```
    $ch = curl_init();
    $timeout = 5; // set to zero for no timeout
    curl_setopt ($ch, CURLOPT_URL, $uri);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $stories = curl_exec($ch);
    curl_close($ch);
    ```

  What does cache time mean?

It’s the number of seconds before the content will be requested again. You can set
this to be 0 or -1 to not use the caching system. If you edit any of the widgets
in the widget admin panel, the cache is cleared.

## İncelemeler

Bu eklenti için herhangi bir değerlendirme bulunmuyor.

## Katkıda Bulunanlar ve Geliştiriciler

“Weather Widget” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda
bulunmuşlardır.

Katkıda bulunanlar

 *   [ sk33t ](https://profiles.wordpress.org/sk33t/)

[“Weather Widget” eklentisini dilinize çevirin.](https://translate.wordpress.org/projects/wp-plugins/weather-widget)

### Geliştirmeyle ilgilenir misiniz?

[Kodu görüntüleyin](https://plugins.trac.wordpress.org/browser/weather-widget/),
[SVN deposuna](https://plugins.svn.wordpress.org/weather-widget/) göz atın ya da
[RSS](https://plugins.trac.wordpress.org/log/weather-widget/?limit=100&mode=stop_on_copy&format=rss)
ile [geliştirme günlüğüne](https://plugins.trac.wordpress.org/log/weather-widget/)
abone olun.

## Meta

 *  Sürüm **1.6**
 *  Son güncelleme **17 yıl önce**
 *  Etkin kurulumlar **80+**
 *  WordPress sürümü ** 2.0.2 veya üstü **
 *  Test edilen sürüm **2.8.1**
 *  Dil
 * [English (US)](https://wordpress.org/plugins/weather-widget/)
 * Etiketler
 * [weather](https://tr.wordpress.org/plugins/tags/weather/)[weather.com](https://tr.wordpress.org/plugins/tags/weather-com/)
   [widget](https://tr.wordpress.org/plugins/tags/widget/)
 *  [Gelişmiş görünüm](https://tr.wordpress.org/plugins/weather-widget/advanced/)

## Puanlar

Henüz inceleme gönderilmedi.

[Your review](https://wordpress.org/support/plugin/weather-widget/reviews/#new-post)

[Tüm değerlendirmeleri görün](https://wordpress.org/support/plugin/weather-widget/reviews/)

## Katkıda bulunanlar

 *   [ sk33t ](https://profiles.wordpress.org/sk33t/)

## Destek

Söyleyeceğiniz bir şey mi var? Yardım mı lazım?

 [Destek forumunu görüntüle](https://wordpress.org/support/plugin/weather-widget/)

## Bağış yap

Bu eklentinin geliştirilmesini desteklemek ister misiniz?

 [ Bu eklentiye bağış yap ](http://ja.meswilson.com/blog/)