mirror of
https://github.com/Sosokker/HomieCare.git
synced 2025-12-20 10:24:04 +01:00
Add type interface of weather data
This commit is contained in:
parent
0113287e1d
commit
5a37893596
27
frontend/src/types/weather.ts
Normal file
27
frontend/src/types/weather.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
interface WeatherData {
|
||||||
|
timestamp: string;
|
||||||
|
outdoor_temp: number;
|
||||||
|
outdoor_feels_like: number;
|
||||||
|
outdoor_pressure: number;
|
||||||
|
outdoor_humidity: number;
|
||||||
|
outdoor_weather: string;
|
||||||
|
outdoor_description: string;
|
||||||
|
outdoor_pm25: number;
|
||||||
|
outdoor_pm10: number;
|
||||||
|
indoor_temp: number;
|
||||||
|
indoor_light: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IndoorWeatherData {
|
||||||
|
avg_indoor_temp: number;
|
||||||
|
avg_indoor_light: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WeatherData {
|
||||||
|
avg_outdoor_temp: number;
|
||||||
|
avg_outdoor_feels_like: number;
|
||||||
|
avg_outdoor_pressure: number;
|
||||||
|
avg_outdoor_humidity: number;
|
||||||
|
avg_outdoor_pm25: number;
|
||||||
|
avg_outdoor_pm10: number;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user