Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinrouillard/weather-worker
Weather Worker for Lat/Lon, ZIP Code, and soon IP Location
https://github.com/dustinrouillard/weather-worker
cloudflare openweathermap weather worker
Last synced: 11 days ago
JSON representation
Weather Worker for Lat/Lon, ZIP Code, and soon IP Location
- Host: GitHub
- URL: https://github.com/dustinrouillard/weather-worker
- Owner: dustinrouillard
- License: mit
- Created: 2022-03-08T22:52:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-30T07:37:00.000Z (9 months ago)
- Last Synced: 2025-01-26T16:11:21.518Z (17 days ago)
- Topics: cloudflare, openweathermap, weather, worker
- Language: TypeScript
- Homepage: https://weather.dstn.to
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weather API
This worker basically just proxies [OpenWeatherMap](https://openweathermap.org/), however it adds caching and makes querying it more straightforward for various uses.
## Examples
### Get by zip code
```json
GET /90210{
"zip": "90210",
"city": "Beverly Hills",
"temperature": {
"current": 287.07,
"max": 289.6,
"min": 285.43
},
"humidity": 88,
"conditions": [
{
"code": "Clouds",
"description": "scattered clouds"
}
]
}
```### Get by latitude and longitude
```json
GET /coords/37.8283/-96.5795{
"city": "Butler",
"temperature": {
"current": 291.64,
"max": 291.73,
"min": 291.44
},
"humidity": 87,
"conditions": [
{
"code": "Clouds",
"description": "overcast clouds"
}
]
}
```