bakerkj / weewx-purpleair

WeeWx Extension to pull data from the local interface of a Purple Air air quality sensor
GNU General Public License v2.0
17 stars 11 forks source link

TypeError due to Interval setting #27

Closed chrisale closed 4 months ago

chrisale commented 1 year ago

I started getting a TypeError in the logs with a crash from purple air after I specified the Interval = 300 in my weewx.conf.

I hacked a fix by modifying line 282 in purpleair.py from: if delta > self.config_dict['interval'] * 1.5:

to this: if delta > float(self.config_dict['interval']) * 1.5:

bakerkj commented 7 months ago

@chrisale does this change https://github.com/bakerkj/weewx-purpleair/commit/21ba435e8b99c1a32c20a602cbe14d429455a757 fix the issue for you?

bakerkj commented 4 months ago

Assuming this is resolved.