Turkish Weather Application

Turkish Weather Application

By emredeveloper GitHub

-

Overview

What is the Turkish Weather Application?

The Turkish Weather Application is a tool that provides weather information for cities in Turkey using the Modular Command Protocol (MCP).

How to use the Turkish Weather Application?

To use the application, install Python 3.11 or higher, install the required packages, obtain an OpenWeatherMap API key, and run the application using the command python weather.py.

Key features of the Turkish Weather Application?

  • Current weather updates for cities in Turkey
  • Hourly weather forecasts
  • Air quality information
  • Comparison of weather between cities
  • Activity suggestions based on weather conditions
  • Weather alerts

Use cases of the Turkish Weather Application?

  1. Checking the current weather in Istanbul.
  2. Comparing weather conditions between Ankara and Izmir.
  3. Receiving alerts for severe weather conditions.
  4. Planning outdoor activities based on weather forecasts.

FAQ from the Turkish Weather Application?

  • Is the application free to use?

Yes! The Turkish Weather Application is free to use for everyone.

  • What programming language is used for the application?

The application is developed in Python.

  • How can I get the weather data?

The application uses the OpenWeatherMap API to fetch weather data.

Content

Turkish Weather Application

Bu uygulama, Türkiye'deki şehirler için hava durumu bilgilerini sağlayan bir MCP (Model Context Protocol) aracıdır.

Özellikler

  • Türkiye'deki şehirler için güncel hava durumu
  • Saatlik hava durumu tahminleri
  • Hava kalitesi bilgileri
  • Şehirler arası hava karşılaştırması
  • Hava durumuna göre aktivite önerileri
  • Hava durumu alarmları

Kurulum

  1. Python 3.11 veya üstünü yükleyin
  2. Gerekli paketleri yükleyin: pip install httpx mcp
  3. OpenWeatherMap API anahtarı alın (https://openweathermap.org/api) ve config.py dosyasında ayarlayın

Kullanım

Uygulamayı başlatmak için:

python weather.py

MCP İstemcisi ile Kullanım

Bu uygulama bir MCP (Model Context Protocol) sunucusu olarak çalışır. MCP, dil modelleri ile araçlar arasında iletişim sağlayan açık bir protokoldür.

  1. Uygulamayı başlattıktan sonra, bir MCP istemcisi (örneğin Copilot, ChatGPT veya başka bir MCP destekli dil modeli) kullanarak komutlar gönderebilirsiniz.

  2. İstemci üzerinden şu formatta araçları çağırabilirsiniz:

Araçlar

  • hava_durumu_sehir: Belirli bir şehir için hava durumu bilgisi
  • saatlik_hava_durumu: Saatlik hava durumu tahminleri
  • hava_kalitesi: Hava kalitesi endeksi bilgileri
  • sehirler_karsilastir: İki şehri karşılaştırma
  • havadurumu_aktivite_onerileri: Hava durumuna göre aktivite önerileri

Proje Yapısı

  • weather.py: Ana uygulama ve MCP araçları
  • api.py: API istekleri için yardımcı fonksiyonlar
  • utils.py: Yardımcı fonksiyonlar
  • config.py: Yapılandırma sabitler ve şehir verileri

Lisans

MIT

No tools information available.
No content found.