senses-smartmirror icon indicating copy to clipboard operation
senses-smartmirror copied to clipboard

Headless option

Open zxsteve-dev opened this issue 1 year ago • 1 comments

I am trying to run on a headless install (currently Ubuntu) but I think that the electron service is trying to run a browser service and fails.

I would like to be able to launch the server on its own so that it can be accessed across the network without a local browser.

When i installed via bash -c "$(curl -sL https://raw.githubusercontent.com/senses-smart-mirror/senses-scripts/main/lib/raspberry-pi-install.sh)"

Then navigate to server folder and run npm run start

The following error is shown:

[email protected] start tsc --watch -p tsconfig.json

error TS5058: The specified path does not exist: 'tsconfig.json'.

Config: Ubuntu 22.04 Electron v18.01

Ideally senses could have a server only install so that it can be accessed remotely.

zxsteve-dev avatar Jan 05 '24 20:01 zxsteve-dev

Hi @zxsteve-dev,

To run the server only please use: node app.js from the server folder on Ubuntu. This should start the server and the (mobile) webapp only.

Please note that this will start the GUI. In order to run the GUI separately we need to do something else. We can discuss this.

Nick-Thesing avatar Jan 08 '24 00:01 Nick-Thesing