settings.cgi 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!C:\Python36\python.exe
  2. # -*- coding: utf-8 -*-
  3. import json
  4. print("Content-Type: text/html")
  5. print("")
  6. JSON = {
  7. "read_community":"public",
  8. "write_community":"public",
  9. "managerIP":"0.0.0.0",
  10. "managerIP2":"0.0.0.0",
  11. "managerIP3":"0.0.0.0",
  12. "managerIP4":"0.0.0.0",
  13. "managerIP5":"0.0.0.0",
  14. "batvoltage_min":42,
  15. "batvoltage_min_hist":0.25,
  16. "batcap":7,
  17. "batcharge_volt":2.275,
  18. "tempcomp":False,
  19. "tempcomp_k_buf":3,
  20. "tempcomp_k_cycle":4,
  21. "batsym":False,
  22. "di1":2,
  23. "di1ns":1,
  24. "ro1":1,
  25. "ro1t":1,
  26. "ro2":3,
  27. "ro2t":0,
  28. "rs_enabled":1,
  29. "rs_server":"127.0.0.1",
  30. "rs_port":"1227",
  31. "rs_pwd":"12345",
  32. "rs_key":"123",
  33. "swauth":0,
  34. "ipaddr":"192.168.10.254",
  35. "gw":"192.168.10.1",
  36. "mask":"255.255.255.0",
  37. "dhcp":1,
  38. "loadvolt_min":43,
  39. "loadvolt_min_hist":0.5,
  40. "pps_min":5.0,
  41. "pps_min_hist":0.5,
  42. "utc":"3.0",
  43. "ntp":"0",
  44. "date":"2016-12-26",
  45. "time":"14:57",
  46. "ntpservip":"88.147.254.236",
  47. "lastsynctime":"21.04.2017 12:32:14",
  48. "netsettings_changed":"false",
  49. "NeedProfilaction":"false"
  50. }
  51. print(json.dumps(JSON))