cgsetting.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. m = Map("cgminer", translate("Configuration"))
  2. ntp_section = m:section(TypedSection, "cgminer", translate("NTP"))
  3. ntp_section.template = "cgsetting/cbi_tblsection"
  4. ntp_section.anonymous = true
  5. ntp_section.addremove = false
  6. ntp = ntp_section:option(ListValue, "ntp_enable", translate("NTP Service(Default: Disable)"))
  7. ntp.default = "disable"
  8. ntp:value("asia", translate("ASIA"))
  9. ntp:value("openwrt", translate("OpenWrt Default"))
  10. ntp:value("disable", translate("Disable"))
  11. pool1section = m:section(TypedSection, "cgminer", translate("Pool1"))
  12. pool1section.template = "cgsetting/cbi_tblsection"
  13. pool1section.anonymous = true
  14. pool1url = pool1section:option(Value, "pool1url", translate("Pool 1 url"))
  15. pool1user = pool1section:option(Value, "pool1user", translate("Pool1 worker"))
  16. pool1pw = pool1section:option(Value, "pool1pw", translate("Pool1 password"))
  17. pool2section = m:section(TypedSection, "cgminer", translate("Pool2"))
  18. pool2section.template = "cgsetting/cbi_tblsection"
  19. pool2section.anonymous = true
  20. pool2url = pool2section:option(Value, "pool2url", translate("Pool 2 url"))
  21. pool2user = pool2section:option(Value, "pool2user", translate("Pool2 worker"))
  22. pool2pw = pool2section:option(Value, "pool2pw", translate("Pool2 password"))
  23. pool3section = m:section(TypedSection, "cgminer", translate("Pool3"))
  24. pool3section.template = "cgsetting/cbi_tblsection"
  25. pool3section.anonymous = true
  26. pool3url = pool3section:option(Value, "pool3url", translate("Pool 3 url"))
  27. pool3user = pool3section:option(Value, "pool3user", translate("Pool3 worker"))
  28. pool3pw = pool3section:option(Value, "pool3pw", translate("Pool3 password"))
  29. --machinesection = m:section(TypeSection, "cgminer", translate("Machine"))
  30. --machinesection.template = "cgsetting/cbi_tblsection"
  31. --machinesection.anonymous = true
  32. --chip_frequency = machinesection:option(Value, "chip_frequency", translate("Chip Frequency(Avalon2: 1500, Avalon3: 450)"))
  33. --chip_voltage = machinesection:option(Value, "chip_voltage", translate("Chip Voltage(Avalon2: 10000, Avalon3: 6625)"))
  34. --fan = machinesection:option(Value, "fan", translate("Fan%(Default: 90%)"))
  35. -- etcsection = m:section(TypeSection, "cgminer", "")
  36. -- etcsection.template = "cgsetting/cbi_tblsection"
  37. -- etcsection.anonymous = true
  38. -- api_allow = etcsection:option(Value, "api_allow", translate("API Allow(Default: W:127.0.0.1)"))
  39. -- more_options = etcsection:option(Value, "more_options", translate("More Options(Default: --quiet)"))
  40. return m