Updated notebook, have to copy in an access_token which I don't like doing
parent
fbf09eb767
commit
9ad71170c8
264
Playground.ipynb
264
Playground.ipynb
|
@ -23,9 +23,20 @@
|
||||||
"execution_count": 1,
|
"execution_count": 1,
|
||||||
"id": "1394471a",
|
"id": "1394471a",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stderr",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"INFO:root:Using EagleEyev3 version 0.0.4\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"from EagleEyev3 import EagleEyev3"
|
"from EagleEyev3 import *\n",
|
||||||
|
"from settings import config\n",
|
||||||
|
"\n",
|
||||||
|
"logging.info(f\"Using EagleEyev3 version {EagleEyev3.__version__}\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -33,18 +44,9 @@
|
||||||
"execution_count": 2,
|
"execution_count": 2,
|
||||||
"id": "486a2537",
|
"id": "486a2537",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [],
|
||||||
{
|
|
||||||
"name": "stderr",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"INFO:root:200 in get_base_url\n",
|
|
||||||
"INFO:root:200 in get_current_user\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"een = EagleEyev3()"
|
"een = EagleEyev3(config)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -81,7 +83,41 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": 8,
|
||||||
|
"id": "8d40a4e4",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"een.access_token = \"eyJraWQiOiI2ODYxYjBjYS0wZjI2LTExZWQtODYxZC0wMjQyYWMxMjAwMDIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjYWZlZGVmMiIsImF1ZCI6InZtcy5hcGkiLCJpc3MiOiJ2bXMuYXV0aC52MSIsInZtc19hY2NvdW50IjoiMDAwMjgyMDEiLCJleHAiOjE2OTA0MzM2MDMsImlhdCI6MTY4OTgyODgwMywianRpIjoiMTIzYmYwZmVmMDk0MDFlZmM0MWYxODhjODVhMGY3MTAiLCJjbGllbnRfaWQiOiIzMmRhYzMzMDY0OWI0ODI3OWY5Y2FjYzJiNmY1N2FlNSIsInZtc19jbHVzdGVyIjoiYzAxMiJ9.O3vQ4B8jRmxKIfTUzMWKVhTCecsyG3J5ARR1yrYDjero3cor1cMyVTdaUwn_pe_vWAVL4je3H2NY0nNlMHIBDbVzfIa8LqPzWfawylQN4-258gixeyjWw1vRUf99hrQXEBa4cTUvi_p7bzyARt8EPOnDczfyAx31r5z3Rt6l21kAe0uCuzCZ4W7VhbWLD9tPADBRnKb6fiS_ZA6U9DpMMWXwT1hnEBklbKOUlsi30r9AQNFGVcL_159OTde0K031LHnyRPv3LnRyXzjZpkaY9zsR--1hq_nCgNipdk42R0rePCF-hw-J0oGpj-vAsHqKadkHgy6cKsqMoE1am1kuKQ\""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 11,
|
||||||
|
"id": "543dae39",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"{'success': True,\n",
|
||||||
|
" 'response_http_status': 200,\n",
|
||||||
|
" 'data': {'httpsBaseUrl': {'hostname': 'api.c012.eagleeyenetworks.com',\n",
|
||||||
|
" 'port': 443}}}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 11,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"een.get_base_url(cascade=True)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 12,
|
||||||
"id": "e14e2be5-a5f9-4b8c-ae60-76c61cb61b8b",
|
"id": "e14e2be5-a5f9-4b8c-ae60-76c61cb61b8b",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
@ -91,7 +127,7 @@
|
||||||
"'Mark Cotton - mcotton@mcottondesign.com'"
|
"'Mark Cotton - mcotton@mcottondesign.com'"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 4,
|
"execution_count": 12,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -102,17 +138,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 5,
|
"execution_count": 13,
|
||||||
"id": "4ef47ae2-a010-4b7e-87f6-3dbf0a047e16",
|
"id": "4ef47ae2-a010-4b7e-87f6-3dbf0a047e16",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"'eyJraWQiOiI2ODYxYjBjYS0wZjI2LTExZWQtODYxZC0wMjQyYWMxMjAwMDIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjYWZlZGVmMiIsImF1ZCI6InZtcy5hcGkiLCJpc3MiOiJ2bXMuYXV0aC52MSIsInZtc19hY2NvdW50IjoiMDAwMjgyMDEiLCJleHAiOjE2ODkzNzA1MTIsImlhdCI6MTY4ODc2NTcxMiwianRpIjoiYTM1Nzk3MmRmNzdiNTAwYTQ3NjBlNGY1MGYwNjNhMjUiLCJjbGllbnRfaWQiOiIzMmRhYzMzMDY0OWI0ODI3OWY5Y2FjYzJiNmY1N2FlNSIsInZtc19jbHVzdGVyIjoiYzAxMiJ9.EEmCaFqduOV5_cQ-VejeBXGbKLj1yHrxGkcMgqPUN1jYY0wR9bO7rkEwQh59Dj-1fr8pKsbrUr6DPDLfkaSIRlxpjdlsEBdzAmoZUpzPUfL9QzJu0C04OJU0gcBh7fwur7L2fMVthaZ6OKfThdM29qzRH5RR9gSAJGeNe08n4IvFVvuL80yvczgOiQwSzkg4PuHpbImDa44U7-qC8CrRvQ_TqsX6ziNzw-XmxZxXEwtZxkAOFDFaIsA8V4ezbQ_TSY6EElCnyyKLLI46-KIsGevx8dxa2NrhPFvC725dMhg-OPaCEF62sOlTrlHVBcv_e9MBk1VZLoDLStkSvU7Dxg'"
|
"'eyJraWQiOiI2ODYxYjBjYS0wZjI2LTExZWQtODYxZC0wMjQyYWMxMjAwMDIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjYWZlZGVmMiIsImF1ZCI6InZtcy5hcGkiLCJpc3MiOiJ2bXMuYXV0aC52MSIsInZtc19hY2NvdW50IjoiMDAwMjgyMDEiLCJleHAiOjE2OTA0MzM2MDMsImlhdCI6MTY4OTgyODgwMywianRpIjoiMTIzYmYwZmVmMDk0MDFlZmM0MWYxODhjODVhMGY3MTAiLCJjbGllbnRfaWQiOiIzMmRhYzMzMDY0OWI0ODI3OWY5Y2FjYzJiNmY1N2FlNSIsInZtc19jbHVzdGVyIjoiYzAxMiJ9.O3vQ4B8jRmxKIfTUzMWKVhTCecsyG3J5ARR1yrYDjero3cor1cMyVTdaUwn_pe_vWAVL4je3H2NY0nNlMHIBDbVzfIa8LqPzWfawylQN4-258gixeyjWw1vRUf99hrQXEBa4cTUvi_p7bzyARt8EPOnDczfyAx31r5z3Rt6l21kAe0uCuzCZ4W7VhbWLD9tPADBRnKb6fiS_ZA6U9DpMMWXwT1hnEBklbKOUlsi30r9AQNFGVcL_159OTde0K031LHnyRPv3LnRyXzjZpkaY9zsR--1hq_nCgNipdk42R0rePCF-hw-J0oGpj-vAsHqKadkHgy6cKsqMoE1am1kuKQ'"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 5,
|
"execution_count": 13,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -131,7 +167,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 6,
|
"execution_count": 14,
|
||||||
"id": "bb457850",
|
"id": "bb457850",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
|
@ -141,7 +177,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 7,
|
"execution_count": 15,
|
||||||
"id": "c43f1db1",
|
"id": "c43f1db1",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
@ -149,12 +185,16 @@
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"[✅ [1001423e] - ATM & Wine,\n",
|
"[✅ [1001423e] - ATM & Wine,\n",
|
||||||
|
" ✅ [10090759] - Benny Camera,\n",
|
||||||
" ✅ [100d8666] - Cash Register,\n",
|
" ✅ [100d8666] - Cash Register,\n",
|
||||||
|
" ✅ [1002f1d0] - FR test,\n",
|
||||||
" ✅ [10012735] - Fuel Dock,\n",
|
" ✅ [10012735] - Fuel Dock,\n",
|
||||||
|
" ✅ [100b7b3b] - Max Camera,\n",
|
||||||
|
" ✅ [10009a85] - R2D2,\n",
|
||||||
" ✅ [1002584c] - Safe]"
|
" ✅ [1002584c] - Safe]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 7,
|
"execution_count": 15,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -165,21 +205,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 8,
|
"execution_count": 16,
|
||||||
"id": "f4c6fe67",
|
"id": "f4c6fe67",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"[? [10090759] - Benny Camera,\n",
|
"[]"
|
||||||
" ? [1003e10b] - Driveway,\n",
|
|
||||||
" ? [100ba388] - Front Door,\n",
|
|
||||||
" ? [100b7b3b] - Max Camera,\n",
|
|
||||||
" ? [1009ae55] - Office]"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 8,
|
"execution_count": 16,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -198,7 +234,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 9,
|
"execution_count": 17,
|
||||||
"id": "74e78ee1-33b8-4a88-9d23-cd6281603a5b",
|
"id": "74e78ee1-33b8-4a88-9d23-cd6281603a5b",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
@ -206,7 +242,7 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"2023-07-07T16:41:31.990-05:00 2023-07-07T10:41:31.990-05:00\n"
|
"2023-07-20T00:32:07.243-05:00 2023-07-19T18:32:07.243-05:00\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -216,7 +252,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 11,
|
"execution_count": 18,
|
||||||
"id": "c84c30dd-4b7c-415b-8e6f-e77de70d1924",
|
"id": "c84c30dd-4b7c-415b-8e6f-e77de70d1924",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"scrolled": true
|
"scrolled": true
|
||||||
|
@ -233,17 +269,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 12,
|
"execution_count": 19,
|
||||||
"id": "13809cc7-9ec2-4e15-9495-e64feaecca6d",
|
"id": "13809cc7-9ec2-4e15-9495-e64feaecca6d",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"18"
|
"5"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 12,
|
"execution_count": 19,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -254,7 +290,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 13,
|
"execution_count": 20,
|
||||||
"id": "67d4f79b-2b43-4bdb-9068-28ac9d8d921c",
|
"id": "67d4f79b-2b43-4bdb-9068-28ac9d8d921c",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
@ -264,7 +300,7 @@
|
||||||
"0"
|
"0"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 13,
|
"execution_count": 20,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
@ -275,7 +311,29 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 14,
|
"execution_count": 25,
|
||||||
|
"id": "c7513a23",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"[1008d090] Benny Camera [10090759]\n",
|
||||||
|
"[1008d090] FR test [1002f1d0]\n",
|
||||||
|
"[1008d090] Max Camera [100b7b3b]\n",
|
||||||
|
"[1008d090] R2D2 [10009a85]\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"for cam in [i for i in een.cameras if i.bridge_id]:\n",
|
||||||
|
" print(f\"[{cam.bridge_id}] {cam.name} [{cam.id}]\")"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 22,
|
||||||
"id": "8be8d503-b46d-4ba7-884e-2c21c3987129",
|
"id": "8be8d503-b46d-4ba7-884e-2c21c3987129",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
@ -283,137 +341,15 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"ATM & Wine - 2023-07-07T18:49:29.664+00:00 - deviceOffline \n",
|
"FR test - 2023-07-20T01:22:47.515+00:00 - bridgeOffline \n",
|
||||||
"ATM & Wine - 2023-07-07T18:48:51.444+00:00 - error \n",
|
"FR test - 2023-07-19T23:32:08.348+00:00 - online \n",
|
||||||
"ATM & Wine - 2023-07-07T16:22:04.146+00:00 - online \n",
|
"R2D2 - 2023-07-19T19:38:42.286+00:00 - bridgeOffline \n",
|
||||||
"ATM & Wine - 2023-07-07T16:21:41.960+00:00 - deviceOffline \n",
|
"R2D2 - 2023-07-19T17:32:10.875+00:00 - online \n"
|
||||||
"ATM & Wine - 2023-07-07T16:18:16.383+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-07T16:16:31.511+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-07T16:15:57.174+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-07T15:44:21.759+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T15:41:31.997+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T12:46:47.672+00:00 - bridgeOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-07T11:24:46.454+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T11:22:37.461+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-07T11:21:59.127+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-07T09:44:24.462+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T09:41:33.395+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T06:00:38.322+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-07T06:00:00.175+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-07T04:07:20.003+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T04:05:21.238+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-07T04:04:42.160+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-07T03:44:26.904+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T03:41:56.630+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-07T01:48:05.792+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-07T01:47:35.155+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T23:19:05.335+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T23:16:58.926+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T23:16:28.421+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T23:10:32.790+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T21:44:28.864+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T21:41:57.860+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T20:08:47.208+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T20:08:16.933+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T20:03:05.801+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T20:02:43.659+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T20:01:41.457+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T19:59:57.405+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T19:59:24.184+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T19:31:55.867+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T19:29:46.708+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T19:29:16.013+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T18:24:27.389+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T18:22:22.328+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T18:21:52.102+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T15:52:12.759+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T15:50:09.509+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T15:49:39.152+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T15:41:58.888+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T15:11:05.317+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T15:10:35.056+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T14:59:51.787+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T14:58:55.970+00:00 - bridgeOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T14:58:40.967+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T12:58:36.884+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T12:56:38.478+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T12:56:07.792+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T12:49:42.742+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T12:47:32.312+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T12:47:01.925+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T11:40:03.505+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T11:38:03.703+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T11:37:23.038+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T11:31:52.611+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T11:29:42.541+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T11:29:08.199+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T09:42:01.013+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T09:38:38.302+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T09:38:07.937+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T08:31:02.432+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T08:28:53.086+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T08:28:22.667+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T04:07:10.931+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T04:05:11.397+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T04:04:38.124+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-06T03:43:19.799+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-06T02:15:51.335+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-06T02:15:19.584+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T21:43:39.111+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T18:35:23.024+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T18:34:44.881+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T17:13:14.356+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T17:11:09.341+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T17:10:29.222+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T15:43:44.544+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T15:33:04.629+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T15:32:34.148+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T15:13:36.151+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T15:11:33.954+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T15:10:54.632+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T14:24:50.082+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T14:22:50.393+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T14:22:12.040+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T14:02:42.746+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T14:00:34.085+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T13:59:55.709+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T10:43:54.157+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T10:41:56.025+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T10:41:23.556+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T10:10:27.404+00:00 - online \n",
|
|
||||||
"ATM & Wine - 2023-07-05T10:08:19.943+00:00 - deviceOffline \n",
|
|
||||||
"ATM & Wine - 2023-07-05T10:07:50.455+00:00 - error \n",
|
|
||||||
"ATM & Wine - 2023-07-05T09:44:11.782+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-07T20:02:49.237+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-07T20:02:31.354+00:00 - deviceOffline \n",
|
|
||||||
"Cash Register - 2023-07-07T16:01:54.202+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-07T16:01:52.891+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-07T15:44:21.759+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-07T15:41:31.997+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-06T23:01:59.550+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-06T21:44:28.864+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-06T21:41:57.860+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-06T14:58:55.385+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-06T14:58:40.382+00:00 - deviceOffline \n",
|
|
||||||
"Cash Register - 2023-07-06T10:01:40.245+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-06T10:01:39.158+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-06T09:42:01.013+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-05T20:06:43.349+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-05T18:01:54.584+00:00 - online \n",
|
|
||||||
"Cash Register - 2023-07-05T18:01:53.582+00:00 - bridgeOffline \n",
|
|
||||||
"Cash Register - 2023-07-05T15:43:44.544+00:00 - online \n",
|
|
||||||
"Safe - 2023-07-06T14:58:55.537+00:00 - bridgeOffline \n",
|
|
||||||
"Safe - 2023-07-06T14:58:40.535+00:00 - deviceOffline \n",
|
|
||||||
"Safe - 2023-07-06T09:42:01.013+00:00 - online \n",
|
|
||||||
"Safe - 2023-07-06T07:27:05.695+00:00 - bridgeOffline \n",
|
|
||||||
"Safe - 2023-07-06T03:43:19.799+00:00 - online \n",
|
|
||||||
"Safe - 2023-07-06T02:05:12.252+00:00 - bridgeOffline \n",
|
|
||||||
"Safe - 2023-07-05T21:43:39.111+00:00 - online \n"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"for cam in een.cameras:\n",
|
"for cam in [i for i in een.cameras if i.bridge_id]:\n",
|
||||||
" for i in cam.events['status']:\n",
|
" for i in cam.events['status']:\n",
|
||||||
" print(f\"{cam.name} - {i['startTimestamp']} - {i['data'][0]['newStatus']['connectionStatus']} \")"
|
" print(f\"{cam.name} - {i['startTimestamp']} - {i['data'][0]['newStatus']['connectionStatus']} \")"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue