def updateAdvanced(self, sec, slotid):
lnbSat = {}
- for x in range(1,129):
+ for x in range(1,37):
lnbSat[x] = []
#wildcard for all satellites ( for rotor )
print "add", x[0], "to", lnb
lnbSat[lnb].append(x[0])
- for x in range(1,129):
+ for x in range(1,37):
if len(lnbSat[x]) > 0:
currLnb = config.Nims[slotid].advanced.lnb[x]
sec.addLNB()
elif currSat.tonemode == "off":
sec.setToneMode(switchParam.OFF)
- if not currSat.usals.value and x < 125:
+ if not currSat.usals.value and x < 34:
sec.setRotorPosNum(currSat.rotorposition.value)
else:
sec.setRotorPosNum(0) #USALS
nim.advanced.sats = getConfigSatlist(192,nimmgr.satList+tmp)
nim.advanced.sat = ConfigSubDict()
lnbs = [("0", "not available")]
- for y in range(1, 125):
+ for y in range(1, 33):
lnbs.append((str(y), "LNB " + str(y)))
for x in nimmgr.satList:
nim.advanced.sat[x].tonemode = ConfigSelection(choices={"band": _("Band"), "on": _("On"), "off": _("Off")}, default = "band")
nim.advanced.sat[x].usals = ConfigYesNo(default=True)
nim.advanced.sat[x].rotorposition = ConfigInteger(default=1, limits=(1, 255))
- lnbnum = 125+x-3601
+ lnbnum = 33+x-3601
nim.advanced.sat[x].lnb = ConfigSelection(choices = [("0", "not available"), (str(lnbnum), "LNB %d"%(lnbnum))], default="0")
csw = [("none", _("None")), ("AA", _("AA")), ("AB", _("AB")), ("BA", _("BA")), ("BB", _("BB"))]
nim.advanced.lnb = ConfigSubList()
nim.advanced.lnb.append(ConfigNothing())
- for x in range(1, 129):
+ for x in range(1, 37):
nim.advanced.lnb.append(ConfigSubsection())
nim.advanced.lnb[x].lof = ConfigSelection(choices={"universal_lnb": _("Universal LNB"), "c_band": _("C-Band"), "user_defined": _("User defined")}, default="universal_lnb")
nim.advanced.lnb[x].lofl = ConfigInteger(default=9750, limits = (0, 99999))
# nim.advanced.lnb[x].output_12v = ConfigSelection(choices = [("0V", _("0 V")), ("12V", _("12 V"))], default="0V")
nim.advanced.lnb[x].increased_voltage = ConfigYesNo(default=False)
nim.advanced.lnb[x].toneburst = ConfigSelection(choices = [("none", _("None")), ("A", _("A")), ("B", _("B"))], default = "none")
- if x > 124:
+ if x > 32:
nim.advanced.lnb[x].diseqcMode = ConfigSelection(choices = [("1_2", _("1.2"))], default = "1_2")
else:
nim.advanced.lnb[x].diseqcMode = ConfigSelection(choices = [("none", _("None")), ("1_0", _("1.0")), ("1_1", _("1.1")), ("1_2", _("1.2"))], default = "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":
- if lnbnum < 125:
+ if lnbnum < 33:
self.advancedUsalsEntry = getConfigListEntry(_("Use usals for this sat"), Sat.usals)
self.list.append(self.advancedUsalsEntry)
if not Sat.usals.value:
self.advancedLnbsEntry = getConfigListEntry(_("LNB"), Sat.lnb)
self.list.append(self.advancedLnbsEntry)
if currLnb:
- if lnbnum < 125:
+ if lnbnum < 33:
self.advancedDiseqcMode = getConfigListEntry(_("DiSEqC mode"), currLnb.diseqcMode)
self.list.append(self.advancedDiseqcMode)
if currLnb.diseqcMode.value != "none":