https://github.com/pkoretic/openweathermap-cache-proxy
Simple golang http proxy service for openweathermap.org with caching
https://github.com/pkoretic/openweathermap-cache-proxy
Last synced: about 1 month ago
JSON representation
Simple golang http proxy service for openweathermap.org with caching
- Host: GitHub
- URL: https://github.com/pkoretic/openweathermap-cache-proxy
- Owner: pkoretic
- License: mit
- Created: 2017-11-18T19:49:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T09:48:39.000Z (almost 7 years ago)
- Last Synced: 2026-04-26T01:09:36.592Z (3 months ago)
- Language: Go
- Size: 20.7 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openweathermap-cache-proxy
Simple golang http proxy service for openweathermap.org with caching. By default requests are
cached for 1 hour and only JSON is expected. Golang 1.9 is required.
This is a regular proxy so an api key is still needed. See more info at
http://openweathermap.org/appid.
## Build and run
```
go run main.go
```
or use [prebuilt](prebuilt) binaries
```
wget https://github.com/pkoretic/openweathermap-cache-proxy/blob/master/prebuilt/openweathermap-cache-proxy-x64-linux
chmod +x openweathermap-cache-proxy-x64-linux
./openweathermap-cache-proxy-x64-linux
```
## Use
```
# after starting this is a regular proxy for the 'http://api.openweathermap.org' listening at the
port 8000
http://localhost:8000/data/2.5/forecast?q=Zagreb,hr&cnt=5&appid=xxx
```