From 5553cf3f0dcd053b7696e353ff7d6c7cfeb6df14 Mon Sep 17 00:00:00 2001 From: Kevin Abraham Date: Tue, 9 Apr 2019 14:42:28 -0400 Subject: [PATCH] Add temp and battery to details pane --- src/components/DetailsView/DetailsView.tsx | 6 ++++++ src/components/DetailsView/queries.ts | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/components/DetailsView/DetailsView.tsx b/src/components/DetailsView/DetailsView.tsx index 4bd3071..4fb65d8 100644 --- a/src/components/DetailsView/DetailsView.tsx +++ b/src/components/DetailsView/DetailsView.tsx @@ -45,6 +45,12 @@ const DetailsView: React.FC = () => (

)} +

+ Temp: {node.telemetry.temp}ÂșC +

+

+ Battery: {node.telemetry.batt}% +

))} diff --git a/src/components/DetailsView/queries.ts b/src/components/DetailsView/queries.ts index 5aea324..daefc8f 100644 --- a/src/components/DetailsView/queries.ts +++ b/src/components/DetailsView/queries.ts @@ -18,6 +18,8 @@ export const detailsViewQuery = gql` } telemetry { groundSpeed + temp + batt } } }