private SimpleWind parseWind() {
   SimpleWind wind = new SimpleWind(WindSpeedUnit.MPS);
   if (!hasWind()) {
     return wind;
   }
   try {
     double speed = getWindSpeed();
     wind.setSpeed((int) Math.round(speed), WindSpeedUnit.MPS);
   } catch (JSONException e) {
     // wind speed is optional
   }
   try {
     double deg = getWindDeg();
     wind.setDirection(WindDirection.valueOf((int) deg));
   } catch (JSONException e) {
     // wind direction is optional
   }
   wind.setText(
       String.format("Wind: %s, %d m/s", String.valueOf(wind.getDirection()), wind.getSpeed()));
   return wind;
 }