Sign inSign up

jraviles/meteogram

By jraviles

Updated over 1 year ago

Image
0

902

jraviles/meteogram repository overview

Meteogram

Meteogram returns detailed weather forecasts for a given location. US only.

API

Meteogram is deployed as an App Engine app for public use.

https://xenon-antonym-213304.uc.r.appspot.com
/meteogram

Retrieves 48 hours of weather forecasts for the location given its WGS 84 coordinate pair. Only works for locations within the United States.

Request
GET /meteogram/{latitude},{longitude}
Response

Try it!

Time,Temperature,RelativeHumidity,Dewpoint,HeatIndex,WindChill,WindSpeed,WindDirection,WindGust,SkyCover,ProbabilityOfPrecipitation
2020-09-25T22:00:00-04:00,27.2222,88.0000,25.0000,31.1111,0.0000,11.1120,170.0000,22.2240,76.0000,24.0000
2020-09-25T23:00:00-04:00,27.2222,85.0000,24.4444,30.5556,0.0000,11.1120,170.0000,18.5200,74.0000,23.0000
2020-09-26T00:00:00-04:00,27.2222,88.0000,25.0000,31.1111,0.0000,9.2600,180.0000,20.3720,74.0000,22.0000
2020-09-26T01:00:00-04:00,27.2222,85.0000,24.4444,30.5556,0.0000,9.2600,180.0000,20.3720,74.0000,21.0000
2020-09-26T02:00:00-04:00,27.2222,88.0000,25.0000,31.1111,0.0000,7.4080,180.0000,20.3720,72.0000,20.0000
2020-09-26T03:00:00-04:00,26.6667,88.0000,24.4444,30.0000,0.0000,9.2600,190.0000,20.3720,68.0000,19.0000
...

Usage

Usage of ./meteogram:
  -address string
        Address to listen on. (default ":8080")
  -forecast_duration duration
        How far into the future should a forecast be. (default 48h0m0s)

Docker

  • Run the Docker container.

    docker run --rm --name meteogram --publish 8080:8080 jraviles/meteogram:latest
    
  • Build your own Docker image.

    docker build --tag jraviles/meteogram:latest .
    
  • Publish image to Docker Hub.

    docker push jraviles/meteogram:latest
    

App Engine

  • Deploy

    gcloud app deploy
    

See Also

Author

Jean-Ralph Aviles

Tag summary

Content type

Image

Digest

sha256:1e4c16d90

Size

297.4 MB

Last updated

over 1 year ago

docker pull jraviles/meteogram