Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. if co2_level < 500:
  2. self.notification.level_c = 0
  3. elif co2_level < 1500:
  4. es_time = PreProcessing.estimate_time(gateway_id, device_id, module_id, 1500, None)
  5. self.notification.level_c = 1
  6. elif co2_level < 2500:
  7. es_time = PreProcessing.estimate_time(gateway_id, device_id, module_id, 2500, None)
  8. self.notification.level_c = 2
  9. elif co2_level < 4000:
  10. es_time = PreProcessing.estimate_time(gateway_id, device_id, module_id, 4000, None)
  11. self.notification.level_c = 3
  12. else:
  13. self.notification.level_c = 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement