Open lasuridze opened 3 years ago
It looks like the Orange Pi Zero does not use the hard-coded I2C bus number 1. I'm testing an addition to the sensor block so that you can specify a different bus. I'll post more information here when that is available.
@lasuridze can you try pulling the latest version of the sensor block and setting the BUS_NUMBER
service variable to 0
(or whichever bus you are using?)
please help
Error in plugin: [url=http://sensor:7575]: Get "http://sensor:7575": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
sensor_bitter-resonance-06.06.21_17_1443(+0400).txt
C:\Users\lasur\Downloads\balena-sense-2.0.0\balena-sense-2.0.0>balena push g_laska/sensor [Info] Starting build for sensor, user g_laska [Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1834675/devices [connector] [=========================================================] 100% [sensor] [=========================================================] 100% [dashboard] [=========================================================] 100% [Info] Uploading images [Success] Successfully uploaded images [Info] Built on arm02 [Success] Release successfully created! [Info] Release: f286d4819eb0e6a6be56996fcb6e0c6a (id: 1822551) [Info] ┌───────────┬────────────┬────────────┐ [Info] │ Service │ Image Size │ Build Time │ [Info] ├───────────┼────────────┼────────────┤ [Info] │ influxdb │ 252.34 MB │ 21 seconds │ [Info] ├───────────┼────────────┼────────────┤ [Info] │ dashboard │ 205.47 MB │ 19 seconds │ [Info] ├───────────┼────────────┼────────────┤ [Info] │ sensor │ 278.12 MB │ 25 seconds │ [Info] ├───────────┼────────────┼────────────┤ [Info] │ connector │ 278.84 MB │ 28 seconds │ [Info] └───────────┴────────────┴────────────┘ [Info] Build finished in 1 minute, 39 seconds \ \ \ \
::::::::::::::::::sensr error File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner sensor self.run() sensor File "/usr/local/lib/python3.9/threading.py", line 892, in run sensor self._target(*self._args, **self._kwargs) sensor File "/usr/src/app/sensor.py", line 64, in background_web sensor balenasense = balenaSense() sensor File "/usr/src/app/sensor.py", line 30, in init sensor self.device_count = idetect.detect_iio_sensors() sensor File "/usr/src/app/idetect.py", line 81, in detect_iio_sensors sensor bus = SMBus(bus_number) sensor File "/usr/local/lib/python3.9/site-packages/smbus2/smbus2.py", line 280, in init sensor self.open(bus) sensor File "/usr/local/lib/python3.9/site-packages/smbus2/smbus2.py", line 310, in open sensor self.fd = os.open(filepath, os.O_RDWR) sensor FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'