Esempio n. 1
0
 String weatherCsv() throws TrackerException {
   isConnected();
   WeatherInformation weather = trk.getWeatherInfo();
   return weather.getAirTemperature()
       + ","
       + weather.getAirPressure()
       + ","
       + weather.getHumidity();
 }
Esempio n. 2
0
 /**
  * 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;
 }