Ajout de données météo
This commit is contained in:
18
tools/lib/weather/constants.js
Normal file
18
tools/lib/weather/constants.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user