123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!C:\Python36\python.exe
- # -*- coding: utf-8 -*-
- import json
- print("Content-Type: text/html")
- print("")
- JSON = {
- "read_community":"public",
- "write_community":"public",
- "managerIP":"0.0.0.0",
- "managerIP2":"0.0.0.0",
- "managerIP3":"0.0.0.0",
- "managerIP4":"0.0.0.0",
- "managerIP5":"0.0.0.0",
- "batvoltage_min":42,
- "batvoltage_min_hist":0.25,
- "batcap":7,
- "batcharge_volt":2.275,
- "tempcomp":False,
- "tempcomp_k_buf":3,
- "tempcomp_k_cycle":4,
- "batsym":False,
- "di1":2,
- "di1ns":1,
- "ro1":1,
- "ro1t":1,
- "ro2":3,
- "ro2t":0,
- "rs_enabled":1,
- "rs_server":"127.0.0.1",
- "rs_port":"1227",
- "rs_pwd":"12345",
- "rs_key":"123",
- "swauth":0,
- "ipaddr":"192.168.10.254",
- "gw":"192.168.10.1",
- "mask":"255.255.255.0",
- "dhcp":1,
- "loadvolt_min":43,
- "loadvolt_min_hist":0.5,
- "pps_min":5.0,
- "pps_min_hist":0.5,
- "utc":"3.0",
- "ntp":"0",
- "date":"2016-12-26",
- "time":"14:57",
- "ntpservip":"88.147.254.236",
- "lastsynctime":"21.04.2017 12:32:14",
- "netsettings_changed":"false",
- "NeedProfilaction":"false"
- }
- print(json.dumps(JSON))
|