Code : Tout sélectionner
['main.py', 'get_info']
Action : get_info
id : not set
value : not set
DEBUG:websockets.protocol:client - state = CONNECTING
DEBUG:websockets.protocol:client - event = connection_made(<asyncio.sslproto._SSLProtocolTransport object at 0x7f84cf685b38>)
DEBUG:websockets.client:client > GET /mediation/client?mac=00:1A:25:xx:xx:xx&appli=1 HTTP/1.1
DEBUG:websockets.client:client > Headers([('Host', '10.0.0.100'), ('Upgrade', 'websocket'), ('Connection', 'Upgrade'), ('Sec-WebSocket-Key', 'RtMD9slCiNAl8PvjMKhyYg=='), ('Sec-WebSocket-Version', '13'), ('Sec-WebSocket-Extensions', 'permessage-deflate; client_max_window_bits'), ('Authorization', 'Digest username="00:1A:25:xx:xx:xx", realm="protected area", nonce="56dc92a2dc25bd05de8356d2075eebab", uri="/mediation/client?mac=00:1A:25:xx:xx:xx&appli=1", response="4c823c53bb97d1812590eb3e645a0aeb", qop="auth", nc=00000001, cnonce="03702293734ea96e"'), ('User-Agent', 'Python/3.7 websockets/8.1')])
DEBUG:websockets.protocol:client - event = data_received(<129 bytes>)
DEBUG:websockets.client:client < HTTP/1.1 101 Switching Protocols
DEBUG:websockets.client:client < Headers([('Upgrade', 'websocket'), ('Connection', 'Upgrade'), ('Sec-WebSocket-Accept', 'YBubV/4jK9JIyYPdT7ZdU5Sbils=')])
DEBUG:websockets.protocol:client - state = OPEN
DEBUG:websockets.protocol:client > Frame(fin=True, opcode=2, data=b'GET /info HTTP/1.1\r\nContent-Length: 0\r\nContent-Type: application/json; charset=UTF-8\r\nTransac-Id: 0\r\n\r\n', rsv1=False, rsv2=False, rsv3=False)
DEBUG:websockets.protocol:client - event = data_received(<4 bytes>)
DEBUG:websockets.protocol:client - event = data_received(<1024 bytes>)
DEBUG:websockets.protocol:client - event = data_received(<4 bytes>)
DEBUG:websockets.protocol:client < Frame(fin=False, opcode=2, data=b'HTTP/1.1 200 OK\r\nServer: Tydom-001A25xxxxxx\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A25xxxxxx",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "02.03.50",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.03.04",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "02.08.09",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"bootReference": "P21800012",\r\n1A\r\n"bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 2,\r\n11\r\n"config.json": 1,\r\nE\r\n"mom.json": 0,\r\n12\r\n"gateway.dat": 16,\r\nF\r\n"bdd.json": 22,\r\n12\r\n"collect.json": 2,\r\n12\r\n"groups.json": 38,\r\n13\r\n"mom_api.json": 56,\r\n14\r\n"scenario.json": 17,\r\n11\r\n"site.json": 825,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": fa', rsv1=False, rsv2=False, rsv3=False)
DEBUG:websockets.protocol:client - event = data_received(<551 bytes>)
DEBUG:websockets.protocol:client < Frame(fin=True, opcode=0, data=b'lse,\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": 611xxxx,\r\n14\r\n"latitude": 4936xxxx\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2020-09-21T07:54:49+02:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nE\r\n"protocols": [\r\n83\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "networkUp":true, "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n26\r\n{"protocol":"X3DV", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n', rsv1=False, rsv2=False, rsv3=False)
{
"TYDOM.dat": 2,
"apiMode": true,
"bdd.json": 22,
"bddEmpty": false,
"bddStatus": 0,
"bdd_mig.json": 0,
"bootReference": "P21800012",
"bootVersion": "01.00.03",
"clock": {
"clock": "2020-09-21T07:54:49+02:00",
"source": "ntp",
"summerOffset": "ON",
"timezone": 60
},
"collect.json": 2,
"config": "prod",
"config.json": 1,
"gateway.dat": 16,
"geoloc": {
"latitude": 4936xxxx,
"longitude": 611xxxx
},
"groups.json": 38,
"info_col.json": 0,
"info_mig.json": 0,
"keyReference": "21800011",
"keyVersionHW": "00.00.01",
"keyVersionSW": "01.03.04",
"keyVersionStack": "02.08.09",
"mac": "001A25xxxxxx",
"mainId": "6700103",
"mainReference": "21800010",
"mainVersionHW": "00.00.01",
"mainVersionSW": "02.03.50",
"mom.json": 0,
"mom_api.json": 56,
"moments": {
"suspend": {
"to": 0
}
},
"passwordEmpty": false,
"productName": "TYDOM1",
"protocols": [
{
"available": true,
"installStatus": "idle",
"installed": true,
"networkUp": true,
"protocol": "X3D",
"ready": true,
"status": "running"
},
{
"available": true,
"installed": false,
"protocol": "ZIGBEE"
},
{
"available": false,
"protocol": "X3DV"
}
],
"scenario.json": 17,
"site.json": 825,
"updateAvailable": false,
"urlMediation": "mediation.tydom.com"
}
DEBUG:websockets.protocol:client - state = CLOSING
DEBUG:websockets.protocol:client > Frame(fin=True, opcode=8, data=b'\x03\xe8', rsv1=False, rsv2=False, rsv3=False)
DEBUG:websockets.protocol:client - event = data_received(<4 bytes>)
DEBUG:websockets.protocol:client < Frame(fin=True, opcode=8, data=b'\x03\xe8', rsv1=False, rsv2=False, rsv3=False)
DEBUG:websockets.protocol:client - event = connection_lost(None)
DEBUG:websockets.protocol:client - state = CLOSED
DEBUG:websockets.protocol:client x code = 1000, reason = [no reason]
DEBUG:websockets.protocol:client x closing TCP connection