Constructor
# <ThermometerItem url minimum maximum />
This component is just a container used to hold any Thermometer 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. | |
minimum |
number | Yes | The minimum value of temperature than can be measured by the sensor. | |
maximum |
number | Yes | The maximum value of temperature than can be measured by the sensor. |