diff --git a/routes/weather.js b/routes/weather.js index d34c1f6..02d7e00 100755 --- a/routes/weather.js +++ b/routes/weather.js @@ -239,7 +239,7 @@ function getOWMWeatherData( location, callback ) { weather.temp = parseInt( data.list[ 0 ].main.temp ); weather.humidity = parseInt( data.list[ 0 ].main.humidity ); weather.wind = parseInt( data.list[ 0 ].wind.speed ); - weather.precip = data.list[ 0 ].rain ? parseFloat( data.list[ 0 ].rain[ "3h" ] || 0 ) : ""; + weather.precip = data.list[ 0 ].rain ? parseFloat( data.list[ 0 ].rain[ "3h" ] || 0 ) : 0; location = location.join( "," );