why that doesn't work

  • 1
  • Question
  • Updated 5 years ago
https://code.google.com/p/wundergroun...
please why this code does'nt work with other station
Photo of elmottaki

elmottaki

  • 8 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Martin

Martin

  • 0 Posts
  • 0 Reply Likes
You're right - there is no example like this:

WeatherStation weatherStation = new WeatherStation("ITHRINGE33");
weatherStation.setCity("Suhl");

httpDataReaderService.setWeatherStation(weatherStation);
DataSet weatherData = httpDataReaderService.getCurrentData();

System.out.println(weatherData.getTemperature());

this print actual 29.8 degree celsius to stdout.
Very hot currently!