finalized tb gateway extension

This commit is contained in:
Nico Melone
2022-08-20 10:06:20 -05:00
parent c28194c00f
commit ec7fbae0cb
11 changed files with 529 additions and 76 deletions

View File

@@ -25,7 +25,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
@@ -38,11 +38,11 @@
" customer = rest_client.get_customers(page_size=10,page=0,text_search=\"Amerus Safety Solutions\")\n",
" #print(customer)\n",
" cid = customer.data[0].id.id\n",
" device = rest_client.get_customer_devices(customer_id=cid, page=0, page_size=10,text_search=\"Camera Trailer 104\")\n",
" device = rest_client.get_customer_devices(customer_id=cid, page=0, page_size=10,text_search=\"Camera Trailer 107\")\n",
" #print(device)\n",
" eType = device.data[0].id.entity_type\n",
" eid = device.data[0].id.id\n",
" start = convertDateTimeToMS(\"28 Jun 2022, 00:00:00\")\n",
" start = convertDateTimeToMS(\"28 Jul 2022, 00:00:00\")\n",
" end = int(dt.now().timestamp() * 1000)\n",
" telemetry = rest_client.get_timeseries(entity_type=eType, entity_id=eid , keys=\"snapshot\", start_ts=start, end_ts=end, limit=1000)\n",
" #print(telemetry)\n",
@@ -52,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
@@ -81,7 +81,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.5"
},
"orig_nbformat": 4
},