-
- # advanced config:
- nim.advanced = ConfigSubsection()
- tmp = [(3601, _('All Satellites')+' 1', 1), (3602, _('All Satellites')+' 2', 1), (3603, _('All Satellites')+' 3', 1), (3604, _('All Satellites')+' 4', 1)]
- nim.advanced.sats = getConfigSatlist(192,nimmgr.satList+tmp)
- nim.advanced.sat = ConfigSubDict()
- lnbs = [("0", "not available")]
- for y in range(1, 33):
- lnbs.append((str(y), "LNB " + str(y)))
-
- for x in nimmgr.satList:
- nim.advanced.sat[x[0]] = ConfigSubsection()
- nim.advanced.sat[x[0]].voltage = ConfigSelection(choices={"polarization": _("Polarization"), "13V": _("13 V"), "18V": _("18 V")}, default = "polarization")
- nim.advanced.sat[x[0]].tonemode = ConfigSelection(choices={"band": _("Band"), "on": _("On"), "off": _("Off")}, default = "band")
- nim.advanced.sat[x[0]].usals = ConfigYesNo(default=True)
- nim.advanced.sat[x[0]].rotorposition = ConfigInteger(default=1, limits=(1, 255))
- nim.advanced.sat[x[0]].lnb = ConfigSelection(choices = lnbs)
-
- for x in range(3601, 3605):
- nim.advanced.sat[x] = ConfigSubsection()
- nim.advanced.sat[x].voltage = ConfigSelection(choices={"polarization": _("Polarization"), "13V": _("13 V"), "18V": _("18 V")}, default = "polarization")
- 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 = 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"))]
- for y in range(0, 16):
- csw.append((str(0xF0|y), "Input " + str(y+1)))
-
- ucsw = [("0", _("None"))]
- for y in range(1, 17):
- ucsw.append((str(y), "Input " + str(y)))
-
- nim.advanced.lnb = ConfigSubList()
- nim.advanced.lnb.append(ConfigNothing())
-
-
- for x in range(1, 37):
- nim.advanced.lnb.append(ConfigSubsection())
- nim.advanced.lnb[x].lof = ConfigSelection(choices = lnb_choices, default = lnb_choices_default)
-
- nim.advanced.lnb[x].lofl = ConfigInteger(default=9750, limits = (0, 99999))
- nim.advanced.lnb[x].lofh = ConfigInteger(default=10600, limits = (0, 99999))
- nim.advanced.lnb[x].threshold = ConfigInteger(default=11700, limits = (0, 99999))
-
- nim.advanced.lnb[x].unicable = ConfigSelection(choices = unicable_choices, default = unicable_choices_default)
-
- nim.advanced.lnb[x].unicableLnb = unicableLnb
- nim.advanced.lnb[x].unicableLnbManufacturer = ConfigSelection(choices = UnicableLnbManufacturers, default = UnicableLnbManufacturers[0])
-
- nim.advanced.lnb[x].unicableMatrix = unicableMatrix
- nim.advanced.lnb[x].unicableMatrixManufacturer = ConfigSelection(choices = UnicableMatrixManufacturers, default = UnicableMatrixManufacturers[0])
-
- nim.advanced.lnb[x].satcruser = ConfigSelection(choices=[
- ("1", "SatCR 1"),
- ("2", "SatCR 2"),
- ("3", "SatCR 3"),
- ("4", "SatCR 4"),
- ("5", "SatCR 5"),
- ("6", "SatCR 6"),
- ("7", "SatCR 7"),
- ("8", "SatCR 8")],
- default="1")
- nim.advanced.lnb[x].satcrvcouser = satcrvcouser
-
-# 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 > 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")
- nim.advanced.lnb[x].commitedDiseqcCommand = ConfigSelection(choices = csw)
- nim.advanced.lnb[x].fastDiseqc = ConfigYesNo(default=False)
- nim.advanced.lnb[x].sequenceRepeat = ConfigYesNo(default=False)
- nim.advanced.lnb[x].commandOrder1_0 = ConfigSelection(choices = [("ct", "committed, toneburst"), ("tc", "toneburst, committed")], default = "ct")
- nim.advanced.lnb[x].commandOrder = ConfigSelection(choices = [
- ("ct", "committed, toneburst"),
- ("tc", "toneburst, committed"),
- ("cut", "committed, uncommitted, toneburst"),
- ("tcu", "toneburst, committed, uncommitted"),
- ("uct", "uncommitted, committed, toneburst"),
- ("tuc", "toneburst, uncommitted, commmitted")],
- default="ct")
- nim.advanced.lnb[x].uncommittedDiseqcCommand = ConfigSelection(choices = ucsw)
- nim.advanced.lnb[x].diseqcRepeats = ConfigSelection(choices = [("none", _("None")), ("one", _("One")), ("two", _("Two")), ("three", _("Three"))], default = "none")
- nim.advanced.lnb[x].longitude = ConfigFloat(default = [5,100], limits = [(0,359),(0,999)])
- nim.advanced.lnb[x].longitudeOrientation = ConfigSelection(choices = [("east", _("East")), ("west", _("West"))], default = "east")
- nim.advanced.lnb[x].latitude = ConfigFloat(default = [50,767], limits = [(0,359),(0,999)])
- nim.advanced.lnb[x].latitudeOrientation = ConfigSelection(choices = [("north", _("North")), ("south", _("South"))], default = "north")
- nim.advanced.lnb[x].powerMeasurement = ConfigYesNo(default=True)
- nim.advanced.lnb[x].powerThreshold = ConfigInteger(default=hw.get_device_name() == "dm8000" and 15 or 50, limits=(0, 100))
- nim.advanced.lnb[x].turningSpeed = ConfigSelection(choices = [("fast", _("Fast")), ("slow", _("Slow")), ("fast epoch", _("Fast epoch"))], default = "fast")
- btime = datetime(1970, 1, 1, 7, 0);
- nim.advanced.lnb[x].fastTurningBegin = ConfigDateTime(default=mktime(btime.timetuple()), formatstring = _("%H:%M"), increment = 600)
- etime = datetime(1970, 1, 1, 19, 0);
- nim.advanced.lnb[x].fastTurningEnd = ConfigDateTime(default=mktime(etime.timetuple()), formatstring = _("%H:%M"), increment = 600)
- nim.advanced.lnb[x].prio = ConfigSelection(default="-1", choices=prio_list)