SHARE
TWEET

Untitled

a guest Jul 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Jul 17 19:10:58 beaglebone python3[601]: Traceback (most recent call last):
  2. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2446, in wsgi_app
  3. Jul 17 19:10:58 beaglebone python3[601]:     response = self.full_dispatch_request()
  4. 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
  5. Jul 17 19:10:58 beaglebone python3[601]:     rv = self.handle_user_exception(e)
  6. 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
  7. Jul 17 19:10:58 beaglebone python3[601]:     reraise(exc_type, exc_value, tb)
  8. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 39, in reraise
  9. Jul 17 19:10:58 beaglebone python3[601]:     raise value
  10. 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
  11. Jul 17 19:10:58 beaglebone python3[601]:     rv = self.dispatch_request()
  12. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1935, in dispatch_request
  13. Jul 17 19:10:58 beaglebone python3[601]:     return self.view_functions[rule.endpoint](**req.view_args)
  14. Jul 17 19:10:58 beaglebone python3[601]:   File "/home/debian/harv/hub/hub.py", line 651, in hubsite_spots_telemetry
  15. Jul 17 19:10:58 beaglebone python3[601]:     response_json, status_code = read_telemetry()
  16. Jul 17 19:10:58 beaglebone python3[601]:   File "/home/debian/harv/hub/hub.py", line 606, in read_telemetry
  17. Jul 17 19:10:58 beaglebone python3[601]:     json_str = json.dumps(spots.get(field="telemetry"))
  18. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
  19. Jul 17 19:10:58 beaglebone python3[601]:     return _default_encoder.encode(obj)
  20. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
  21. Jul 17 19:10:58 beaglebone python3[601]:     chunks = self.iterencode(o, _one_shot=True)
  22. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
  23. Jul 17 19:10:58 beaglebone python3[601]:     return _iterencode(o, 0)
  24. Jul 17 19:10:58 beaglebone python3[601]:   File "/usr/lib/python3.5/json/encoder.py", line 179, in default
  25. Jul 17 19:10:58 beaglebone python3[601]:     raise TypeError(repr(o) + " is not JSON serializable")
  26.      
  27. [{'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')]}]
  28.      
  29. [{'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'}]
  30.      
  31. telemetry = []
  32. for device in self.device.values():
  33.      telemetry.append({"device_descriptor": device["device_descriptor"], "telemetry": []})
  34.      return telemetry
  35.      
  36. json_str = json.dumps(devices.get(field="telemetry"))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top