#NEWLINE# def _handle_daytime_command( self , cmd ) : #NEWLINE# #INDENT# ' Handles a daytime command. This could either be a command to set\n        the time, or a command to reload the time of day configuration. ' #NEWLINE# if cmd . startswith ( 'settime ' ) : #NEWLINE# #INDENT# daytime = float ( cmd . split ( ) [ 1 ] ) #NEWLINE# self . _pipeline . daytime_mgr . time = daytime #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if cmd . startswith ( 'loadconf' ) : #NEWLINE# #INDENT# self . _pipeline . plugin_mgr . load_daytime_overrides ( '/$$rpconfig/daytime.yaml' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . warn ( 'Recieved unkown daytime command:' , cmd )