Exemplo n.º 1
0
 def __init__(self):
     Service.__init__(self, 'SwitchPower',
                      'urn:schemas-upnp-org:service:SwitchPower:1',
                      '',
                      os.getcwd() + '/SwitchPower-scpd.xml')
     self.target = False
     self.status = False
Exemplo n.º 2
0
 def __init__(self):
     Service.__init__(self,
                      'SwitchPower',
                      'urn:schemas-upnp-org:service:SwitchPower:1',
                      '',
                      os.getcwd() + '/SwitchPower-scpd.xml')
     self.target = False
     self.status = False
Exemplo n.º 3
0
  def __init__(self):
    Service.__init__(self, 'Audio', 'urn:schemas-icucinema-co-uk:service:Audio:1',
        '', os.getcwd() + '/Audio-scpd.xml')

    self.serial = serial.Serial('/dev/ttyUSB0', 9600, timeout=5, bytesize=8, parity='N', stopbits=1)

    self.volume = 0
    self.mute = False
    self.source = 0
Exemplo n.º 4
0
 def __init__(self, controller, actuator, x10Device ):
     Service.__init__( self,
                       'Dimming',
                       'urn:schemas-upnp-org:service:Dimming:1',
                       '',
                       os.getcwd() + '/Dimming-scpd.xml' )
     self.actuator   = actuator
     self.x10Address = x10Device
     self.loadLevelTarget = self.MAX_BRIGHT
     self.loadLevelStatus = self.MAX_BRIGHT
     controller.AddNotifier( self )
Exemplo n.º 5
0
 def __init__(self, controller, actuator, x10Device ):
     Service.__init__( self,
                       'SwitchPower',
                       'urn:schemas-upnp-org:service:SwitchPower:1',
                       '',
                       os.getcwd() + '/SwitchPower-scpd.xml' )
     self.actuator   = actuator
     self.x10Address = x10Device
     self.target     = False
     self.status     = False
     controller.AddNotifier( self )
Exemplo n.º 6
0
    def __init__(self, xml_path):
        Service.__init__(self, service_name, service_type, '',
                         os.path.join(xml_path, 'render-transport-scpd.xml'))
        self.av_transport_uri = ''
        self.number_of_tracks = 0

        if "arm" in platform.uname()[4]:
            self.gst_player = GSTRendererMaemo()
        elif platform.system() == 'Linux':
            self.gst_player = GSTRenderer()

        self.urilist = {}
        self.transport_state = 'NO_MEDIA_PRESENT'
        self.transport_status= 'OK'
        self.transport_speed = 1
Exemplo n.º 7
0
 def publish(self, webserver):
     Service.publish(self, webserver)
     self.plugin_manager.publish_plugins(webserver)
Exemplo n.º 8
0
 def __init__(self, plugins_folder, plugins_module_str):
     Service.__init__(self, service_name, service_type, '', scpd_xml_path)
     self.plugin_manager = plugin_manager.PluginManager(plugins_folder,
                                                        plugins_module_str)
     self.updateID = 0
Exemplo n.º 9
0
 def __init__(self):
     Service.__init__(self, service_name, service_type, '',
                      renderer_scpd_xml_path)
Exemplo n.º 10
0
 def publish(self, webserver):
     Service.publish(self, webserver)
     self.plugin_manager.publish_plugins(webserver)
Exemplo n.º 11
0
 def __init__(self, plugins_folder, plugins_module_str):
     Service.__init__(self, service_name, service_type, '', scpd_xml_path)
     self.plugin_manager = plugin_manager.PluginManager(
         plugins_folder, plugins_module_str)
     self.updateID = 0
Exemplo n.º 12
0
 def __init__(self):
     Service.__init__(self, service_name, service_type, '',
                      renderer_scpd_xml_path)
Exemplo n.º 13
0
 def __init__(self, xml_path, gst_player):
     Service.__init__(self, service_name, service_type, '',
                      os.path.join(xml_path, 'render-control-scpd.xml'))
     self.gst_player = gst_player
Exemplo n.º 14
0
 def __init__(self):
   Service.__init__(self, 'Lighting', 'urn:schemas-icucinema-co-uk:service:Lighting:1',
       '', os.getcwd() + '/Lighting-scpd.xml')
   self.par = parallel.Parallel()
   self.mn = cinelighting.ManolatorDmxController(self.par)
   self.mn.start()
Exemplo n.º 15
0
 def __init__(self):
     Service.__init__(
         self, "SwitchPower", "urn:schemas-upnp-org:service:SwitchPower:1", "", os.getcwd() + "/SwitchPower-scpd.xml"
     )
     self.target = False
     self.status = False