/** * @public * @description This function starts the ExampleService service * @example * gladys.services.example.start(); */ async function start() { logger.log('starting example service'); }
/** * @public * @description This function starts service * @example * gladys.services['rtsp-camera'].start(); */ async function start() { logger.log('starting RTSP service'); // make sure the tempFolder exists await fse.ensureDir(gladys.config.tempFolder); }
/** * @public * @description This function stops the service * @example * gladys.services.mqtt.stop(); */ async function stop() { logger.log('stopping MQTT service'); mqttHandler.disconnect(); }
/** * @public * @description This function stops the CalDAV service * and clear sync interval * @example * gladys.services.caldav.stop(); */ async function stop() { logger.log('stopping CalDAV service'); clearInterval(interval); }
/** * @public * @description This function starts service * @example * gladys.services.mqtt.start(); */ async function start() { logger.log('starting MQTT service'); await mqttHandler.init(); }
/** * @public * @description This function stops the service * @example * gladys.services.openWeather.stop(); */ async function stop() { logger.log('stopping Open Weather service'); }
/** * @public * @description This function stops the ExampleService service * @example * gladys.services.example.stop(); */ async function stop() { logger.log('stopping example service'); }
/** * @public * @description This function stops the TelegramService * @example * gladys.services.telegram.stop(); */ async function stop() { logger.log('stopping telegram service'); await messageHandler.disconnect(); }
/** * @public * @description This function stops the service * @example * gladys.services.usb.stop(); */ async function stop() { logger.log('stopping usb service'); }
/** * @public * @description This function stops the service * @example * gladys.services['rtsp-camera'].stop(); */ async function stop() { logger.log('stopping RTSP service'); }
/** * @public * @description This function stops the TelegramService * @example * gladys.services.telegram.stop(); */ async function stop() { logger.log('stopping telegram service'); await messageHandler.disconnect(); }
/** * @public * @description This function stops the service * @example * gladys.services['rtsp-camera'].stop(); */ async function stop() { logger.log('stopping RTSP service'); }
/** * @public * @description This function stops the service * @example * gladys.services.openWeather.stop(); */ async function stop() { logger.log('stopping Open Weather service'); }
/** * @public * @description This function stops the service * @example * gladys.services.usb.stop(); */ async function stop() { logger.log('stopping usb service'); }
/** * @public * @description This function stops the ExampleService service * @example * gladys.services.example.stop(); */ async function stop() { logger.log('stopping example service'); }