jstarne1
Ez Robot community I wanted to introduce my latest application of this system. Some members hear already know I keep two salt water aquariums one coral which unfortunately died off and my predator tank. Sea life needs delicate balance maintained in their little ecosystem. Things like light spectrum , temperature, ph balance , current of water , nitrate and ammonia levels and calcium levels. These things take a practiced hand to maintain. I am building a new system and using ez b to monitor salinity, nitrates and ammonia, temp , water current flow and the ph. The ADC ports are useful for these and EZ board can control the current and switching to a backup power supply ( a apc for computers inside the cabinet to keep ezb and pumps powered). Also the ezb can turn on and off night , morning , day , and evening lighting settings. With a custom injection device im designing ezb can provide nutrients , calcium and even medicine if levels are out of wack. I started the build today and I am very excited!


I copied in and pasted my previous script but added :Begin at the top and goto(Begin) at the bottom so it resets the script once a days cycle is completed. At least this is what I understand it will do.
If you are dead set on using WaitUntilTime rather than and If ElseIf loop with the $hour variable I would make these small changes to simplify the code a little and group all of the Sets to the same WaitUntilTime;
Although I would advise using the If ElseIf loop over WaitUntilTime or at the very least an If ElseIf before :begin to point ARC to the right place in the script to start just in case you need to reboot outside of the 20:00 to 08:00 window for any reason therefore avoiding having to wait until 8am of the following day for the script to move past line 2.
Hello rich , I tried listing two actions like you show in line 3 and 4 and ez script throws an error that it cannot be ran because it is entered in a incorrect format. So im just trying to do what ez script is allowing me at the moment and gradually work the bugs out.
Hey Josh, for what it's worth I tried a simple 3 line code with waituntiltime and 2 digital port sets and it ran ok. Are you sure all was typed in right?
Copy n paste how your script looks troy
update i tried it with out copy and paste and RICH's code works perfect no syntax errors
i just uploaded it to EZ-Cloud as lightscript under incomplete robots at the bottom of page ,try it, it works
Just this:
It was just before 8am here so I started it and watched it run then stop.
I can't say I've ever used the WaitUntilTime command so am not 100% sure how it works but logically thinking it should go down the script, hit a WaitUntilTime command, hang until the specified time then continue on, which it seems like it does from the other replies.
If the script is working and you aren't too fussed by how it's working then leave it and iron out any bugs later on if you want to. I'm just all for nice neat optimised code labelled up, commented etc. (it really helps when future modifications are required).