Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cihatksm/weather-turkey
This module was made to list the weather forecasts of cities in Turkey.
https://github.com/cihatksm/weather-turkey
cihatksm turkey weather weather-turkey weatherturkey
Last synced: 5 days ago
JSON representation
This module was made to list the weather forecasts of cities in Turkey.
- Host: GitHub
- URL: https://github.com/cihatksm/weather-turkey
- Owner: CihatKsm
- License: mit
- Created: 2023-04-03T20:03:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-12T07:29:51.000Z (about 1 year ago)
- Last Synced: 2024-04-26T02:20:48.898Z (7 months ago)
- Topics: cihatksm, turkey, weather, weather-turkey, weatherturkey
- Language: JavaScript
- Homepage: https://npm.cihatksm.com/weather-turkey
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### Modül İndirme:
```bash
npm install weather-turkey
```#### Örnek Kullanım:
```js
const weather = require('weather-turkey')
const date = () => new Date()console.log(date(), 'System opened!')
weather({ search: 'kartepe', days: 10 })
.then((data) => console.log(data))
```#### Örnek Çıktı:
```js
{
city: 'Kocaeli',
county: 'Kartepe',
daily: [
{
timestamp: 1691874000000,
date: '13.08.2023',
temperature: {
value: 22.35,
max: 24.03,
min: 21.32,
felt: {
value: 30,
text: 'Sıcak bir hava... Sıvı ihtiyacınızı karşılamayı unutmayın!'
},
unit: { long: 'Celcius', short: 'C' }
},
humidity: { value: 88.64, unit: { long: 'Percentile', short: '%' } },
pressure: { value: 1013.73, unit: { long: 'Hektopaskal', short: 'hPa' } },
rains: { value: 0.06, unit: { long: 'Millimeter', short: 'mm' } },
closeness: { value: 97.02, unit: { long: 'Percentile', short: '%' } },
wind: {
speed: 10.97,
direction: { degree: 57.95, text: 'Kuzeydoğu' },
unit: { long: 'Kilometer per hour', short: 'km/h' }
},
status: {
text: 'Kapalı',
icon: 'https://meteoroloji.boun.edu.tr/files/img/durumlar/kapali.png'
},
measurements: [
{
timestamp: 1691874000000,
date: '13.08.2023',
time: '00:00:00',
temperature: {...},
humidity: {...},
pressure: {...},
rains: {...},
closeness: {...},
wind: {...},
status: {...}
}
{... /* Toplam sekiz ölçüm verisi */},
]
},
{... /* Toplam 10 günlük veri */}
]
}
```[![ISC License](https://img.shields.io/badge/License-ISC-green.svg)](https://choosealicense.com/licenses/isc/)
#### Geri Bildirim
**E-posta:** [email protected] adresinden bana ulaşın.
Boğaziçi Üniversitesi Kandilli Rasathanesi ve D.A.E Meteroloji Laboratuvarı verileri kullanılarak hazırlanmıştır.
Herhangi bir sorun teşkil ediyorsa, problem oluşturuyorsa ya da oluşturduysa önce tarafıma bilgi verilmesi rica olunur.