-
- def getFrontend(self):
- return self.frontend
-
- def command(self, what, param = 0):
- if self.ready:
- cmd = eDVBDiseqcCommand()
- if what == "moveWest":
- string = 'e03169' + ("%02x" % param)
- elif what == "moveEast":
- string = 'e03168' + ("%02x" % param)
- elif what == "moveTo":
- string = 'e0316b' + ("%02x" % param)
- elif what == "store":
- string = 'e0316a' + ("%02x" % param)
- elif what == "limitOn":
- string = 'e0316a00'
- elif what == "limitOff":
- string = 'e03163'
- elif what == "limitEast":
- string = 'e03166'
- elif what == "limitWest":
- string = 'e03167'
- else:
- string = 'e03160' #positioner stop
- print "diseqc command:",
- print string
-
- cmd.setCommandString(string)
- self.frontend.sendDiseqc(cmd)
-
-class Satfinder(ScanSetup):
- skin = """
- <screen position="90,100" size="520,400" title="Tune">
- <widget name="config" position="20,10" size="460,240" scrollbarMode="showOnDemand" />
- <widget name="introduction" position="20,360" zPosition="-10" size="350,30" font="Regular;23" />
- <widget name="snr" text="SNR:" position="0,245" size="60,22" font="Regular;21" />
- <widget name="agc" text="AGC:" position="0,270" size="60,22" font="Regular;21" />
- <widget name="ber" text="BER:" position="0,295" size="60,22" font="Regular;21" />
- <widget name="lock" text="Lock:" position="0,320" size="60,22" font="Regular;21" />
- <widget name="snr_percentage" position="220,245" size="60,22" font="Regular;21" />
- <widget name="agc_percentage" position="220,270" size="60,22" font="Regular;21" />
- <widget name="ber_value" position="220,295" size="60,22" font="Regular;21" />
- <widget name="lock_state" position="60,320" size="150,22" font="Regular;21" />
- <widget name="snr_bar" position="60,245" size="150,22" />
- <widget name="agc_bar" position="60,270" size="150,22" />
- <widget name="ber_bar" position="60,295" size="150,22" />
- </screen>"""