Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 02 07:57
    terafin commented #452
  • Jun 29 23:18

    rstrouse on master

    Added Service and Timeout modes… (compare)

  • Jun 29 22:08
    johnny2678 commented #363
  • Jun 29 15:14
    tagyoureit commented #363
  • Jun 29 13:27
    theRealMCQwerty commented #510
  • Jun 29 13:27
    theRealMCQwerty closed #510
  • Jun 29 08:21
    jeffegg commented #363
  • Jun 28 19:22
    rstrouse commented #510
  • Jun 28 18:08
    theRealMCQwerty commented #510
  • Jun 28 17:41
    rstrouse commented #510
  • Jun 28 17:29
    theRealMCQwerty opened #510
  • Jun 27 02:22
    tagyoureit commented #393
  • Jun 27 01:51
    avbdr commented #393
  • Jun 26 17:38

    rstrouse on master

    Added processing so that the Sa… (compare)

  • Jun 26 01:26
    nkm8 closed #442
  • Jun 26 01:26
    nkm8 commented #442
  • Jun 25 21:59
    rstrouse commented #442
  • Jun 25 20:43
    nkm8 commented #442
  • Jun 25 20:23
    rstrouse commented #442
  • Jun 25 20:11
    tagyoureit commented #442
tagyoureit
@tagyoureit
@MaxVonEvil There is also a wiki page for PM2, but lots of ppl seem to have issue with the template. You can use it as a guide, however.
DrJeff
@DrJeff
@MaxVonEvil ^ Yup I tried with the watch and it fails, without it's all good
MaxVonEvil
@MaxVonEvil
@Dr Jeff / , runing them as regular pi user (non sudo). You're right about the --watch, I read up on it and that makes perfect sense. I think in the interim I figured out how to circumvent the config path bit. I created a pm2 apps.json file like this:
{
"apps": [
{
"name": "PoolController",
"script": "./dist/app.js",
"instances": 1,
"cwd": "/home/pi/controller"
},
{
"name": "PoolWebClient",
"script": "./dist/Server.js",
"instances": 1,
"cwd": "/home/pi/webclient"
}
]
}
It seems to do what I want. My only concern is that the webclient instance does not seem to be providing any logs
tagyoureit
@tagyoureit
pm2 monit is a bit funky. If you just try pm2 logs web it should show you the last 15 lines and give you the location of the full logs... eg:
pi@poolcontroller:~ $ pm2 logs 2
[TAILING] Tailing last 15 lines for [2] process (change the value with --lines option)
/home/pi/.pm2/logs/poolController-webClient-error.log last 15 lines:
/home/pi/.pm2/logs/poolController-webClient-out.log last 15 lines:
2|poolCont | GET /app.747e1315.css
...
2020-12-14_23-01-55.png
Or, if you use the monitor, you should be able to see logs if you load up the browser. There isn't anything really to log unless you make an actual connection to it.
MaxVonEvil
@MaxVonEvil
@tagyoureit - Schweet, that did the trick! About the json example in the PM2 wiki, you're right, it was a bit much. I created mine from this example instead: https://futurestud.io/tutorials/pm2-use-npm-to-start-your-app
tagyoureit
@tagyoureit
:+1:
MaxVonEvil
@MaxVonEvil
8|PoolWebC | "USN": "uuid:x.x.x.x::urn:schemas-upnp-org:device:PoolController:1",
8|PoolWebC | "CACHE-CONTROL": "max-age=1800",
8|PoolWebC | "DATE": "Tue, 15 Dec 2020 06:50:54 GMT",
8|PoolWebC | "SERVER": "node.js/12.20.0 UPnP/1.1 node-ssdp/4.0.0",
8|PoolWebC | "EXT": "",
8|PoolWebC | "LOCATION": "http://192.168.0.19:4200/device"
8|PoolWebC | }
8|PoolWebC | {
8|PoolWebC | "address": "x.x.x.x",
8|PoolWebC | "family": "IPv4",
8|PoolWebC | "port": 1900,
8|PoolWebC | "size": 334
8|PoolWebC | }
8|PoolWebC | IN SEARCH --- http://x.x.x:4200
8|PoolWebC | ✨ Built in 22.23s.
tagyoureit
@tagyoureit
Oh, you'll want to set the environment variable for production with webclient. That will avoid compiling the code every single time. The command from package.json is env NODE_ENV=production node dist/Server.js. That will save about 22s on your startup time, not to mention CPU overhead.
MaxVonEvil
@MaxVonEvil
Thanks! I'll try adding that to the apps.json file
MaxVonEvil
@MaxVonEvil
image.png
@tagyoureit, btw not sure if this is within your code or it's @bsileo hubitat driver: I only have a Intelliflo VS pump and the Rpi. I do not own a chlorinator or any of the other pentair stuff. Still when I add the pool controller to Hubitat it adds a few other items as shown above
Specifically, I get two temperature sensors (air and solar) which returns no values, i.e. I'd like to get rid of them, however I'm not sure if they're coming from the HE driver or it's the poolcontroller telling the HE driver they exist?
(it should be said that all the RPM switches are deliberate. Those were 'Features' which I created in the PoolController web interface.
tagyoureit
@tagyoureit
Does the webclient match what you see in hubitat? You can also look in the ./data/pool*.json files.
MaxVonEvil
@MaxVonEvil
Well, it only matches as far as the mentioned features go and the general pool controller, as you can see:
image.png
Lemme check the json files if there's anything interesting... brb
MaxVonEvil
@MaxVonEvil
So, no - tbh I don't see any reference to the above two temperature items. I did check the pump manual (https://www.pentair.com/content/dam/extranet/pentair-pool/residential/manuals/pumps/intelliflo-vs/intelliflo-vs-pump-manual-english.pdf) and it appears there should be at least an air temperature sensor in the pump to enable "thermal-mode" (think it means run pump if near freezing). So at least the Air temp needs to be there. However I'm getting no data on the HE side from the driver? Is there a good way to test this value is being read correctly from the pump by the pool controller?
tagyoureit
@tagyoureit
The pumps don't have any temp sensors that send data externally. You would need a separate air/water sensor but you don't have those with a virtual controller. Likely it's that hubitat shouldn't be creating those drivers. You can just delete/ignore them but I wouldn't expect to get any data with your current setup.
1 reply
MaxVonEvil
@MaxVonEvil
Okay, cool that clarifies it. I was planning on adding another ESP-12 device in the backyard anyway, so there's worthy cause! :) Thanks for the help gents - season greetings here from Sin City!
1 reply
MaxVonEvil
@MaxVonEvil
Very cool. I've got BerryIO running in parallel for basic relay operations at the momet using Webcore to fire off Webrequests to the Pi to flip GPIO's on/off. Looks like relayEquipmentManager can do much more than that. If we later on can get upwards HE/ST integration with a native driver like Brad's driver for poolcontroler, that would be stellar!
6 replies
n0xd
@n0xd
Hello, I have been trying to get the pi to talk to my intelliflo VSP with no luck. So I took my netbook with the JBTEK USB>RS485 out to the pump. Tried sending some commands but never seen anything back from the pump. Is there a command to check basic comm from the pump? I'm afraid my port on the pump is bad. I even went in and soldered the 2 wires to the board to eliminate the socket which didn't have the cap on and I'm sure water was in there, Any ideas greatly appreciated.
1 reply
n0xd
@n0xd
I have had no luck with the pi initializing the pump. Is there a command I can send with my notebook out at the pump just to see if it's working. Then I can go from there.
n0xd
@n0xd
Capture.JPG
Can someone look at this and see if I'm ok so far. I still can't talk to the pump. I did reverse the wires.
rstrouse
@rstrouse
Actually there is but lets see what traffic you have going so far. Open an issue on the main page then lets do a capture replay and upload it. Let's see what njspc is sending out and if there is any response from items on the bus. Also, if you go to the address http://192.168.1.70:5150/messageManager.html you can watch the messages in real time. Click the icon on the upper far right hand corner of the message list and it will start showing all the messages on the RS485 bus.
From the messageManager you will be able to send a message to the pump to see if it gives a response.
n0xd
@n0xd
Thanks. what would be a good message to send? I may have problems with the comm on the pump. Not sure at this point.
n0xd
@n0xd
16,2,80,17,10,0,125,16,3 something like this?
rstrouse
@rstrouse
No that is a chlorinator message to set the output to 10%. A pump message to ask for its status would look more like this.
255, 0, 255,165, 0, 96, 16, 7, 0,1, 28 where the 96 represents a pump that has address 1 and an action of 7 get status.
3 replies
If you open an issue I will walk you through sending this message and watching the reply.
n0xd
@n0xd
1.jpg
n0xd
@n0xd
Not sure how to open a issue. I did know that was a chlorinator message but I didn't know the first cmd to check comm. To be honest I only started playing with the pi a week or so ago. And not the best with Linux but I keep trying. There is a lot of stuff going on here. Till I get that first reply from the pump I'm in limbo.
1 reply
MaxVonEvil
@MaxVonEvil
Hi all and happy new year in advance. Quick question; does anyone know of development being done with Home Assistant / MQTT integration for the 6.0 version of njsPC? I know of https://github.com/crsherman/nodejs-poolController-mqtt however that seems only to work with v5.
3 replies
MaxVonEvil
@MaxVonEvil
image.png
Hi again, so I enabled MQTT in the config.json and was expecting a root topic to appear in MQTT Explorer after restarting njsPC. I've verified that both Mosquitto and njsPC are running. Currently mosquitto is enabled for anonymous access. Not seeing any indications of MQTT postings in the poolcontroller console log (should I?) Any tips on how to troubleshoot this?
image.png
This is all she wrote. As you can see I've got an Ozwdaemon already talking to the MQTT broker
rstrouse
@rstrouse
You won't see any indications in the poolController console unless you have the logging level set to silly. To be sure you are running next. Is that correct?
MaxVonEvil
@MaxVonEvil
@rstrouse - not entirely sure I understood your question? running next?, btw I think I spoke too soon about not seeing anything on the pool controller side. It looks like it's trying to post something to the MQTT broker:
image.png
I'll have to check the Mosquitto logs and see what's going on there, brb
rstrouse
@rstrouse
There are two repos. One is the active development repo which we call next and the other is one that contains only fully baked code in master. The messages you are seeing is the rest service being called to toggle the state of circuit 7 and 8 from an external app on 192.168.0.19.
MaxVonEvil
@MaxVonEvil
Thanks for clarifying both items. It looks like I'm running the master repo, not next. That said, the default config.json of the master repo contained the mqtt section already, i.e. one could presume it was part of that build. Am I to understand I need to be running the next build for MQTT to work?
38 replies
rstrouse
@rstrouse
Yes that is correct.
rchalloner
@rchalloner
Question regarding Hubitat/ST integration--I noticed that the Pentair interface to poolController updates data about every second. The Hubitat hub can get bogged down with too many automation routines and data traffic. Is the integration pumping data as fast to the Hubitat or Smartthings hub and can the refresh rate be slowed on the poolController side? Things like temperature and chemical readings do not need to be updated but once a minute or so.
23 replies