Repository navigation
Avoiding pump stop when njspc container is stopped? #546
Replies: 8 comments 69 replies
|
If you have the latest njsPC and dashPanel you can click on the ready icon and set the panel to timeout or device mode. This will release the pump. |
|
The timeout value is required for timeout mode.
|
|
@rock-crusher, it's part of the lease agreement. The legalese roughly translates to "Derp shalt not f***eth with poolgear", so here's le me doing just that, lol. @rstrouse, yes that is correct; once njspc releases control, the pump will start if you hit start/stop, or any speed button. My problem is that no matter what I do (except severing the data connection) will leave the pump in a 0 RPM stopped state, where the desired state is to have it resume local programming. Last I am not sure what you mean by turned off the manual program on the pump? What I can tell you is that I verified the local programming and there are 3 active schedules which run back-to back, i.e. the pump never has an off period. @tagyoureit, thank you! - as always your efforts are very appreciated. As I began the topic with, worst comes to the worst and we cant find an elegant solution, I can always resort to a pi-controlled relay, cutting one of the data wires, but I hope we don't have to go that route as it's what is generally referred to as a fugly hack ;) |
|
I will try and do that. Unfortunately it may be a few days as we had a flood in the neighborhood and my pool looks like it's filled with chocolate milk, i.e. all my gear is offline until we can get the silt cleaned out of the pool. Will give a shout as soon as I get to try this |
|
@rstrouse, so hey - finally got the backyard and pool rehabilitated as of yesterday (besides flushing out the pool and all the pipes a shopvac and a pressurewasher set to stun did wonders) Anyway, I got around to trying your suggestion of manually disabling the RS485 interface in njspc dashboar. It actually works! After about 45 sec the pump falls back to it's local programming, i.e. it does not stop, yay! So, I guess I need to understand how to do that either through a commandline or the REST API. I checked the swagger site, may be somewhat outdated, yet there is no obvious mention of any method to change the RS485 port, yet since one can do it from the dashboard, there's obviously something that can do it? Anyway, if you guys can give me a kick in the right direction it would be appreciated as always! |
|
Thanks @rstrouse - I looked further into this and it seems to be all Docker... (sorry Tag). It looks like it creates a unique IP for each container, this is where the 172.22.x.x addresses are coming from. while the address can be pinged when SSH'ed locally into the Pi where the containers are running, one can't reach these addresses from outside, unless we start modding routing tables, which should not be necessary. It seems docker automatically adds the internal routing table entries. Besides when you hit the Pi's wlan0 ip address on port 4200 it gets routed to the docker container portmapping configured in the docker-compose.yml If you examine the screenshot above (big white one) you can see that Postman (running on another computer) actually connects to njsPC: It might very well be that I don't know Postman well enough, yet it seems I need to add a listener. |


















Uh oh!
There was an error while loading. Please reload this page.
Hi @tagyoureit et. al
TLDR; poolpump receives a command to stop when njsPC docker container is stopped. Can that be avoided through configuration?
Since upgrading to 7.7.0 I've noticed something different in my setup: Once a week my pool guy comes around to clean the pool, he hooks up his own gear and puts the pump on speed4 set for 3100rpm. He does this manually as he needs to stop the pump to stick the vac hose in the skimmer's intake. After he's left (trust me, my hpuse knows ;) I take back control of the pump with NjsPC.
As you know when NjsPC takes over the pump, the local panel on a Pentair Intelliflo VS reads; "DISPLAY NOT ACTIVE" and the keys are disabled, i.e no manual control for Mr. Poolguy
What I used to do was once a week stop njspc from running in the morning before he arrives so after 30 sec or so, the local programming on the pump would kick in.
However somewhere between v7.7.0 and 5.x it seems that NjsPC's behavior changes. If I do a 'docker stop poolcontroller' it seems a stop command or rpm=0 (same difference) is sent to the pump, rather than let it resume it's on-board programmed schedule
Here comes my conundrum: Is it possible to avoid that behavior? I noticed that if I pull the data plug physically from the pump, it does what it used to do; fallback to local scheduling. So if all else fails I suppose I could let my RPi control a relaymodule on a GPIO port which cuts the data connection physically. But it seems like a hack even McGyver would facepalm over, so before I break out the soldering iron, I figured I'd ask the experts that the best approach to getting the behavior back
PS: Please don't suggest that poolguy has to pull the plug, press a IoT button etc, he's an old guy set in his ways, yet does a bang-up good job overallso I'm just trying to make sure the automation gets out of his way when he's here.
Hope there is an easy solution to this.
Thanks,
Max
All reactions