34
When the JSON API protocol is enabled, other M2M protocols are disabled. After clicking Save
changes, you will be asked to confirm the deactivation of the other protocols.
Click Confirm to confirm the action or Cancel to return to the JSON API protocol configuration.
For an example of reading the output state using JSON API, click the “Test JSON API: Open JSON
API file (read password required)” link.
After entering the username and password, you will receive a json file with the NETIO device
current state.
URL for downloading/uploading the netio.json file: http://<NETIO Device IP>/netio.json
e.g. http://192.168.64.12/netio.json
Note: Measurement data available only for PowerBOX 4Kx.
Example of the netio.json file
{
"Agent":{"Model":"4KE","DeviceName":"PowerBOX-
4Kx","MAC":"24:A4:2C:39:86:EE","SerialNumber":"24A42C3986EE","JSONVe
r":"2.4","Time":"2021-03-
31T16:56:22+01:00","Uptime":76544,"Version":"3.1.1","OemID":500,"Ven
dorID":0,"NumOutputs":4,"NumInputs":0},
"GlobalMeasure":{"Voltage":239.36,"TotalCurrent":662,"OverallPowerFa
ctor":999.00,"TotalPowerFactor":999.00,"OverallPhase":999,"TotalPhas
e":999,"Frequency":50.05,"TotalEnergy":38589,"TotalReverseEnergy":19
640,"TotalEnergyNR":47611,"TotalReverseEnergyNR":19640,"TotalLoad":3
9,"EnergyStart":"2021-03-09T16:52:53+01:00"},
"Outputs":[
{"ID":1,"Name":"Power output
1","State":1,"Action":6,"Delay":2020,"Current":237,"PowerFactor":0.9
9,"Phase":359.73,"Energy":18361,"ReverseEnergy":0,"EnergyNR":19943,"
ReverseEnergyNR":0,"Load":56},
{"ID":2,"Name":"Power output
2","State":0,"Action":6,"Delay":2020,"Current":0,"PowerFactor":1.00,
"Phase":0.00,"Energy":1936,"ReverseEnergy":0,"EnergyNR":2382,"Revers
eEnergyNR":0,"Load":0},