Skip to content

taskinfa/mgm-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

MGM Weather (FT) - Home Assistant Integration


🇬🇧 English

MGM Weather (FT) is a custom integration for Home Assistant that retrieves weather data from the Turkish State Meteorological Service (MGM) via a custom proxy API. It provides accurate, localized weather conditions and forecasts for cities in Turkey.

🌟 Features

  • Real-time Data: Fetches current temperature, humidity, wind speed, pressure, and weather conditions.
  • Daily Forecast: Provides a 5-day weather forecast.
  • Easy Configuration: Setup directly via the Home Assistant UI (Config Flow).
  • Multi-City Support: Add as many cities as you like.
  • Localized: Fully compatible with Turkish locations and weather codes.

🚀 Installation

Method 1: HACS (Recommended)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
  1. Open HACS in Home Assistant.
  2. Go to Integrations > click the 3 dots in the top right corner > Custom repositories.
  3. Paste the URL of this repository: https://github.com/taskinfa/mgm-weather
  4. Select Integration as the category and click Add.
  5. Search for "MGM Hava Durumu (FT)" and install it.
  6. Restart Home Assistant.

Method 2: Manual

  1. Download the latest release.
  2. Copy the custom_components/mgm_weather folder to your Home Assistant's custom_components directory.
  3. Restart Home Assistant.

⚙️ Configuration

Open your Home Assistant instance and start setting up a new integration.
  1. Go to Settings > Devices & Services.
  2. Click + ADD INTEGRATION in the bottom right corner.
  3. Search for "MGM Hava Durumu (FT)".
  4. Enter your city name (e.g., Istanbul, Afyonkarahisar, Ankara) in the popup box.
  5. Click Submit.

📊 Dashboard Card Example

You can use the standard weather card or a custom card like Mushroom.

type: weather-forecast
entity: weather.mgm_weather_mgm_afyonkarahisar
show_current: true
show_forecast: true
forecast_type: daily
name: Afyonkarahisar
forecast_slots: 6
grid_options:
rows: 4
columns: full

❤️ Credits & Disclaimer

  • Developer: Fatih Taşkın
  • Data Source: Turkish State Meteorological Service (MGM) via proxy API.
  • This is a custom integration and is not officially affiliated with MGM.

🇹🇷 Türkçe Kılavuz

MGM Weather (FT), Türkiye Meteoroloji Genel Müdürlüğü (MGM) verilerini özel bir proxy API üzerinden Home Assistant'a aktaran özel bir entegrasyondur. Türkiye'deki şehirler için en doğru anlık hava durumu ve tahmin verilerini sağlar.

🌟 Özellikler

  • Anlık Veri: Sıcaklık, nem, rüzgar hızı, basınç ve hava durumu ikonunu anlık çeker.
  • Günlük Tahmin: 5 günlük hava tahmini sunar.
  • Kolay Kurulum: Home Assistant arayüzü üzerinden (Config Flow) saniyeler içinde kurulur.
  • Çoklu Şehir: İstediğiniz kadar farklı şehir ekleyebilirsiniz.
  • Yerelleştirilmiş: Türkiye lokasyonları ve MGM hava durumu kodlarıyla tam uyumludur.

🚀 Kurulum

Yöntem 1: HACS (Önerilen)

Home Assistant örneğinizi açın ve Home Assistant Topluluk Mağazası içinde bir depo açın.
  1. Home Assistant'ta HACS menüsünü açın.
  2. Integrations (Entegrasyonlar) kısmına gidin > sağ üstteki üç noktaya tıklayın > Custom repositories (Özel depolar).
  3. Bu reponun adresini yapıştırın: https://github.com/taskinfa/mgm-weather
  4. Kategori olarak Integration seçin ve Ekle deyin.
  5. Listeden "MGM Hava Durumu (FT)" entegrasyonunu bulup indirin.
  6. Home Assistant'ı Yeniden Başlatın.

Yöntem 2: Manuel

  1. En son sürümü indirin.
  2. custom_components/mgm_weather klasörünü Home Assistant dizininizdeki custom_components klasörünün içine kopyalayın.
  3. Home Assistant'ı Yeniden Başlatın.

⚙️ Yapılandırma

Home Assistant örneğinizi açın ve yeni bir entegrasyon ayarlamaya başlayın.
  1. Ayarlar > Cihazlar ve Hizmetler menüsüne gidin.
  2. Sağ alttaki + ENTEGRASYON EKLE butonuna tıklayın.
  3. Arama kutusuna "MGM Hava Durumu (FT)" yazın.
  4. Açılan pencereye şehir adını yazın (Örn: Istanbul, Afyonkarahisar, Ankara).
  5. Gönder butonuna tıklayın.

📊 Kart Örneği

Standart hava durumu kartını veya Mushroom gibi özel kartları kullanabilirsiniz.

type: weather-forecast
entity: weather.mgm_weather_mgm_afyonkarahisar
show_current: true
show_forecast: true
forecast_type: daily
name: Afyonkarahisar
forecast_slots: 6
grid_options:
rows: 4
columns: full

❤️ Emeği Geçenler & Yasal Uyarı

  • Geliştirici: Fatih Taşkın
  • Veri Kaynağı: Türkiye Meteoroloji Genel Müdürlüğü (MGM).
  • Bu özel bir entegrasyondur ve MGM ile resmi bir bağlantısı yoktur.

About

Home Assistant custom integration for Turkish State Meteorological Service (MGM). Türkiye Meteoroloji verilerini (anlık durum ve 5 günlük tahmin) Home Assistant'a entegre eden, kurulumu kolay özel entegrasyon.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages