mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
More new UI work
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
21
WebDisplay/src/models/weather/wind-direction.ts
Normal file
21
WebDisplay/src/models/weather/wind-direction.ts
Normal 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;
|
||||
Reference in New Issue
Block a user