Start/stop

To start/stop a retranslator or start/stop a history retranlation, use the command retranslator/update_operating:

svc=retranslator/update_operating&params={"itemId":<long>,
					  "operate":<bool>,
					  "stopTime":<uint>,
                                          "timeFrom":<uint>,
                                          "timeTo":<uint>,
                                          "callMode":<text>}

Parameters

Name Description
itemId retranslator ID
operate true – start, false – stop
stopTime time, when retranslation will be stopped (optional parameter)
timeFrom interval beginning of history retranslation, UNIX – time (only for history)
timeTo interval end of history retranslation, UNIX – time (only for history)
callMode switch – start/stop retranslator, history – start/stop history retranslation

Response

{
	"rtro":<int>	/* 0 - stopped, 1 - started */
        "rtrst":<uint>  /* time, when retranslation will be stopped */
}