| | |
| | | |
| | | temperature.add(new GrainTemp(cableNum + "", z + "", curTemp + "", position + "")); |
| | | |
| | | sumT += curTemp; |
| | | if (curTemp > max) { |
| | | if (curTemp > max && curTemp < 40) { |
| | | max = curTemp; |
| | | } |
| | | if (curTemp < min) { |
| | | if (curTemp < min && curTemp > 3) { |
| | | min = curTemp; |
| | | } |
| | | if(curTemp > 3 && curTemp < 40){ |
| | | sumT += curTemp; |
| | | sumNum++; |
| | | } |
| | | } |
| | | |
| | |
| | | weatherStation.setId(device.getDeviceId()); |
| | | } |
| | | weatherStation.setAirPressure(weather.getPressure()); |
| | | weatherStation.setHumidity(weather.getHumidity()); |
| | | weatherStation.setHumidity(weather.getHumidity().replaceAll("%","")); |
| | | weatherStation.setPm(weather.getAir_pm25()); |
| | | weatherStation.setRadiation("0"); |
| | | weatherStation.setRainfallAmount(weather.getWea()); |