| | |
| | | import com.ld.igds.io.constant.OrderRespEnum; |
| | | import com.ld.igds.io.notify.NotifyWebInvoker; |
| | | import com.ld.igds.models.*; |
| | | import com.ld.igds.protocol.bhzn.utils.WindDirectionUtil; |
| | | import com.ld.igds.protocol.bhzn.verb.command.BaseRemoteImpl; |
| | | import com.ld.igds.protocol.bhzn.verb.dto.IoMessage; |
| | | import com.ld.igds.protocol.bhzn.verb.dto.Res209; |
| | |
| | | info.setSource(WeatherUtil.SOURCE_01); |
| | | info.setTemp((Temper/10)+""); |
| | | info.setWeather(RainFall > 0?"下雨":"晴天"); |
| | | info.setWindDirection(WindDir+""); |
| | | // info.setWindSpeed(); |
| | | Float fx = Float.valueOf(WindDir/10); |
| | | info.setWindDirection(WindDirectionUtil.windDirectionSwitch(fx)); |
| | | double fs = WindSpeed/10; |
| | | info.setWindSpeed(fs + "m/S"); |
| | | info.setWindMeter((WindSpeed/10) + ""); |
| | | info.setCity("高州市"); |
| | | info.setUpdateTime(new Date()); |