defvol / weatherman

The unofficial NOAA API
http://weatherman.herokuapp.com/ping
MIT License
0 stars 0 forks source link

Datos de respuesta incompletos #23

Closed haxdai closed 10 years ago

haxdai commented 10 years ago

La invocación a weatherman devuelve sólo

{
  "center":"13.4N 111.8W",
  "effective":"26/2100Z",
  "minCentralPressure":"957 MB",
  "movement":"TOWARD THE NORTH-NORTHWEST OR 335 DEGREES AT 4 KT"
}

Ver url de prueba: http://weatherman.herokuapp.com/forecast?url=http://www.nhc.noaa.gov/text/refresh/MIATCMEP1%2Bshtml/261431.shtml

Ese forecast si trae los outlooks:

captura de pantalla 2014-05-26 a la s 16 54 52

Algún cambio reciente que pudo afectar? Esto sólo pasa con el latest advisory, con los past advisories la información viene completa, ej, la url http://weatherman.herokuapp.com/forecast?url=http://www.nhc.noaa.gov/archive/2013/ep13/ep132013.fstadv.001.shtml

devuelve:

{
  "center":"15.7N 101.3W",
  "effective":"13/1500Z",
  "forecasts": [
      {"id":"14/0000Z","north":"16.0N","west":"101.4W","max":"40 KT","gusts":"50 KT"},        
      {"id":"14/1200Z","north":"16.8N","west":"101.5W","max":"45 KT","gusts":"55 KT"}, 
      {"id":"15/0000Z","north":"17.7N","west":"101.7W","max":"40 KT","gusts":"50 KT"},
      {"id":"15/1200Z","north":"18.7N","west":"102.0W","max":"30 KT","gusts":"40 KT"}
  ],
  "minCentralPressure":"999 MB",
  "movement":"TOWARD THE NORTHWEST OR 315 DEGREES AT 3 KT",
  "winds": {
    "maxSustainedWindsWithGusts":"MAX SUSTAINED WINDS 30 KT WITH GUSTS TO     40 KT.",
    "direction":[],
    "seas":""
  }
}
defvol commented 10 years ago

El único cambio reciente fue #22, y las pruebas pasaron. Ya lo estoy revisando.

haxdai commented 10 years ago

Al medio día que validé los cambios que hiciste en el merge #59 estaba ok.

defvol commented 10 years ago

Fixed by #24