balenaSense - not parsing data correctly

I have no data in my balenaSense instance. It would appear that the sensor is being detected ok, but that there’s a math error going on:

14.04.20 12:00:04 (-0700) 172.17.0.6 - - [14/Apr/2020 19:00:04] “GET / HTTP/1.1” 200 -
14.04.20 12:00:04 (-0700) ----------------------------------------
14.04.20 12:00:04 (-0700) Exception happened during processing of request from (‘172.17.0.6’, 33176)
14.04.20 12:00:04 (-0700) Traceback (most recent call last):
14.04.20 12:00:04 (-0700) File “/usr/local/lib/python3.5/socketserver.py”, line 313, in _handle_request_noblock
14.04.20 12:00:04 (-0700) self.process_request(request, client_address)
14.04.20 12:00:04 (-0700) File “/usr/local/lib/python3.5/socketserver.py”, line 341, in process_request
14.04.20 12:00:04 (-0700) self.finish_request(request, client_address)
14.04.20 12:00:04 (-0700) File “/usr/local/lib/python3.5/socketserver.py”, line 354, in finish_request
14.04.20 12:00:04 (-0700) self.RequestHandlerClass(request, client_address, self)
14.04.20 12:00:04 (-0700) File “/usr/local/lib/python3.5/socketserver.py”, line 681, in init
14.04.20 12:00:04 (-0700) self.handle()
14.04.20 12:00:04 (-0700) File “/usr/local/lib/python3.5/http/server.py”, line 422, in handle
14.04.20 12:00:04 (-0700) self.handle_one_request()
14.04.20 12:00:04 (-0700) File “/usr/local/lib/python3.5/http/server.py”, line 410, in handle_one_request
14.04.20 12:00:04 (-0700) method()
14.04.20 12:00:04 (-0700) File “/usr/src/app/scripts/sensor.py”, line 123, in do_GET
14.04.20 12:00:04 (-0700) measurements = balenasense.sample()
14.04.20 12:00:04 (-0700) File “/usr/src/app/scripts/sensor.py”, line 95, in sample
14.04.20 12:00:04 (-0700) return self.apply_offsets(self.sensor.get_readings(self.sensor))
14.04.20 12:00:04 (-0700) File “/usr/src/app/scripts/bme680.py”, line 45, in get_readings
14.04.20 12:00:04 (-0700) ‘temperature’: float(self.data[‘temperature’]),
14.04.20 12:00:04 (-0700) TypeError: ‘NoneType’ object is not subscriptable

This error loops indefinitely, and the graphs remain blank.

Setup: RPi3 B+
CLI - Windows 10

Hi, can you give us a bit more information about your setup? Which hardware are you using? When you say the sensor “is being detected ok”, what commands are you using to confirm this? Are you running the latest release of the project from https://github.com/balenalabs/balena-sense?

1 Like

Never mind: brainfart.

Had the wrong sensor plugged into the Breakout Garden.

All is well.

Thanks for letting us know!