String weatherCsv() throws TrackerException { isConnected(); WeatherInformation weather = trk.getWeatherInfo(); return weather.getAirTemperature() + "," + weather.getAirPressure() + "," + weather.getHumidity(); }
/** * Queries the tracker's weather station. * * @return string containing the relevant weather data * @throws TrackerException thrown if not connected */ String weather() throws TrackerException { isConnected(); WeatherInformation weather = trk.getWeatherInfo(); String weatherReturn = ""; weatherReturn = weatherReturn + "Pressure" + weather.getAirPressure() + "\n"; weatherReturn = weatherReturn + "Temperature" + weather.getAirTemperature() + "\n"; weatherReturn = weatherReturn + "Humidity" + weather.getHumidity() + "\n"; return weatherReturn; }