Rick - Glad I could bring a smile to the world...
Kevin -
No clue if the holes made any difference or not, but I figure they couldn't hurt. They definitely increase the volume area of where water can enter the pump, so they made sense to me...
As far as how I'm doing it all, not trying to sidetrack this thread, but it's all done with X10. I'm using the BottleRocket 0.04c command line control program, which is basically just a command line interface to X10 modules. For instance, to turn device D10 on, you'd just do "br d10 on" from the shell.
Most of the scripting is just that, just simple scripts that are kicked off from a cron. The only programs are simple (VERY simple, I'm not a programmer!) C programs that do things like pause for 3 seconds, or generate a random number between 1-100. The wave master script just runs the random number generator program, and if the value is >= 35, it turns the pump on, and there's one of these scripts for each of the 4 pumps, and they each run every 15 minutes...
Hope that makes sense. If anyone's interested, I'd be happy to post my scripts, but they're embarassingly simple really...
Okay, here's one of the scripts. This is one of 4 scripts for the MJ's, one for each of 'em:
<hr class="bbcode_rule" />
CUT HERE
<hr class="bbcode_rule" />
#!/bin/bash
random=`/root/scripts/wave_random`
if [ "$random" -ge 35 ];
then
br d8 on
echo >>/var/www/localhost/htdocs/pumps.txt $random " Pump 1 ON"
else
br d8 off
echo >>/var/www/localhost/htdocs/pumps.txt $random " Pump 1 OFF"
fi
<hr class="bbcode_rule" />
CUT HERE
<hr class="bbcode_rule" />
The wave_random is the C program I cobbled together that generates the random number. I'm sure there's a way to do this in the shell script, but I couldn't figure it out, so I kludged this together. The last bits about redirecting the output are so I can monitor the current status of my pumps from the web:
http://www.serk.net/pumps.txt
That was mainly when I first set everything up, but I've left it there just for the heck of it..... Oh, and if you're bored enough to go to that link tonight, the results are gonna be wonky all over the place, as I'm having fun modding the pumps, and tweaking everything. I'm DEFINITELY gonna hafta tweak this quite a bit, and most likely move some corals around. I'm up to 3 of the modded MJ's so far, and I'm having Zoa's being blown off rocks, SPS being blown off their mounts, etc... Too cool.....
Hope that makes sense... If ya' have any questions, lemme know, I really don't mind helping out...
(Oh, and before I get berated for it, yeah, I know, I'm being lazy and doing all this from root... I got tired of trying to get the permissions right for the serial port so a non-super user could use X10 and just did it all as root... -Hanging head in shame-)
Man, never has my signature been more true than in this thread!
