fix build issue of WAG of a WeatherStation