|  |  | 
 |  |  |                     Map<String,Object> historyHourlyMap = new HashMap<>(); | 
 |  |  |                     historyHourlyMap.put("mac",mac); | 
 |  |  |                     JSONObject value = JSONObject.parseObject(historyFiveMinutely.getValue()); | 
 |  |  |                     Double sensorValue = Double.parseDouble(value.get(sensorCode).toString()); | 
 |  |  |                     historyHourlyMap.put(sensorCode,sensorValue); | 
 |  |  |                     if (value.get(sensorCode)==null){ | 
 |  |  |                         historyHourlyMap.put(sensorCode,0.0); | 
 |  |  |                     }else { | 
 |  |  |                         Double sensorValue = Double.parseDouble(value.get(sensorCode).toString()); | 
 |  |  |                         historyHourlyMap.put(sensorCode,sensorValue); | 
 |  |  |                     } | 
 |  |  | //                    Double sensorValue = Double.parseDouble(value.get(sensorCode).toString()); | 
 |  |  | //                    historyHourlyMap.put(sensorCode,sensorValue); | 
 |  |  |                     Date time = historyFiveMinutely.getTime(); | 
 |  |  |                     String timeStr = DateUtils.dateToDateString(time, DateUtils.yyyy_MM_dd_HH_mm_ss_EN); | 
 |  |  |                     historyHourlyMap.put("time",timeStr); |