Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
}
]
}
```