1
Files
2025/tools/lib/weather/constants.js

19 lines
297 B
JavaScript

const WEATHER_FIELDS = [
"temperature",
"humidity",
"pressure",
"illuminance",
"precipitations",
"wind_speed",
"wind_direction",
];
function hasValue(value) {
return value !== null && value !== undefined;
}
module.exports = {
WEATHER_FIELDS,
hasValue,
};