settings.cgi 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "wtl_ip1":"0.0.0.0",
  15. "wtl_ip2":"0.0.0.0",
  16. "wtl_ip3":"0.0.0.0",
  17. "wtl_ip4":"0.0.0.0",
  18. "wtl_ip5":"0.0.0.0",
  19. "batvoltage_min":42,
  20. "batvoltage_min_hist":0.25,
  21. "batcap":7,
  22. "batcharge_volt":2.275,
  23. "bat_prod":"2016-12-26",
  24. "ups_max_power": 550,
  25. "bat_exp": 5,
  26. "bat_cap": 100,
  27. "bat_charge": 228,
  28. "tempcomp":False,
  29. "tempcomp_k_buf":3,
  30. "tempcomp_k_cycle":4,
  31. "batsym":False,
  32. "temp_high": 45,
  33. "temp_low": -10,
  34. "temp_hist": 0.5,
  35. "loadvolt_high": 65,
  36. "loadvolt_hist": 0.5,
  37. "mainvolt_low": 112,
  38. "mainvolt_high": 120,
  39. "mainvolt_hist": 12,
  40. "ups_cell_min": 1.5,
  41. "ups_cell_max": 2.3,
  42. "di1":1,
  43. "di1ns":1,
  44. "ro1":1,
  45. "ro2":3,
  46. "ro3":2,
  47. "ipaddr":"192.168.10.254",
  48. "gw":"192.168.10.1",
  49. "mask":"255.255.255.0",
  50. "dhcp":1,
  51. "tn_enabled": 1,
  52. "tn_port": 23,
  53. "ssh_enabled": 1,
  54. "ssh_port": 22,
  55. "loadvolt_min":43,
  56. "loadvolt_min_hist":0.5,
  57. "pps_min":5.0,
  58. "pps_min_hist":0.5,
  59. "utc":"3.0",
  60. "ntp":"0",
  61. "date":"2016-12-26",
  62. "time":"14:57",
  63. "ntpservip":"88.147.254.236",
  64. "lastsynctime":"21.04.2017 12:32:14",
  65. "netsettings_changed":"false",
  66. "NeedProfilaction":"false"
  67. }
  68. print(json.dumps(JSON))