tjaworski / AceMagic-S1-LED-TFT-Linux

ACEMAGIC S1 Mini TFT/LCD and LED Control for Linux
GNU General Public License v3.0
100 stars 10 forks source link

WEB GUI not accessible after installation #8

Closed mikolka-lsh closed 4 months ago

mikolka-lsh commented 4 months ago

Hi.

How could I troubleshoot this bocause after:

Apr 08 14:24:41 smart systemd[1]: Started s1panel.service - "S1 Panel".

I can't access http://192.168.76.10:8686/ where my server IP - 192.168.76.10.... :(

when I'm trying to check port 8686 - it's "empty": $ sudo lsof -i:8686 - return nothing...

How could I troubleshoot this?

tjaworski commented 4 months ago

I forgot you also need npm

sudo apt install nodejs
sudo apt install npm
$ node -v
v18.13.0
$ npm -v
9.2.0

updated the readme.

mikolka-lsh commented 4 months ago

Thanks! Now it works but listening only on loopback and as far as I don't have a gui on my server - I can't use web-based interface :(

node 661 root 27u IPv4 13999 0t0 TCP 127.0.0.1:8686 (LISTEN)

How can I make it listen on all interfaces on a given port?

tjaworski commented 4 months ago

stop the service, edit the config.json, and change the listen to 0.0.0.0:8686 and you will be able to access it remotely.

sudo service s1panel stop
vi config.json
sudo service s1panel start
mikolka-lsh commented 4 months ago

Thanks!

Now all works as a charm! :) And more - now I even understand that I could configure it throw config files :+1: So now I'm going to find and change cpu_temp from Farengeith to Celcium while we don't have such switch in GUI... :)

mikolka-lsh commented 4 months ago

Thank you again! Alredy find where to change fahrenheit to celsium... Hope all this thread was helpful for this project :) Have a good evening!