Skip to content

Commit

Permalink
Add temp and battery to details pane
Browse files Browse the repository at this point in the history
  • Loading branch information
abraha2d committed Apr 9, 2019
1 parent a0343dd commit 5553cf3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/DetailsView/DetailsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ const DetailsView: React.FC = () => (
</p>
</div>
)}
<p>
Temp: {node.telemetry.temp}ºC
</p>
<p>
Battery: {node.telemetry.batt}%
</p>
</Collapse.Panel>
))}
</StyledCollapse>
Expand Down
2 changes: 2 additions & 0 deletions src/components/DetailsView/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const detailsViewQuery = gql`
}
telemetry {
groundSpeed
temp
batt
}
}
}
Expand Down

0 comments on commit 5553cf3

Please sign in to comment.