cgminer.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. m = Map("cgminer", translate("Configuration"),
  2. translate(""..
  3. ""))
  4. conf = m:section(TypedSection, "cgminer", "")
  5. conf.anonymous = true
  6. conf.addremove = false
  7. ntp = conf:option(ListValue, "ntp_enable", translate("NTP Service(Default: Disable)"))
  8. ntp.default = "disable"
  9. ntp:value("asia", translate("ASIA"))
  10. ntp:value("openwrt", translate("OpenWrt Default"))
  11. ntp:value("disable", translate("Disable"))
  12. pool1url = conf:option(Value, "pool1url", translate("Pool 1"))
  13. pool1user = conf:option(Value, "pool1user", translate("Pool1 worker"))
  14. pool1pw = conf:option(Value, "pool1pw", translate("Pool1 password"))
  15. pool2url = conf:option(Value, "pool2url", translate("Pool 2"))
  16. pool2user = conf:option(Value, "pool2user", translate("Pool2 worker"))
  17. pool2pw = conf:option(Value, "pool2pw", translate("Pool2 password"))
  18. pool3url = conf:option(Value, "pool3url", translate("Pool 3"))
  19. pool3user = conf:option(Value, "pool3user", translate("Pool3 worker"))
  20. pool3pw = conf:option(Value, "pool3pw", translate("Pool3 password"))
  21. pb = conf:option(ListValue, "pool_balance", translate("Pool Balance(Default: Failover)"))
  22. pb.default = "--balance"
  23. pb:value("--balance", translate("Balance"))
  24. pb:value("--load-balance", translate("Load Balance"))
  25. pb:value(" ", translate("Failover"))
  26. cf = conf:option(Value, "chip_frequency", translate("Chip Frequency(Range: 100-500, Default: 150)"))
  27. cf.default = "150"
  28. cf.datatype = "range(100, 500)"
  29. api_allow = conf:option(Value, "api_allow", translate("API Allow(Default: W:127.0.0.1)"))
  30. more_options = conf:option(Value, "more_options", translate("More Options"))
  31. return m