balboa_worldwide_app icon indicating copy to clipboard operation
balboa_worldwide_app copied to clipboard

Registration

Open kw217 opened this issue 3 years ago • 4 comments

This app is currently a bit unreliable on my spa, and I think it's because we are trying to use the same channel as the panel unit.

I'm thinking of adding registration to the app (in client.rb), using the logic in https://github.com/rsrawley/spaControl/blob/master/spa.js#L283 . Does that sound OK, and has anyone attempted this already?

kw217 avatar Mar 31 '21 20:03 kw217

I've done it in Python, following the Channel Assignment protocol. Not sure what @rsrawley is doing with the "default" preferredChannel: "11", but the channel should only be supplied by the Main Board (not assumed or hard-coded).

bggardner avatar Mar 31 '21 20:03 bggardner

Oh wow, I hadn't even seen all that channel assignment stuff in the wiki. Yes, definitely I'd be happy to merge it if you write it (and I'll try it out with my spa).

ccutrer avatar Apr 01 '21 14:04 ccutrer

If I recall correctly, I believe my intention with preferredChannel was to avoid increasing the assigned channel by one every time I ran my code when testing. I still need to fix the case when the spa loses power and restarts, as my program does not check if its assigned channel is still active. At the moment, I have to restart the program if I restart the spa.

rsrawley avatar Apr 01 '21 16:04 rsrawley

@rsrawley I don't have that issue, because I have it running on a Pi powered off the Balboa main board - so if the spa loses power so does the program. I'll see if I can do something about that case.

@ccutrer cool, thanks - I'll see what I can do :-) I have a few days off over the weekend, if I have a following wind I should get to it!

kw217 avatar Apr 01 '21 23:04 kw217