senses-smart-mirror / senses-smartmirror

Senses - Smart Mirror is modern, clean & minimalistic design software for your Smart Mirror.
https://senses-smartmirror.com/
MIT License
30 stars 3 forks source link

Headless option #28

Open zxsteve-dev opened 9 months ago

zxsteve-dev commented 9 months ago

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:

senses-smart-mirror-server@0.0.0 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.

Nick-Thesing commented 9 months ago

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.