HousePanel 2 Node Version

I believe the webserver was replaced with a node server.

thanks i found git got it installed (i think) but it is not answerring on port 3080. any suggestions
ie

/share/qnapshared/hpserver] # npm install

websocket@1.0.31 install /share/CACHEDEV1_DATA/qnapshared/hpserver/node_modules/websocket
(node-gyp rebuild 2> builderror.log) || (exit 0)

sh: builderror.log: Permission denied

fast-xml-parser@3.16.0 postinstall /share/CACHEDEV1_DATA/qnapshared/hpserver/node_modules/fast-xml-parser
node tasks/postinstall.js || exit 0

Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution.

added 179 packages from 192 contributors and audited 179 packages in 11.027s

1 package is looking for funding
run npm fund for details

found 0 vulnerabilities

[/share/qnapshared/hpserver] #

I see a permission denied in there. May need to run the command with sudo?

i changed write permisisions an reran it no issues.. is there a command to start up ther server ie

[/share/qnapshared/hpserver] # npm install
audited 179 packages in 3.631s

1 package is looking for funding
run npm fund for details

found 0 vulnerabilities

[/share/qnapshared/hpserver] # ls .log
/bin/ls: cannot access .log: No such file or directory
[/share/qnapshared/hpserver] # ls
coolclock.js
iconlist.txt
node_modules/
customize.js* jquery-1.12.4.min.js* package.json*
excanvas.js* jquery.minicolors.css* package-lock.json*
Frame1.html* jquery.minicolors.min.js* README.md*
Frame2.html* jquery.minicolors.png* skin-housepanel/
getarlo4.py* jquery-ui.css* skin-modern/
HousePanel.groovy* jquery-ui.min.js* tileeditor.css*
housepanel.js* jquery.ui.touch-punch.min.js* tileeditor.js*
hpserver.js* media/ utils.js*
[/share/qnapshared/hpserver] # ls

thanks ..
says its running but chrome just hangs spiinging

[/share/qnapshared/hpserver] # cat hpserver.log
8/20/2020 3:35:39 PM hmoptions.cfg file not found. New user assumed. Welcome to HousePanel.
8/20/2020 3:35:39 PM No hubs found. HousePanel will only show special and custom tiles.
8/20/2020 3:35:39 PM HousePanel insecure server is running at location: /share/CACHEDEV1_DATA/qnapshared/hpserver on port: 3080
8/20/2020 3:35:39 PM webSocket Server is listening on port: 1380


Serving page at: http://192.168.2.24:3080


[/share/qnapshared/hpserver] #

i assume i need to do port forwarding on 3080 and 1080, could that be the issue.. is it trying to go out.. or does it automatically open the ports via upnp

On my pi localhost:3080

Other devices ip number:3080

more info something is hanging on th epage.. it hangs and spins forever.. if i kill the (hpserver) process the page displays with the clock etc.. any ideas.

Step by step guide

Housepanel.net

not relavent as i have it running but the pages are hanging as i mentioned.. so not running correctly

The critical piece is node server install and node.js install.

yes as i said and shown in the logs above the install is fine.. no errors.. and you can see it is running on my server but the debug log i posted above.. however as i said each page does not come up unitll i kill the process and then it magically appears. so something is urnning on the server and hanging the completion of the page.. any ieaa how to debug that.

ie
8/20/2020 3:52:38 PM webSocket Server is listening on port: 1380


Serving page at: http://192.168.2.24:3080


