Commit fc703425 authored by maybites's avatar maybites
Browse files

added credentials file for manager

parent b00c36ad
manager/node_modules/
manager/package-lock.json
package-lock.json
access.js
......@@ -28,9 +28,9 @@ sudo ./manager-service-install.sh
## Configuration
### Broker
### Change Credentials
#### Change Credentials
#### Broker
```bash
cd broker
......@@ -49,6 +49,22 @@ To encryp the passwords, run the following script:
./encrypt-userlist.sh
```
#### Manager
```bash
cd manager
```
Copy `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';
```
## Update
To update please first stop the service to not break the running service and later start it again.
......@@ -79,7 +95,7 @@ To test the mosquitto broker it is possible to run it without service installati
# start service
sudo systemctl start telemersive-broker.service
# stop service
# stop service
sudo systemctl stop telemersive-broker.service
# restart service
......@@ -109,7 +125,7 @@ To run the manager without the service use the following script:
# start service
sudo systemctl start telemersive-manager.service
# stop service
# stop service
sudo systemctl stop telemersive-manager.service
# restart service
......@@ -142,4 +158,4 @@ sudo ./manager-service-uninstall.sh.sh
## Credits
- Florian Bruggisser
- Martin Fröhlich
\ No newline at end of file
- Martin Fröhlich
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';
\ No newline at end of file
var access = require('./access');
const telemersion = require("telemersive-bus");
const BusManager = telemersion.BusManager;
const Manager = new BusManager();
Manager.configureServer('telemersion.zhdk.ch', 3883, 3591, 'manager', 'manager', 'tBusManager');
Manager.configureServer(access.broker_url, access.broker_port, access.switch_port, access.user, access.pwd, 'tBusManager');
Manager.connectServer();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment