#!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", "wtl_ip1":"0.0.0.0", "wtl_ip2":"0.0.0.0", "wtl_ip3":"0.0.0.0", "wtl_ip4":"0.0.0.0", "wtl_ip5":"0.0.0.0", "batvoltage_min":42, "batvoltage_min_hist":0.25, "batcap":7, "batcharge_volt":2.275, "bat_prod":"2016-12-26", "ups_max_power": 550, "bat_exp": 5, "bat_cap": 100, "bat_charge": 228, "tempcomp":False, "tempcomp_k_buf":3, "tempcomp_k_cycle":4, "batsym":False, "temp_high": 45, "temp_low": -10, "temp_hist": 0.5, "loadvolt_high": 65, "loadvolt_hist": 0.5, "mainvolt_low": 112, "mainvolt_high": 120, "mainvolt_hist": 12, "ups_cell_min": 1.5, "ups_cell_max": 2.3, "di1":1, "di1ns":1, "ro1":1, "ro2":3, "ro3":2, "ipaddr":"192.168.10.254", "gw":"192.168.10.1", "mask":"255.255.255.0", "dhcp":1, "tn_enabled": 1, "tn_port": 23, "ssh_enabled": 1, "ssh_port": 22, "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))