5. The Reference for RPCM REST API
Parameters:
inputNumber — input number [1, 2]
state — [on, off]
REPLY: GET /api/status is used as a system response
Example:
curl -X PUT http://192.168.1.24:8888/api/input/1/recognition/on
5.2.6. Date and Time Operations
5.2.6.1. How to Get Information about Time and Date
Command:
GET /api/time
Example:
curl -X GET http://192.168.1.42:8888/api/time
REPLY
{“resultOfLastCommand”:“OK”,“time”:“2020-11-05 11:33:33 +0300"}
5.2.6.2. Date and Time Setting
Command:
PUT /api/rtc/[timeData]
Parameters:
timeData is a value consisting of
[year][month][day][hour][minute][second]
Example:
curl -X PUT http://192.168.1.42:8888/api/time/20201105114233
REPLY:
{“resultOfLastCommand”:“OK”,“time”:“2020-11-05 14:42:33 +0300"}
The effect of this command will be permanent, provided that the “Use NTP server” parameter is
set to “OFF”. In case the parameter is enabled, the time will be synchronized with the NTP servers
time within 5 to 10 seconds.
5.2.7. Beeper Setting
Command:
PUT /api/beeper/[state]
186