mirror of
https://github.com/KevinMidboe/hivemonitor.git
synced 2025-10-29 01:20:25 +00:00
Interfaces for modal & mqtt telemetry messages
This commit is contained in:
4
src/lib/interfaces/IModal.ts
Normal file
4
src/lib/interfaces/IModal.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default interface IModal {
|
||||
opens: any
|
||||
data: any
|
||||
}
|
||||
17
src/lib/interfaces/ITelemetry.ts
Normal file
17
src/lib/interfaces/ITelemetry.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface IGatewayTelemetry {
|
||||
gateway_name: string;
|
||||
t: string;
|
||||
temperature: string;
|
||||
battery_level?: string;
|
||||
last_sync?: string;
|
||||
}
|
||||
|
||||
export interface IHiveTelemetry {
|
||||
hive_name: string;
|
||||
t: string;
|
||||
temperature: string;
|
||||
humidity?: string;
|
||||
pressure?: string;
|
||||
weight?: string;
|
||||
battery_level?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user