https://github.com/andy-y-li/weatherservice
A weather API web service
https://github.com/andy-y-li/weatherservice
weatherwebservice
Last synced: 5 days ago
JSON representation
A weather API web service
- Host: GitHub
- URL: https://github.com/andy-y-li/weatherservice
- Owner: andy-y-li
- Created: 2017-10-20T02:33:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T04:49:14.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T01:22:55.390Z (9 months ago)
- Topics: weatherwebservice
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# weatherService #
weatherService is a go version service for weather.
It provice a json responed of weather info.
### Usage
- step 1) Install the weatherService:
$ go get github.com/andy-y-li/weatherService
- step 2) Run the weatherService:
$ go run main.go
- step 3) Query weather for example:
$ curl http://localhost:9090/weather/深圳
{"city":"深圳","cityid":"101280601","img1":"n0.gif","img2":"d0.gif","ptime":"18:00","temp1":"14℃","temp2":"23℃","weather":"晴"}
* BTW, I have add the service in my server, you also
get the weather iofo via the command as below:
$ curl http://1714w8z674.iok.la:25705/weather/深圳
## License ##
This library is distributed under the BSD-style license found in the [LICENSE](./LICENSE)
file.