himbeerecouch.util

Utility modules

Blink the leds on the RPi

himbeerecouch.util.getipaddr(interface=None)[source]

Get ip address of interface

Parameters:interface (str) – which interface to check, (if None, then ‘etho’)
Return type:str
himbeerecouch.util.getmacid(interface=None)[source]

Get MAC id of interface

Parameters:interface (str) – which interface to check, (if None, then ‘etho’)
Return type:int
himbeerecouch.util.getpassword()[source]

Get password, which is a combination of mac id and serial number

Return type:str
himbeerecouch.util.getserial()[source]

Return serial number of RaspPi

Return type:str
himbeerecouch.util.stack_trace(ignore_from=None)[source]

Return stack trace as list of strings, ignoring beginning at the function given (ignore_from).

See usage in himbeerecouch.rpc.RPCObject.output_handler()

himbeerecouch.util.stop_blinking(v)[source]

stop blinking the leds