Windows Quick Start - tagyoureit/nodejs-poolController GitHub Wiki
I use a EW11 for communication with the pool equiptment, described here
-
Git For Windows https://gitforwindows.org/
-
install NodeJS https://nodejs.org/en/download/ (this will install many other tools too)
-
open a command prompt (I just type "cmd" into start bar search)
c: mkdir \poolController cd \poolController git clone https://github.com/tagyoureit/nodejs-poolController cd nodejs-poolController npm install npm run start
-
leave the window running for now
-
open a command prompt (I just type cmd into the search on the start bar)
c: mkdir \poolController cd \poolController git clone https://github.com/rstrouse/nodejs-poolController-dashPanel cd nodejs-poolController-dashPanel npm install npm run start
-
leave the window running for now
-
open http://localhost:5150 in a web browser
-
top left "hamburger icon" for dashpanel settings
-
connections
-
find servers
-
select server
-
apply
-
top left hamburger icon
-
-
-
top right Gear Icon for poolController settings
-
Controller → Comms → Primary Port
-
Port Type → Network
-
Host IP and port for your EW11
-
Save Port
-
top right house icon
-
-
-
Your pool computer should be loading data
-
when it’s done, ("ready" next to gear icon")
-
note display sections you don’t care about (or those you do)
-
to customize, top left "Hamburger icon"
-
Select Logging: change to Warn or Error
-
Select Appearance
-
move the element window so you can see the effects
-
drag elements you don’t care about to hidden items
-
move stuff between column 1 and column 2
-
click on main window to close appearance windows
-
-
-
stop both windows above with "ctrl-c"
-
create C:\poolController\poolController.bat with these contents
@ECHO ON :: :: Script to start parts of nodejs-poolController/dashpanel :: set CMD=%~1 set ROOTDIR=c:\poolController if "%CMD%" == "1" ( c: cd %ROOTDIR%\nodejs-poolController npm run start:cached >..\nodejs-poolController.log 2>..\nodejs-poolController.err exit ) if "%CMD%" == "2" ( c: cd %ROOTDIR%\nodejs-poolController-dashPanel npm run start:cached >..\nodejs-poolController-dashPanel.log 2>..\nodejs-poolController-dashPanel.err exit ) echo poolController.bat # echo where # is 1 for nodejs-poolController echo where # is 2 for nodejs-poolController-dashPanel exit
-
open Windows "task scheduler" (I just type "task scheduler" into the start bar search)
-
right click "Task Scheduler Library" and select "Create Basic Task"
-
Name: nodejs-poolController
-
next
-
Trigger: When the computer starts
-
next
-
Action: Start a programs
-
Program: C:\poolController\poolController.bat
-
Arguments: 1
-
-
next
-
click open the properties dialog when I click finish
-
finish
-
General tab
-
-
check "Run weither the user is logged in or not"
-
check "do not store password"
-
settings tab
-
-
uncheck "Stop the task if it runs longer than…"
-
click "OK"
-
-
right click "Task Scheduler Library" and select "Create Basic Task"
-
Name: nodejs-poolController-Dashpanel
-
next
-
Trigger: When the computer starts
-
next
-
Action: Start a programs
-
Program: C:\poolController\poolController.bat
-
Arguments: 2
-
-
next
-
click open the properties dialog when I click finish
-
finish
-
General tab
-
-
check "Run weither the user is logged in or not"
-
check "do not store password"
-
settings tab
-
-
uncheck "Stop the task if it runs longer than…"
-
click "OK"
-
-
stopping the task doesn’t kill the processes. Kill the "node" processes under Task Manager
-
some log files are under c:\poolController
-
you can always start via a command prompt as you did during install
-
Your web browser talks to the poolController server itself (doesn’t go through the dashboard webserver)
-
You may need to use ip addresses and not hostnames for server and primary port above