Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Jul 17 19:10:58 beaglebone python3[601]: Traceback (most recent call last):
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2446, in wsgi_app
- Jul 17 19:10:58 beaglebone python3[601]: response = self.full_dispatch_request()
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1951, in full_dispatch_request
- Jul 17 19:10:58 beaglebone python3[601]: rv = self.handle_user_exception(e)
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1820, in handle_user_exception
- Jul 17 19:10:58 beaglebone python3[601]: reraise(exc_type, exc_value, tb)
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 39, in reraise
- Jul 17 19:10:58 beaglebone python3[601]: raise value
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1949, in full_dispatch_request
- Jul 17 19:10:58 beaglebone python3[601]: rv = self.dispatch_request()
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1935, in dispatch_request
- Jul 17 19:10:58 beaglebone python3[601]: return self.view_functions[rule.endpoint](**req.view_args)
- Jul 17 19:10:58 beaglebone python3[601]: File "/home/debian/harv/hub/hub.py", line 651, in hubsite_spots_telemetry
- Jul 17 19:10:58 beaglebone python3[601]: response_json, status_code = read_telemetry()
- Jul 17 19:10:58 beaglebone python3[601]: File "/home/debian/harv/hub/hub.py", line 606, in read_telemetry
- Jul 17 19:10:58 beaglebone python3[601]: json_str = json.dumps(spots.get(field="telemetry"))
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
- Jul 17 19:10:58 beaglebone python3[601]: return _default_encoder.encode(obj)
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
- Jul 17 19:10:58 beaglebone python3[601]: chunks = self.iterencode(o, _one_shot=True)
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
- Jul 17 19:10:58 beaglebone python3[601]: return _iterencode(o, 0)
- Jul 17 19:10:58 beaglebone python3[601]: File "/usr/lib/python3.5/json/encoder.py", line 179, in default
- Jul 17 19:10:58 beaglebone python3[601]: raise TypeError(repr(o) + " is not JSON serializable")
- [{'device_descriptor':Container(status=0)(timestamp=0)(id='18029965841785290262')(short_address=1)(module_temperature=0.0)(DeviceLIN='10')(DeviceSN='0')(CoordinatorLIN='0')(InputStringID='0')(InputIndex='0')(DeviceType='SPOT')(DCDCBoardSN='0')(InputDisconnectID='0')(CommsSN='0')(string_id='0')(ID='18029965841785290262')(OutputIndex='0')]}]
- [{'device_descriptor':Container(status=0,timestamp=0,id=u'18029965841785290262',short_address=1,module_temperature=0.0,string_id=u'0',DeviceSN=u'0',GUID=u'18029965841785290262',DeviceLIN=u'10',InverterID=u'2205A',ModbusUnitAddress=u'1',InputDisconnectID=u'0',InputIndex=u'0',lin=u'10',OutputCombinerID=u'1',CommsSN=u'0',DCDCBoardSN=u'0',InputStringID=u'0',CoordinatorLIN=u'0',OutputIndex=u'0'}]
- telemetry = []
- for device in self.device.values():
- telemetry.append({"device_descriptor": device["device_descriptor"], "telemetry": []})
- return telemetry
- json_str = json.dumps(devices.get(field="telemetry"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement