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

Failue in bh1750 cripples sense-python #7

Open
bubblesnet opened this issue Feb 5, 2021 · 0 comments
Open

Failue in bh1750 cripples sense-python #7

bubblesnet opened this issue Feb 5, 2021 · 0 comments

Comments

@bubblesnet
Copy link
Owner

DEBUG:root:Entering sensor polling loop
05.02.21 14:48:27 (-0500) sense-python DEBUG:root:BH1750 at 0x23 failed to read [Errno 121] Remote I/O error
05.02.21 14:48:27 (-0500) sense-python DEBUG:root:Traceback (most recent call last):
05.02.21 14:48:27 (-0500) sense-python File "src/main.py", line 198, in append_bh1750_data
05.02.21 14:48:27 (-0500) sense-python msg['value'] = bh1750.readLight(LightAddress)
05.02.21 14:48:27 (-0500) sense-python File "/usr/src/app/src/bh1750.py", line 61, in readLight
05.02.21 14:48:27 (-0500) sense-python data = bus.read_i2c_block_data(addr, ONE_TIME_HIGH_RES_MODE_1, 32)
05.02.21 14:48:27 (-0500) sense-python File "/usr/local/lib/python3.6/site-packages/smbus2/smbus2.py", line 596, in read_i2c_block_data
05.02.21 14:48:27 (-0500) sense-python ioctl(self.fd, I2C_SMBUS, msg)
05.02.21 14:48:27 (-0500) sense-python OSError: [Errno 121] Remote I/O error
05.02.21 14:48:27 (-0500) sense-python
05.02.21 14:48:27 (-0500) sense-python DEBUG:root:b'{"message_type": "measurement", "sensor_name": "light_internal_sensor", "measurement_name": "light_internal", "sample_timestamp": 1612554507616, "deviceid": 70000007, "container_name": "sense-python", "executable_version": "9.9.9 "}'
05.02.21 14:48:27 (-0500) sense-python DEBUG:root:sequence: 200001
05.02.21 14:48:27 (-0500) sense-python type_id: "sensor"
05.02.21 14:48:27 (-0500) sense-python result: "OK"
05.02.21 14:48:27 (-0500) sense-python
05.02.21 14:48:28 (-0500) store-and-forward DEBUG: forwarding key=2021-02-05T19:48:27Z (200001), value={"message_type": "measurement", "sensor_name": "light_internal_sensor", "measurement_name": "light_internal", "sample_timestamp": 1612554507616, "deviceid": 70000007, "container_name": "sense-python", "executable_version": "9.9.9 "} from MessageBucket
05.02.21 14:48:28 (-0500) store-and-forward

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