diff --git a/common/lkt.js b/common/lkt.js index 8cb7da43a606b483fc589394646e107a876428eb..518e397db370bbf8cbca2c913f844f59fc2af616 100644 --- a/common/lkt.js +++ b/common/lkt.js @@ -180,6 +180,9 @@ class LktClient { logger.info('Unknown play state' + status.state); } } + static commandPlayPos(position) { + return LktClient.__execSimple(`play ${position}`); + } static commandStop() { //return LktClient.idleActualisation(); return LktClient.__execSimple('stop'); @@ -197,13 +200,19 @@ class LktClient { return LktClient.__execSimple('clear'); } static commandMove(from, to) { - var request = 'move ' + from + ' ' + to; - logger.info(request); - return LktClient.__execSimple('move ' + from + ' ' + to); + logger.info("lkt", `move ${from} ${to}`) + return LktClient.__execSimple(`move ${from} ${to}`); } static commandQueueAddId(id) { - return LktClient.__execSimple(`add id ${id}`); + return LktClient.__execSimple(`add id://${id}`); + } + static commandQueueInsertId(id) { + return LktClient.__execSimple(`__insert id://${id}`); + } + static commandQueueDelPos(position) { + logger.info("lkt", `delete ${position}`) + return LktClient.__execSimple(`delete ${position}`); } static commandQueueDelId(id) { return LktClient.__execSimple(`deleteid ${id}`);