What you are describing are hidden variables [1]. Instead of depending on the weather condition both parties could just agree on a secret flag waving schedule you will never be able to observe. Experimental tests have shown that the Bell Inequality [2] is violated and this rules out the class of local hidden variable theories. As far as I know non-local hidden variable theories are still possible.