DutchForce75 / pyZodiacTri

Run python scripts as a webserver for controlling a Zodiac Tri connected by RS485
8 stars 1 forks source link

Salt Level not working after Boost command is sent #2

Open art0 opened 5 years ago

art0 commented 5 years ago

192.168.1.224 - - [10/Sep/2019 19:14:26] "GET /setChlorine?pct=101 HTTP/1.1" 200 - RS485 : <-- 1002 50 00 62 1003 RS485 : -->
RS485 : <-- 1002 50 11 65 d8 1003 RS485 : -->
RS485 : <-- 1002 50 00 62 1003 RS485 : --> 1002 00 01 0000 13 1003 RS485 : <-- 1002 50 11 65 d8 1003 RS485 : --> 1002 00 12 0001 25 1003 RS485 : <-- 1002 50 00 62 1003 RS485 : --> 1002 00 01 0000 13 1003 RS485 : <-- 1002 50 11 65 d8 1003 RS485 : --> 1002 00 12 0001 25 1003 RS485 : <-- 1002 50 00 62 1003 RS485 : --> 1002 00 01 0000 13 1003 RS485 : <-- 1002 50 11 65 d8 1003 RS485 : --> 1002 00 12 0001 25 1003 RS485 : <-- 1002 50 00 62 1003 RS485 : --> 1002 00 01 0000 13 1003 RS485 : <-- 1002 50 11 65 d8 1003 RS485 : --> 1002 00 12 0001 25 1003

Salt Add Salt

Displays "0"

DutchForce75 commented 5 years ago

Seems that your the software version you are using is responding differently to setting the chlorine percentage: RS485 : <-- 1002 50 11 65 d8 1003 RS485 : --> 1002 00 12 0001 25 1003 Fourth byte is in your case 0x12, and in my case 0x16 and seems to be the software version.

What is your Ext Controller setting atm?

art0 commented 5 years ago

Sounds like I needed to restart the box, it was version Rev K

RS485 : <-- 1002 50 11 65 d8 1003 RS485 : --> 1002 00 16 28000000 50 1003

But if set up a % of Chlore, the only thing i see in the display is

PH/ACL CONTROL and not the OUTPUT thingy. So i figured out that first i needed to set up the "ACL Override" in order to see the OUTPUT: ##%

Do you know when using the % of SWG, how often the time is sampled? I am pretty sure the cell is always at 100% power.

DutchForce75 commented 5 years ago

Don't know how often it samples, you could set it to 0%, from memory I think it shuts off? Like you suggested, I think it its time switched instead of voltage regulated

Great that it seems to work on your side too btw!

art0 commented 5 years ago

I still debugging a race condition, not sure the "toggle" thingy is really providing the correct feedback. Any chance to log also the RS485 messages to a single log with the webserver requests?

ORP is far from perfect.

ACL 1: 500 mV ACL 2: 550 mV ACL 3: 600 mV ACL 4: 650 mV ACL 5: 700 mV ACL 6: 750 mV

In the presence of CYA over 50 ppm, the ORP drops to 300-350 mV when the water is 25-26C. So the SWG is pretty much useless.

So I am trying to create my own control and just look at how green is the water with a webcam. :) Next phase is to read the RGB of the water colour

Let me know where to send you a beer :)

DutchForce75 commented 5 years ago

Not sure what works on your end and what not.

DutchForce75 commented 5 years ago

Any chance to log also the RS485 messages to a single log with the webserver requests?

You could try to fire the webserver like this, can't test it right now python2 /yourdir/webserver.py > log.txt

DutchForce75 commented 5 years ago

To be more clear: the Talk To Zodiac radiobutton on the webpage needs to be switched on for as long as you want the Zodiac Tri to be on those settings. It will keep connecting to the Zodiac for as long as it's switched On. As soon as you turn it to Off, it won't send any messages to the Tri, and the Tri will switch to Off mode.

art0 commented 5 years ago

Radiobutton

DutchForce75 commented 5 years ago

Yes there is a lot to be done to make this a proper software release!

Only way to refresh right now is hitting refresh in the webbrowser. If Link is displaying "connected" then the webserver is still receiving replies and the Tri should be up and running. Otherwise the webserver isn't getting messages from the Tri and connection is lost or hasnt started at all

For a future release it would be nice to have some sort of Ajax script pushing the latest status to the web client, but for my situation I'd like it to be as simple as possible since the internet connection on the Zodiac's side is not that good.

For now I can at least shut off the Tri to chlore shock the pool with another pump. And I can see if the filterpump is running. Next up is reading ORP and pH values

art0 commented 5 years ago

off the record, what pump you use to "chlore shock" and how do you control the volume? I am using the well known technique of "dropping supermarket bleach" :)

DutchForce75 commented 5 years ago

I use this one: https://www.toppy.nl/product/8183/520/zwembad/desinfectietechniek/doseertechniek/blue-lagoon-peristaltische-doseerpomp-met-vaste-flow-3ltr-uur.html

art0 commented 5 years ago

How do you inject the chlore into the pool?

The "Pod" that comes with the Zodiac includes a PH- pump, not sure if i should mix the Chlore and the H2SO4 in the same inlet.

DutchForce75 commented 5 years ago

Yes it's injecting that into that Pod, and that's why I need to be able to shut off the Zodiac when I chlore shock, otherwise the Zodiac will instantly add pH- too which is not desirable.

Tbh Im fairly new to pool maintenance so I am still learning.

art0 commented 5 years ago

So you have made a T-junction in the tube that goes into the pod? Picture :)

DutchForce75 commented 5 years ago

IMG_7391

art0 commented 5 years ago

Has the pod 2 places to inject?

ORP PH Flow PH- Chlore?

DutchForce75 commented 5 years ago

Yes I added another inject valve on the pod (already there) Not the flow switch, that's the other thing on the right

art0 commented 5 years ago

I am not sure i understand. -Do you use a 4-ways POD and removed the Flow sensor?

Where did you find the adapter?

art0 commented 5 years ago

Now i understand. In my setup the "flow switch" is connected to the "Pod" so i do not have an extra place to inject the Chlore.

DutchForce75 commented 5 years ago

Im considering to place the injection point somewhere further away from the pod in the direction of the pool. It might prevent switching off the Zodiac when shocking.