PID - TypeError: '>...
 
Notifications
Clear all

[Solved] PID - TypeError: '>' not supported between instances of 'float' and 'NoneType'  

  RSS

davidbanner
(@davidbanner)
Active Member
Joined: 1 month ago
Posts: 10
September 20, 2020 9:24 am  

Hi,

I am setting up a PID to regulate the humidity but I am getting this error in the log:

2020-09-20 14:19:30,092 - ERROR - mycodo.controllers.controller_pid_ff3b2551 - loop() Error
Traceback (most recent call last):
  File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 84, in run
    self.loop()
  File "/var/mycodo-root/mycodo/controllers/controller_pid.py", line 146, in loop
    elif time.time() > self.timer:
TypeError: '>' not supported between instances of 'float' and 'NoneType'

I have attached a screenshot of the pid as Capture.jpg
 
 
This topic was modified 1 month ago 3 times by davidbanner

Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 6 years ago
Posts: 343
September 20, 2020 12:01 pm  

Are you running the latest version? 

Mycodo Developer


ReplyQuote
davidbanner
(@davidbanner)
Active Member
Joined: 1 month ago
Posts: 10
September 20, 2020 2:26 pm  

@kylegabriel

thanks again for your help and the amazing Mycodo project Kyle.

I just did an upgrade (i was 3 versions behind) and that has fixed the issue.

 


ReplyQuote