+ nimmanager.sec.update()
+
+ def fillListWithAdvancedSatEntrys(self, Sat):
+ currLnb = self.nimConfig.advanced.lnb[int(Sat.lnb.value)]
+
+ if isinstance(currLnb, ConfigNothing):
+ currLnb = None
+
+ self.list.append(getConfigListEntry(_("Voltage mode"), Sat.voltage))
+ self.list.append(getConfigListEntry(_("Tone mode"), Sat.tonemode))
+ if currLnb and currLnb.diseqcMode.value == "1_2":
+ self.advancedUsalsEntry = getConfigListEntry(_("Use usals for this sat"), Sat.usals)
+ self.list.append(self.advancedUsalsEntry)
+ if not Sat.usals.value:
+ self.list.append(getConfigListEntry(_("Stored position"), Sat.rotorposition))
+
+ # LNBs
+ self.advancedLnbsEntry = getConfigListEntry(_("LNB"), Sat.lnb)
+ self.list.append(self.advancedLnbsEntry)
+ if currLnb:
+ self.advancedDiseqcMode = getConfigListEntry(_("DiSEqC mode"), currLnb.diseqcMode)
+ self.list.append(self.advancedDiseqcMode)
+ if currLnb.diseqcMode.value != "none":
+ self.list.append(getConfigListEntry(_("Toneburst"), currLnb.toneburst))
+ self.list.append(getConfigListEntry(_("Committed DiSEqC command"), currLnb.commitedDiseqcCommand))
+ self.list.append(getConfigListEntry(_("Fast DiSEqC"), currLnb.fastDiseqc))
+ self.list.append(getConfigListEntry(_("Sequence repeat"), currLnb.sequenceRepeat))
+ if currLnb.diseqcMode.value == "1_0":
+ self.list.append(getConfigListEntry(_("Command order"), currLnb.commandOrder1_0))
+ else:
+ self.list.append(getConfigListEntry(_("Command order"), currLnb.commandOrder))
+ self.list.append(getConfigListEntry(_("Uncommitted DiSEqC command"), currLnb.uncommittedDiseqcCommand))
+ self.list.append(getConfigListEntry(_("DiSEqC repeats"), currLnb.diseqcRepeats))
+ if currLnb.diseqcMode.value == "1_2":
+ self.list.append(getConfigListEntry(_("Longitude"), currLnb.longitude))
+ self.list.append(getConfigListEntry(" ", currLnb.longitudeOrientation))
+ self.list.append(getConfigListEntry(_("Latitude"), currLnb.latitude))
+ self.list.append(getConfigListEntry(" ", currLnb.latitudeOrientation))
+ self.advancedPowerMeasurement = getConfigListEntry(_("Use Power Measurement"), currLnb.powerMeasurement)
+ self.list.append(self.advancedPowerMeasurement)
+ if currLnb.powerMeasurement.value:
+ self.list.append(getConfigListEntry(_("Power threshold in mA"), currLnb.powerThreshold))
+ self.turningSpeed = getConfigListEntry(_("Rotor turning speed"), currLnb.turningSpeed)
+ self.list.append(self.turningSpeed)
+ if currLnb.turningSpeed.value == "fast epoch":
+ self.turnFastEpochBegin = getConfigListEntry(_("Begin time"), currLnb.fastTurningBegin)
+ self.turnFastEpochEnd = getConfigListEntry(_("End time"), currLnb.fastTurningEnd)
+ self.list.append(self.turnFastEpochBegin)
+ self.list.append(self.turnFastEpochEnd)
+ self.advancedLof = getConfigListEntry(_("LOF"), currLnb.lof)
+ self.list.append(self.advancedLof)
+ if currLnb.lof.value == "user_defined":
+ self.list.append(getConfigListEntry(_("LOF/L"), currLnb.lofl))
+ self.list.append(getConfigListEntry(_("LOF/H"), currLnb.lofh))
+ self.list.append(getConfigListEntry(_("Threshold"), currLnb.threshold))
+# self.list.append(getConfigListEntry(_("12V Output"), currLnb.output_12v))
+ self.list.append(getConfigListEntry(_("Increased voltage"), currLnb.increased_voltage))
+
+ def fillAdvancedList(self):
+ self.list = [ ]
+ self.configMode = getConfigListEntry(_("Configuration Mode"), self.nimConfig.configMode)
+ self.list.append(self.configMode)
+ self.advancedSatsEntry = getConfigListEntry(_("Satellite"), self.nimConfig.advanced.sats)
+ self.list.append(self.advancedSatsEntry)
+ for x in nimmanager.satList:
+ Sat = self.nimConfig.advanced.sat[x[0]]
+ self.fillListWithAdvancedSatEntrys(Sat)
+ self["config"].list = self.list