GasLeakSensor
[svn42.git] / go / r3events / basicevents.go
1 // (c) Bernhard Tittelbach, 2013
2
3 package r3events
4
5
6 type DoorLockUpdate struct {
7     Locked bool
8     Ts int64
9 }
10
11 type DoorAjarUpdate struct {
12     Shut bool
13     Ts int64
14 }
15
16 type BackdoorAjarUpdate struct {
17     Shut bool
18     Ts int64
19 }
20
21 type DoorCommandEvent struct {
22     Command string
23     Using string
24     Who string
25     Ts int64
26 }
27
28 type DoorManualMovementEvent struct {
29     Ts int64
30 }
31
32 type DoorProblemEvent struct {
33     Severity int
34     Problem string
35     Ts int64
36 }
37
38 type BoreDoomButtonPressEvent struct {
39     Ts int64
40 }
41
42 type TempSensorUpdate struct {
43     Sensorindex int
44     Value float64
45     Ts int64
46 }
47
48 type IlluminationSensorUpdate struct {
49     Sensorindex int
50     Value int64
51     Ts int64
52 }
53
54 type DustSensorUpdate struct {
55     Sensorindex int
56     Value int64
57     Ts int64
58 }
59
60 type RelativeHumiditySensorUpdate struct {
61     Sensorindex int
62     Percent int
63     Ts int64
64 }
65
66 type NetDHCPACK struct {
67     Mac string
68     IP string
69     Name string
70     Ts int64
71 }
72
73 type NetGWStatUpdate struct {
74     WifiRX int32
75     WifiTX int32
76     EthernetRX int32
77     EthernetTX int32
78     InternetRX int32
79     InternetTX int32
80     NumNeigh int32
81     Ts int64
82 }
83
84 type GasLeakAlert struct {
85     Ts int64
86 }
87
88 type TimeTick struct {
89     Ts int64
90 }
91
92 type MovementSensorUpdate struct {
93     Sensorindex int
94     Ts int64
95 }