Components

TachometerItem

<TachometerItem url type />

Constructor

# <TachometerItem url type />

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

PropTypes:
Name Type Required Description Default
url string Yes The endpoint to fetch the current power value from.
type enum Yes The type of power device. It must be one of powerA, powerB, powerC, power.

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

<TachometerItem />