securiphant.db.events package¶
Submodules¶
securiphant.db.events.DoorOpenEvent module¶
-
class
securiphant.db.events.DoorOpenEvent.
DoorOpenEvent
(**kwargs)¶ Bases:
sqlalchemy.ext.declarative.api.Base
Event that gets stored whenever the door is opened
-
__init__
(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
duration
¶ The duration that the door was open
-
id
¶ The ID of the event
-
timestamp
¶ The time this event took place as a UNIX timestamp
Whether or not the user was authorized while the door was opened
-
securiphant.db.events.SpeakerEvent module¶
-
class
securiphant.db.events.SpeakerEvent.
SpeakerEvent
(**kwargs)¶ Bases:
sqlalchemy.ext.declarative.api.Base
Event that gets stored whenever a phrase is said on the speaker system
-
__init__
(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
executed
¶ Whether or not the speaker event was executed already
-
id
¶ The ID of the event
-
play
()¶ Plays the text over the speaker using flite :return: None
-
text
¶ The text said over the speakers
-
timestamp
¶ The time this event took place as a UNIX timestamp
-