Update README (implemented methods), add more getters

This commit is contained in:
Karl Moos
2020-10-27 18:53:09 -05:00
parent bef4f8d5fd
commit c8eb387cd1
11 changed files with 284 additions and 24 deletions

View File

@@ -0,0 +1,35 @@
[
{
"cmd": "GetTime",
"code": 0,
"value": {
"Dst": {
"enable": 1,
"endHour": 2,
"endMin": 0,
"endMon": 11,
"endSec": 0,
"endWeek": 1,
"endWeekday": 0,
"offset": 1,
"startHour": 2,
"startMin": 0,
"startMon": 3,
"startSec": 0,
"startWeek": 1,
"startWeekday": 0
},
"Time": {
"day": 27,
"hour": 18,
"hourFmt": 0,
"min": 50,
"mon": 10,
"sec": 46,
"timeFmt": "MM/DD/YYYY",
"timeZone": 21600,
"year": 2020
}
}
}
]

View File

@@ -0,0 +1,42 @@
[
{
"cmd": "GetNetPort",
"code": 0,
"initial": {
"NetPort": {
"httpPort": 80,
"httpsPort": 443,
"mediaPort": 9000,
"onvifPort": 8000,
"rtmpPort": 1935,
"rtspPort": 554
}
},
"range": {
"NetPort": {
"httpPort": { "max": 65535, "min": 1 },
"httpsPort": { "max": 65535, "min": 1 },
"mediaPort": { "max": 65535, "min": 1 },
"onvifPort": { "max": 65535, "min": 1 },
"rtmpPort": { "max": 65535, "min": 1 },
"rtspPort": { "max": 65535, "min": 1 }
}
},
"value": {
"NetPort": {
"httpPort": 80,
"httpsPort": 443,
"mediaPort": 9000,
"onvifPort": 8000,
"rtmpPort": 1935,
"rtspPort": 554
}
}
},
{ "cmd": "GetUpnp", "code": 0, "value": { "Upnp": { "enable": 0 } } },
{
"cmd": "GetP2p",
"code": 0,
"value": { "P2p": { "enable": 0, "uid": "99999999999999" } }
}
]

View File

@@ -0,0 +1,15 @@
[
{
"cmd": "GetDdns",
"code": 0,
"value": {
"Ddns": {
"domain": "",
"enable": 0,
"password": "",
"type": "no-ip",
"userName": ""
}
}
}
]

View File

@@ -0,0 +1,25 @@
[
{
"cmd": "GetEmail",
"code": 0,
"value": {
"Email": {
"addr1": "",
"addr2": "",
"addr3": "",
"attachment": "picture",
"interval": "5 Minutes",
"nickName": "",
"password": "",
"schedule": {
"enable": 1,
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
},
"smtpPort": 465,
"smtpServer": "smtp.gmail.com",
"ssl": 1,
"userName": ""
}
}
}
]

View File

@@ -0,0 +1,24 @@
[
{
"cmd": "GetFtp",
"code": 0,
"value": {
"Ftp": {
"anonymous": 0,
"interval": 30,
"maxSize": 100,
"mode": 0,
"password": "",
"port": 21,
"remoteDir": "",
"schedule": {
"enable": 1,
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
},
"server": "",
"streamType": 0,
"userName": ""
}
}
}
]

View File

@@ -0,0 +1,19 @@
[
{
"cmd": "GetLocalLink",
"code": 0,
"value": {
"LocalLink": {
"activeLink": "LAN",
"dns": { "auto": 1, "dns1": "192.168.255.4", "dns2": "192.168.255.4" },
"mac": "EC:71:DB:AA:59:CF",
"static": {
"gateway": "192.168.255.1",
"ip": "192.168.255.58",
"mask": "255.255.255.0"
},
"type": "DHCP"
}
}
}
]

View File

@@ -0,0 +1,14 @@
[
{
"cmd": "GetNtp",
"code": 0,
"value": {
"Ntp": {
"enable": 1,
"interval": 1440,
"port": 123,
"server": "ntp.moos.xyz"
}
}
}
]

View File

@@ -0,0 +1,14 @@
[
{
"cmd": "GetPush",
"code": 0,
"value": {
"Push": {
"schedule": {
"enable": 1,
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
}
}
}
}
]