Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Enviro Urban if set to never upload data #205

Open
twVolc opened this issue Nov 28, 2023 · 0 comments
Open

Error in Enviro Urban if set to never upload data #205

twVolc opened this issue Nov 28, 2023 · 0 comments

Comments

@twVolc
Copy link

twVolc commented Nov 28, 2023

When using the walk-through setup on the Enviro Urban I selected that I didn't ever want readings uploaded. I was having issues with the instrument working - it was continuously pulsing after it's first start-up. I tried to run main.py (all as it came shipped - I had made no edits) from Thonny and got this error:

Traceback (most recent call last):
  File "<stdin>", line 87, in <module>
TypeError: unsupported types for __ge__: 'int', 'str'

which relates to the line

if cache_file_count >= config.upload_frequency:

The error seems to be because config.py has the line upload_frequency = ''. Presumably the walk-through setup and associated code needs editing to make this all compatible for if people don't want to upload data - either a string check on line 87 or instead using an unattainably high value instead of '' in the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant