usermods/BH1750_v2/readme.md
This usermod will read from an ambient light sensor like the BH1750.
The luminance is displayed in both the Info section of the web UI, as well as published to the /luminance MQTT topic if enabled.
claws/BH1750 @^1.2.0To enable, compile with BH1750 in custom_usermods (e.g. in platformio_override.ini)
The following settings can be set at compile-time but are configurable on the usermod menu (except First Measurement time):
USERMOD_BH1750_MAX_MEASUREMENT_INTERVAL - the max number of milliseconds between measurements, defaults to 10000msUSERMOD_BH1750_MIN_MEASUREMENT_INTERVAL - the min number of milliseconds between measurements, defaults to 500msUSERMOD_BH1750_OFFSET_VALUE - the offset value to report on, defaults to 1USERMOD_BH1750_FIRST_MEASUREMENT_AT - the number of milliseconds after boot to take first measurement, defaults to 10000 msIn addition, the Usermod screen allows you to:
The following method is available to interact with the usermod from other code modules:
getIlluminance read the brightness from the sensorJul 2022
readme.md