[1]+ Killed node hpserver.js >&hpserver.log
[/share/qnapshared/hpserver] # node hpserver.js > hpserver.log &
[1] 17720
[/share/qnapshared/hpserver] # ps | grep hpserv
17720 admin 52536 S hpserver
17837 admin 1000 S grep hpserv
[/share/qnapshared/hpserver] # cat hpserver.log
8/20/2020 3:59:05 PM No hubs found. HousePanel will only show special and custom tiles.
8/20/2020 3:59:05 PM HousePanel insecure server is running at location: /share/CACHEDEV1_DATA/qnapshared/hpserver on port: 3080
8/20/2020 3:59:05 PM webSocket Server is listening on port: 1380
[/share/qnapshared/hpserver] # ps | grep hpserv
17720 admin 47832 S hpserver
24470 admin 960 S grep hpserv
[/share/qnapshared/hpserver] # kill -9 17720
[/share/qnapshared/hpserver] # cat hpserver.log
8/20/2020 3:59:05 PM No hubs found. HousePanel will only show special and custom tiles.
8/20/2020 3:59:05 PM HousePanel insecure server is running at location: /share/CACHEDEV1_DATA/qnapshared/hpserver on port: 3080
8/20/2020 3:59:05 PM webSocket Server is listening on port: 1380
[1]+ Killed node hpserver.js > hpserver.log
[/share/qnapshared/hpserver] #

From the terminal window

CD hpserver
node hpserver.js >& hpserver.log &

This starts the app and creates an error log to inform you of what's going on.

as i have said there is NO ERROR but the pages are hanging and not working..
ie
/share/qnapshared/hpserver] # node hpserver.js >& hpserver.log &
[1] 8064
[/share/qnapshared/hpserver] # cat hpserver.log
8/20/2020 4:11:44 PM No hubs found. HousePanel will only show special and custom tiles.
8/20/2020 4:11:44 PM HousePanel insecure server is running at location: /share/CACHEDEV1_DATA/qnapshared/hpserver on port: 3080
8/20/2020 4:11:44 PM webSocket Server is listening on port: 1380
[/share/qnapshared/hpserver] #

[/share/qnapshared/hpserver] # netstat -a | grep -i 3080
tcp 0 0 :::3080 :::* LISTEN
tcp 0 0 campnas:3080 hp-omen-1660ti.camp:59187 ESTABLISHED
tcp 0 0 campnas:3080 hp-omen-1660ti.camp:59191 TIME_WAIT
tcp 0 0 campnas:3080 hp-omen-1660ti.camp:59189 TIME_WAIT
tcp 0 0 campnas:3080 hp-omen-1660ti.camp:59192 TIME_WAIT
tcp 0 0 campnas:3080 hp-omen-1660ti.camp:59188 TIME_WAIT
tcp 0 0 campnas:3080 hp-omen-1660ti.camp:59190 TIME_WAIT
[/share/qnapshared/hpserver] #

it hangs in both internet explorer and chrome.. and agian notihing in the log

after 10 minutes the page finally came up and i have this error. then on next page same hang probably 10-15 minutes
8/20/2020 4:11:44 PM webSocket Server is listening on port: 1380


Serving page at: http://192.168.2.24:3080


8/20/2020 4:14:54 PM login rejected. uname= default
[/share/qnapshared/hpserver] #

i give up .. the pages are jost hanging even the login page when i mucked with that section it only comes up after 10-15 mintues or after i kill he process.. something is majorly hosed.. I also couble checked and update mpm, as outline above.. it still is serverly brokely and unuseable.

Ok, well I got this running on my NUC under Debian, as you advised in your thread on The Other forums. I will eventually be using with ST and Hubitat hubs. Now, I have CocoHue app, through which I show my Hue bulbs and outlets to Hubitat. I have two Hue outlets on Housepanel right now, one with the "inactive" orange dot and one with the "everything's fine" green dot. They are both actually working fine via the native Hubitat dashboards and via button-triggered rules. Can you think why one of them has the orange dot?

1 Like

The new HousePanel is written in Node.js which has a built in server that monitors for web traffic and handles all of the exchange with Hubitat. So to run it you need to have NPM and Node.js installed but all of the heavy Apache complexity and file permissions are gone.

Hey kahn— sorry I haven’t been monitoring this thread. Your experience is not the norm. It sounds like you have a port conflict or perhaps you are running the older housepanel-push as a service in the background. Check your “ps” using -aux for all services and kill any old housepanel stuff. Then try again. Try editing hmoptions.cfg to change the ports and restart. I don’t have a system like yours so can’t help much. It works great on a rPI and on a bsd Linux box I have from ISY called Polisy. Good luck man.