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?
- Checking the current weather in Istanbul.
- Comparing weather conditions between Ankara and Izmir.
- Receiving alerts for severe weather conditions.
- 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.
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
- Python 3.11 veya üstünü yükleyin
- Gerekli paketleri yükleyin:
pip install httpx mcp
- 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.
-
Uygulamayı başlattıktan sonra, bir MCP istemcisi (örneğin Copilot, ChatGPT veya başka bir MCP destekli dil modeli) kullanarak komutlar gönderebilirsiniz.
-
İstemci üzerinden şu formatta araçları çağırabilirsiniz:
Araçlar
hava_durumu_sehir
: Belirli bir şehir için hava durumu bilgisisaatlik_hava_durumu
: Saatlik hava durumu tahminlerihava_kalitesi
: Hava kalitesi endeksi bilgilerisehirler_karsilastir
: İki şehri karşılaştırmahavadurumu_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ı fonksiyonlarutils.py
: Yardımcı fonksiyonlarconfig.py
: Yapılandırma sabitler ve şehir verileri
Lisans
MIT