manager contains the telemersive-manager
Important for the installation is that first the broker is installed and second the manager.
Installs the manager together with NPM if it is not installed already.
cd manager
./manager-service-install.shcd managerCopy access.js.template to access.js and adjust credentials:
module.exports.broker_url = 'telemersive.zhdk.ch';
module.exports.broker_port = 3883;
module.exports.switch_port = 3591;
module.exports.user = 'manager';
module.exports.pwd = 'manager';
To update please first stop the service to not break the running service and later start it again.
To update to a newer version change to the manager directory and update the npm project:
git pull
cd manager
npm installTo run the manager without the service use the following script:
./manager/manager-run.sh# start service
sudo systemctl start telemersive-manager.service
# stop service
sudo systemctl stop telemersive-manager.service
# restart service
sudo systemctl restart telemersive-manager.service
# enable service (auto-start on restart)
sudo systemctl enable telemersive-manager.service
# disbale service
sudo systemctl disable telemersive-manager.service
# show status
sudo systemctl status telemersive-manager.servicesudo ./manager/manager-service-uninstall.shMain contribution:
- Martin Fröhlich
Scripts:
- Florian Bruggisser