ManualMovementEvent
[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     Ts int64
35 }
36
37 type BoreDoomButtonPressEvent struct {
38     Ts int64
39 }
40
41 type TempSensorUpdate struct {
42     Sensorindex int
43     Value float64
44     Ts int64
45 }
46
47 type IlluminationSensorUpdate struct {
48     Sensorindex int
49     Value int64
50     Ts int64
51 }
52
53 type DustSensorUpdate struct {
54     Sensorindex int
55     Value int64
56     Ts int64
57 }
58
59 type RelativeHumiditySensorUpdate struct {
60     Sensorindex int
61     Percent int
62     Ts int64
63 }
64
65 type NetDHCPACK struct {
66     Mac string
67     IP string
68     Name string
69     Ts int64
70 }
71
72 type NetGWStatUpdate struct {
73     WifiRX int32
74     WifiTX int32
75     EthernetRX int32
76     EthernetTX int32
77     InternetRX int32
78     InternetTX int32
79     NumNeigh int32
80     Ts int64
81 }
82
83 type TimeTick struct {
84     Ts int64
85 }
86
87 type MovementSensorUpdate struct {
88     Sensorindex int
89     Ts int64
90 }