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

problem UART pH data #509

Closed
leoneo opened this issue Aug 1, 2018 · 5 comments
Closed

problem UART pH data #509

leoneo opened this issue Aug 1, 2018 · 5 comments

Comments

@leoneo
Copy link

leoneo commented Aug 1, 2018

Mycodo Issue Report:

  • Specific Mycodo Version: 6.1.4

Problem Description

Please list: no pH data with atlas pH UART

2018-08-01 18:07:09,465 - mycodo.daemon - ERROR - Could not activate Input controller with ID a2342661-5493-44c0-ba01-49edb9824690: invalid literal for int() with base 16: 'Tx/Rx'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/mycodo_daemon.py", line 480, in controller_activate
ready, cont_id)
File "/var/mycodo-root/mycodo/controller_input.py", line 242, in init
self.measure_input = AtlaspHSensor(self.input_dev)
File "/var/mycodo-root/mycodo/inputs/atlas_ph.py", line 27, in init
self.i2c_address = int(str(input_dev.location), 16)
ValueError: invalid literal for int() with base 16: 'Tx/Rx'

@kizniche
Copy link
Owner

kizniche commented Aug 1, 2018

That last commit should fix this issue. You can manually edit the file and make those changes, restart the daemon, and see if it works, otherwise I should have the next release out sometime in the next week or so.

@leoneo
Copy link
Author

leoneo commented Aug 3, 2018

I have do the change but there is always no pH data. I will check with atlas code.

@kizniche
Copy link
Owner

kizniche commented Aug 3, 2018

Please copy any new errors in the daemon log, after making the changes I performed in the commit, as that should have fixed the error you originally reported. If there's another error that appears, I need to see what it is in order to properly diagnose the new issue and devise a fix.

@leoneo
Copy link
Author

leoneo commented Aug 3, 2018

I think that a raspbian upgrade had change the file /boot/cmdline.txt
I have do the correction in this file and now I have pH data.

Thanks

@kizniche
Copy link
Owner

kizniche commented Aug 3, 2018

Great

@kizniche kizniche closed this as completed Aug 3, 2018
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