Open DerKleinePunk opened 3 years ago
npm install -g nodemon npm install -g ts-node
server listening on http://0.0.0.0:5555
Read READYheater -do stop
[Error: ENOENT: no such file or directory, open '/tmp/shairport-sync-metadata'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/tmp/shairport-sync-metadata'
}
[nodemon] app crashed - waiting for file changes before starting...
After install That server is startet but crashed.
Thank's for your issue. I could reproduce the bug and fixed it with the latest changes. Hope it works for you?
Next Crash
/home/punky/develop/herbiOS/api/src/lights/LightsService.ts:21
for (const lightConfiguration of this.config.get().lights) {
^
TypeError: this.config.get.lights is not iterable
at new LightsService (/home/punky/develop/herbiOS/api/src/lights/LightsService.ts:21:59)
at Function.getInstance (/home/punky/develop/herbiOS/api/src/lights/LightsService.ts:12:35)
at LightsSocket._socket (/home/punky/develop/herbiOS/api/src/lights/LightsSocket.ts:31:45)
at Namespace.<anonymous> (/home/punky/develop/herbiOS/api/src/api/websocket/NamespaceSocket.ts:59:18)
at Namespace.emit (events.js:400:28)
at Namespace.emit (domain.js:470:12)
at Namespace.emitReserved (/home/punky/develop/herbiOS/api/node_modules/socket.io/dist/typed-events.js:56:22)
at /home/punky/develop/herbiOS/api/node_modules/socket.io/dist/namespace.js:141:26
at processTicksAndRejections (internal/process/task_queues.js:77:11)
Question: Working with Sensorer on /dev/ttyACM0 with baudrate 500000 How to Config the Device and Baudrate. Not all Raspi hast ttyACM0 when Trun Off the Bluethooth ACM0 dit not Exits. The Baudrate ist not a Standard in C++ is difficoult to make this. On PC ACM0 Does not Exits for Testing Software.
This is caused because there is no update path at the moment. The server generates configuration files in the data
directory. Delete all files and start the server again. It should generate new config files with the new structure for you.
You can modify the configurations for your needs. Add lights in the data/lights.json
file for example.
The data/config.json
file stores all configuration for the main system. There you can change the path for the serial connection of the sensorer as well the Baudrated.
I will add this to the readme.
Can not Start the Backend Server