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 setting DS18b20 resolution #747

Closed
drgrumpy opened this issue Feb 14, 2020 · 3 comments
Closed

Error setting DS18b20 resolution #747

drgrumpy opened this issue Feb 14, 2020 · 3 comments

Comments

@drgrumpy
Copy link

  • Mycodo Version: 8.25
  • Raspberry Pi Version: Zero W
  • Raspbian OS Version: Buster Lite

Clean install (with one mod to mycodo see #746) first ds18b20 sensor added, attempt to set sensor resolution on configuration page:

Error: Error while setting resolution of sensor with ID 28-000006daa134: 'NoneType' object has no attribute 'device'

I can successfully set the resolution directly from the terminal by writing to the device

kizniche added a commit that referenced this issue Feb 17, 2020
…ted w1thermsensor set_precision() to set_resolution()
@kizniche
Copy link
Owner

I just pushed a potential fix for this. I haven't tested it, thought.

@kizniche
Copy link
Owner

kizniche commented Feb 17, 2020

In the meantime, you can set the resolution from the Input settings. This resolution setting from the calibration page merely makes the resolution setting persistent, whereas when it's set from the Input settings page, it's not persistent but is set every time the input is activated.

kizniche added a commit that referenced this issue Feb 17, 2020
@drgrumpy
Copy link
Author

Great thanks for sorting

kizniche added a commit that referenced this issue Jun 14, 2020
…ted w1thermsensor set_precision() to set_resolution()

Former-commit-id: 9cd53bd
kizniche added a commit that referenced this issue Jun 14, 2020
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

2 participants