Blank Dashboard in New Installation #591
-
I am brand new to the nodejs-poolController and am having what I believe are configuration issues. I am running the system on a Pi 3B+ located in the house and communicating with a Pentair Easytouch system with Moyina USB to RS485 converter, terminal block to RJ45 adapters with Cat6 cable between the adapters. I am getting good communication between the Pi and the Easytouch, with failure rate well below 5%. I followed the Trouble Free Pools guide to set up the system. The nodejs-poolController software recognized the Easytouch controller upon startup. The dashPanel started without errors. However, when I browse to the web interface I get the waterdrop background image and a blank control panel (see attached screenshot). The panel does not respond to mouse clicks and refreshing the page results in the same screen. I am stuck and do not know where to go from here. Can you please help me get the dashPanel web interface working? Thank you for your help and suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 23 comments 15 replies
-
P.S. I am running version 7.7.0 of both the pool controller and the dash panel. |
Beta Was this translation helpful? Give feedback.
-
I have the following in the console: |
Beta Was this translation helpful? Give feedback.
-
There are no gears on the screen, see attached. Do I need to change the IP address in the dashpanel config.json. I am not viewing the dashpanel from the pi? |
Beta Was this translation helpful? Give feedback.
-
In Firefox, it looks like the Settings window appears momentarily & then disappears. Not sure it's the settings window because it's very small & blank. I did change the http address from 0.0.0.0 in the config.json of the dashpanel. It did not appear to help, however. I did restart after changing the config file. Is there a way to tell the dashpanel the URL of the pool controller through its config.json file? Both are on the same machine, but I can't get to the settings in the web UI of the dashpanel. Never mind, it's already in the dashpanel config file correctly. |
Beta Was this translation helpful? Give feedback.
-
That is definitely the correct URL for njsPC. Both the server and the dashboard are at that address (the Pi's URL with appropriate ports). If I enter http://192.168.1.190:4200/state/all in a browser, there is no response--it just spins & waits for a response. Here is the result from the Pi when I query the active processes. The first npm start is the pool controller & the second is the dashboard. ps -a I don't know why the pool controller does not respond. I placed the two config.json files in a file posted in the next message because the inline formatting was messed up. |
Beta Was this translation helpful? Give feedback.
-
It looks like the formatting of the .json files was messed up. Hopefully this is better. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your guidance. I will do as you suggest & hopefully get things going before too long. I apologize for taking up so much of your time, particularly on a holiday weekend. You efforts in creating the pool controller and your very generous time & help in making it available & assisting nephytes like me are greatly appreciated!!! |
Beta Was this translation helpful? Give feedback.
-
Thank you for getting back to me when you returned home. The two files are attached as you requested, saved as text files to keep github happy. To start both the pool controller and the dashboard, I used the following command in each program's home directory, without the quotes, of course. "npm start&" I accessed the pi via ssh and did not log out or exit the terminal emulator program while the programs were running. Finally, I tried using a docker install and got a similar result. I also installed version 7.4 in case there was a difference in the current version that caused the problem I experienced. However, the dashboard was blank again. (I installed fresh copies of the OS and your software for each experiment I ran.) Originally, I was trying to use your pool controller software because the protocol converter for my pool broke 2 months ago. After waiting for a warranty replacement for several weeks, I found your software & hoped it would allow me to regain control of the pool. Yesterday, the replacement protocol converter arrived & my pool is back to normal operation. I plan to revisit your system, perhaps in the winter, when I can do so at a more relaxed pace. It seems like it's a good long-term solution and I look forward to using it, once I can get it to be operational. Any & all suggestions you have are most welcome! Thank you again for your hard work in creating this system and your diligence and help in supporting it. |
Beta Was this translation helpful? Give feedback.
-
Thank you both for getting back to me. Wow! If I had seen the screen you posted above I would have done cartwheels! I am not surprised about the "unnamed" spa--I don't have one. Perhaps Pentair's defaults always include a spa or the installer set up a ghost spa without thinking? I should change that setting the Easytouch. The other thing that caught my eye is there is no output setting for the salt cell, it should have been 28%, but that may not be displayed since there was no connection to a pool. (Although there are temperature, equipment, and time settings appear--snapshots from the configuration, perhaps?) I am still scratching my head as to why the pool controller program either terminated or did not respond to the dash panel program. Each time I hit a brick wall, I erased and loaded the SD card with a fresh copy of the OS & then followed the instructions on either your github page or the Troublefree Pool blog post to install your system. It appeared to me that both programs completed installation and were listening on their respective ports. The only deviation I'm aware of was the blog post did not have a step for installing git prior to pulling the program images. Easy enough to add into the mix, however. You also suggest setting up the adapter from the GUI. I'm not sure I understand how to do that, as I thought the adapter had to be "online" prior to starting the pool controller program. My adapter was located at TTYUSB0, so the default was fine as far as I can tell. I will give things another go when I get some time to do a deep dive. I'd really like to get your system going as it really looks like a winner! Any other suggestions you have are most welcome. I feel like I'm within an eyelash of getting it going. Thank both of you so much for your help & responses! I truly appreciate it. |
Beta Was this translation helpful? Give feedback.
-
From the command line, I saw that Nixie set up when I started the dashPanel. Could this have been a result of the poolController disappearing/not responding? The settings window wasn't available in my situation, as you can see from the screenshots, so that's probably why I didn't have adapter settings available. Still flummoxed as to why the poolController stopped or became unresponsive... The only complaints I recall from installation and startup related to location not being set. I know it can be done from the GUI or the config file. I think that was more of a "warning" the impacts the system knowing when sunset, sunrise, and the like occur. Since I have the two config files and they seem more or less OK, can I create a test rig with a pi, the programs, and adapter to help overcome my challenges or do I need pool hardware to respond via the adapter? The controller installed is an EasyTouch 2 4, not a 2 4P. It's firmware is POOL: 5.2 Build 738.0 Rel I downloaded the "diagnostics" from the EasyTouch. Is there anything I can look for in it that may shed light on the poolController issues I'm having? |
Beta Was this translation helpful? Give feedback.
-
Those diagnostics are not going to do you any good since the issue simply looks like the response from njsPC is blank. I am curious, does the following url come up Yes you can create a test rig and it can be installed on a local PC or Mac if you like. |
Beta Was this translation helpful? Give feedback.
-
Thanks again for your responses. I may set up a test rig to help get things working & then transfer to the real thing. At the moment, I am only running the stock Pentair controller & have (at least temporarily) removed everything related to your nodejs controller/dashboard. I didn't want the "tech" who was replacing the defective protocol converter to see any "foreign" equipment attached to the Pentair stuff, lest he conclude I broke the equipment. So, I can't answer your question about the messagemanager.html page at this time. The chemical feeder circuit in the current system just turns the acid pump on/off. The pump is set manually via a crude dial to control volume per dose. It's OK once you dial it in, but certainly not the preferred embodiment. On demand is far superior. My previous house had a contorller that measured ph directly & added acid as needed. I would be delighted to re-create a similar system, perhaps with an Atlas Scientific ph probe & the pump you're referring to? If you have the opportunity to send me more information about the acid pump, I would appreciate it greatly. I am always amazing how crude (and out-of-date and over priced) pool equipment is. Designed by guys using ladder logic decades ago & never updated other than transferring the old mess to newer (but obsolete) electronics. Pool lights are an amazing example. You really change colors/patterns by toggling on/off? Oh for the option of running WLED for my lights! But even the fanciest & newest pool LEDs & controllers toggle to change the limited colors & patterns. Maddening! Your nodejs system is my hope for the future! |
Beta Was this translation helpful? Give feedback.
-
Sweet yard lighting! I have sound reactive WLED on toe kicks by the TV (and WLED based hyperion on the back of the TV). Fun stuff for a party of 2 or 50! I'm not trying to participate in the "best lighting control" debates. Both systems are super and give the options of amazing fun. I happened to start with WLED a couple of years ago & have stuck with it... at least so far. I run Home Assistant for most things & I know njsPC can be integrated into it. Looking forward to that, as well. For a variety of reasons and history, I run Z-wave, WiFi, Zigbee, and recently a couple of BLE freezer sensors in HA. Of course, MQTT runs deep in that world. HA is a super platform with lots of flexibility and options. I need to migrate from supervisor to Docker & have to decide if I should hold off njsPC until after HA is migrated (now that I have a working protocol converter). Such difficult decisions :-) |
Beta Was this translation helpful? Give feedback.
-
Gentlemen: I am delighted to let you know after goodness knows how many attempts, re-installations of variants of the Pi OS, nodejs-poolController, etc., replacements of RS485 converter dongles (sorry Amazon!), I finally got your system running! I cannot tell what a relief it is! I want to share with you what finally got me over the hump. I am running a headless version of 32 bit Raspi and I ssh into the Pi 3B+. I tried to follow to the letter the detailed instructions posted at Troublefreepool. One minor note... The instructions do not state that "git" needs to be installed. That was never my stumbling point, however. Others could probably benefit from the update (I know you did not write the instructions posted there). The instructions state that after starting the poolController server, once the "configuration completed" output is posted, to hit return, change directories to the dashPanel directory, and do an npi i followed by another npm start& command. Based on my experience, if you ssh into the Pi, hitting the return key once the poolController is running (per above) stops and/or kills the poolController program! Hence, there is no data available to the dashPanel program. However, if I ssh to the Pi through second terminal emulator, go to the dashPanel directory, and start the dashPanel program once the poolController is running, all is well with the world; your fine program runs happily and I can access the dashPanel via a web browser on a PC on the local network. I also set up the correct time zone, longitude, and latitude. All of the controllers circuits, programs, etc. appear to be present as expected. If I logout from the terminal emulator, the program running from that window terminates. Is there a way to keep the poolConrtoller and dashPanel software running without remaining logged in? I am using npm start& to get the client and server running. I have a couple of other questions for you. I would like to get MQTT going so I may integrate the poolController into Home Assistant. My MQTT server has a username and password associated with it. I do not see a place in UI for entering this information. Consequently, the poolController cannot log into my MQTT server. Can you please let me know how to enter an MQTT username and password? Ultimately, I would like to run the poolController in a docker container. I tried to get this approach working. However, I got "permission denied" errors when attempting to access the USB converter. I don't know how to overcome this challenge. Any help and suggestions you have are most appreciated. Thanks again for your patience & help! I look forward to using the poolController from within Home Assistant and your software running on docker once I get the details of how to accomplish it worked out. |
Beta Was this translation helpful? Give feedback.
-
OK, I found the answer to one of my questions. If I change the start command to include the no hangup command, I can log out of the pi & the programs keep running. i.e., nohup npm run start:cached& Progress! |
Beta Was this translation helpful? Give feedback.
-
Thanks! Getting there bit by bit :-) Any off the cuff help regarding MQTT username/password? Can I place them in a config file if there's no UI available? |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Got pm2 going. Thank you. Now onto Crewski's HA integration... |
Beta Was this translation helpful? Give feedback.
-
Forgive me for being naive. It's been a while since I've installed a custom component in HACS. I copied and added the repository & the files into the custom components directory of HACS. I've restarted Home Assistant. When I go to HACS Integrations, njsPC-HA shows up as a new repository but I cannot configure it. If I click on it, I get to the instructions page for the component. There is no install option. I'm running version 1.27.2 of HACS and 2022.8.7 of Home Assistant. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I will start from scratch & hope to report success to you
tomorrow!
…On Sat, Sep 24, 2022, 6:22 PM Crewski ***@***.***> wrote:
No worries. If you manually copied it into custom_components you might
want to delete it out. I'll run though the steps "from scratch".
1.
In HACS go to Integrations. Click on the 3 dots in the top right and
go to Custom Repositories
[image: image]
<https://user-images.githubusercontent.com/8012153/192121905-a4efb9aa-06ec-44e0-89bc-755d49664ebd.png>
2.
Add https://github.com/Crewski/njsPC-HA into the Repository field,
select integration, then click Add.
[image: image]
<https://user-images.githubusercontent.com/8012153/192121928-ecafe3e1-c3cd-46b0-8cda-a6bacba8bd9a.png>
3.
I don't remember if that will install it automatically or if you need
to click Explore and Download Repositories in HACS.
4.
Restart Home Assistant
5.
Go to Integrations, select Add Integration in the bottom right, and
then search for njsPC-HA. If it doesn't show up, refresh your browser with
CTRL+F5. Hopefully it'll show up then.
—
Reply to this email directly, view it on GitHub
<#591 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ3NIBATROP2CRP2ES4VC4DV76EJ3ANCNFSM6AAAAAAQEO47XY>
.
You are receiving this because you were mentioned.Message ID:
<tagyoureit/nodejs-poolController/repo-discussions/591/comments/3725235@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I deleted the existing njspc folder & its contents in custom components, deleted the custom repository from yesterday's attempts & then started from scratch as you suggested. FYI, I did have to hit "Explore & Download Repositories" after adding the github URL. I restarted HA, got the integration & now have 20 entities in HA that I can use to monitor and control the pool equipment (haven't added them to the UI yet, but I assume all will be fine now). Thank you so much for your suggestions, help, & patience!!!! As an aside, I will add the MQTT login credentials & see if I can get them going as well. Good start to the day!!! |
Beta Was this translation helpful? Give feedback.
-
Just stopped the pool controller, edited the config.json file to add MQTT username & password, & restarted the pool controller. Looks like all is well.there now, too. Thanks again to all. Very happy to be using your system! Much more to play with, but I feel like I'm on my way :-) |
Beta Was this translation helpful? Give feedback.
-
I'm really late to the party, but since I also ran into this, I thought I'd leave a note to the next person. I was seeing this exact same symptom after the IP address of my controller changed. The UI was non-functional and wasn't able to allow me to update the IP address of the controller. I ended up manually needing to update the config for the IP address through the config.json. Everything worked after that. |
Beta Was this translation helpful? Give feedback.
Gentlemen:
I am delighted to let you know after goodness knows how many attempts, re-installations of variants of the Pi OS, nodejs-poolController, etc., replacements of RS485 converter dongles (sorry Amazon!), I finally got your system running! I cannot tell what a relief it is! I want to share with you what finally got me over the hump.
I am running a headless version of 32 bit Raspi and I ssh into the Pi 3B+. I tried to follow to the letter the detailed instructions posted at Troublefreepool. One minor note... The instructions do not state that "git" needs to be installed. That was never my stumbling point, however. Others could probably benefit from the update (I know you did not writ…