Override for the overrides

Requests for new functions or software apps
Post Reply
dedvalson
Posts: 140
Joined: Tue Oct 04, 2011 5:49 am

Override for the overrides

Post by dedvalson »

Hi,

Currently the protocol allows you to mask any relay on or off to override the state that the software would normally put it in.

This is a great feature and one that I use all the time. However, one aspect of it scares me a little. My dosing pumps are on relays and those relays show up on my Android Client and my PC Client. A misguided button click could mask a dosing pump on and kill everything in my tank.

I think it would be cool if there were a hard programmed mask for the masks. There should be a seperate mask for the on mask and the off mask That way, an outlet could be be capable of being masked off, but not masked on or vice versa.

I think it would be pretty easy to add, kind of like the Overheat or feeding mode masks, but called master mask or something like that.

Does that make sense? It is kind of hard to explain.

Don
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Override for the overrides

Post by rimai »

I think you can easily do that within your code.
Something like this:

Code: Select all

ReefAngel.Relay.RelayMaskOn&=B11111110;
This line would make it so the relay1 of mask On would never be able to be overriden.
Even if you hit override on with client or android, it would put right back to 0.
What do you think?
Roberto.
dedvalson
Posts: 140
Joined: Tue Oct 04, 2011 5:49 am

Re: Override for the overrides

Post by dedvalson »

Great idea. Yes, this solves the problem nicely.

Thanks,

Don
Post Reply