AHF_Trigger
AHF_Trigger.AHF_Trigger module
- class AHF_Trigger.AHF_Trigger(taskP, settingsDictP)
Bases:
AHF_Base.AHF_BaseSends/receives signals as to another pi to start/stop recording
- abstract doTrigger(message)
- abstract getTrigger()
AHF_Trigger.AHF_Trigger_UDP module
- class AHF_Trigger_UDP.AHF_Trigger_UDP(taskP, settingsDictP)
Bases:
AHF_Trigger.AHF_TriggerSends/receives UDP signals as to another pi to start/stop recording from some device
AHF_UDPTrig uses the socket module to do the UDP stuff, but it should be part of the default install
- static about()
Returns a brief message describing your sub-class, used when asking user to pick a sub-class of this class
- static config_user_get(starterDict={})
static method that querries user for settings, with default responses from starterDict, and returns starterDict with settings as edited by the user.
- default_UDP_LIST = '127.0.0.1'
- default_UDP_PORT = 5007
- doTrigger(message)
Sends a UDP message to the stored list of ip addresses
- getTrigger()
Waits for a UDP message and returns a string containing the message
- hardwareTest()
Tests functionality, gives user a chance to change settings. :Returns: bool – True if any settings have changed
- setdown()
oppposite of setup. Releases any hardware resouces. can be run before editing settings so GPIO pins can be reused, for example. This strategy should be used in hardwareTest method.
- setup()
Makes a new AHF_UDPtrig object using passed in list of ip addresses.
stores UDPlist in the new object sets hasUDP to false if object creation fails because of network error, else True
- start_delay = 3.0