keep only 1 signifcant digit for temperature
This commit is contained in:
		
							
								
								
									
										4
									
								
								pool.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								pool.js
									
									
									
									
									
								
							@@ -180,8 +180,8 @@ function update_temp(temp) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
  status.lock_update = true;
 | 
					  status.lock_update = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  status.temp = temp;
 | 
					  status.temp = Math.round(temp * 10) / 10;
 | 
				
			||||||
  status.temp_today = Math.max(status.temp_today, temp);
 | 
					  status.temp_today = Math.max(status.temp_today, status.temp);
 | 
				
			||||||
  status.temp_max   = Math.max(status.temp_today, status.temp_yesterday);
 | 
					  status.temp_max   = Math.max(status.temp_today, status.temp_yesterday);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  print("[POOL] update_temp - max:", status.temp_max, "today:", status.temp_today, "yesterday:", status.temp_yesterday);
 | 
					  print("[POOL] update_temp - max:", status.temp_max, "today:", status.temp_today, "yesterday:", status.temp_yesterday);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user