More new UI work

This commit is contained in:
2024-03-08 01:54:11 +00:00
parent f21c59a78a
commit 5194a903b3
12 changed files with 184 additions and 59 deletions

View File

@@ -1,8 +1,10 @@
import WindDirection from './wind-direction';
export default class WeatherRecent {
type: string | undefined;
message: null | undefined;
timestamp: Date | undefined;
windDirection: string | undefined;
windDirection: WindDirection | undefined;
windSpeed: number | undefined;
humidity: number | undefined;
rain: number | undefined;

View File

@@ -1,8 +1,10 @@
import WindDirection from './wind-direction';
export default class WeatherUpdate {
Type: string | undefined;
Message: null | undefined;
Timestamp: Date | undefined;
WindDirection: string | undefined;
WindDirection: WindDirection | undefined;
WindSpeed: number | undefined;
Humidity: number | undefined;
Rain: number | undefined;

View File

@@ -0,0 +1,21 @@
export enum WindDirection {
None = 'None',
North = 'North',
East = 'East',
South = 'South',
West = 'West',
NorthEast = 'NorthEast',
SouthEast = 'SouthEast',
SouthWest = 'SouthWest',
NorthWest = 'NorthWest',
NorthNorthEast = 'NorthNorthEast',
EastNorthEast = 'EastNorthEast',
EastSouthEast = 'EastSouthEast',
SouthSouthEast = 'SouthSouthEast',
SouthSouthWest = 'SouthSouthWest',
WestSouthWest = 'WestSouthWest',
WestNorthWest = 'WestNorthWest',
NorthNorthWest = 'NorthNorthWest'
}
export default WindDirection;