Components

ShutterItem

<ShutterItem positionUrl slatAngleUrl />

Constructor

# <ShutterItem positionUrl slatAngleUrl />

This component is just a container used to hold any Shutter sensor item. It is responsible for making periodic calls to fetch the current values of the sensor to be displayed in the dashboard. It relies on useInterval and useMultipleFetch hooks.

PropTypes:
Name Type Required Description Default
positionUrl string Yes The endpoint to fetch the current position value from.
slatAngleUrl string Yes The endpoint to fetch the current slat angle value from.

View Source components/dashboard/ShutterItem.jsx, line 19

<ShutterItem />