Posted 13 November 2012 - 04:15 PM
Here is my code: http://pastebin.com/D3rTVXPn
All it is is a simple monitor for day/night changes and to update a frame door based on those changes. The only problems with it currently is:
1. It spams the hell outta rednet
2. I have a separate computer for manually opening/closing the door but it won't work because every like 0.1 second this code is
sending the door to close, so this separate computer can't open the door while the day night monitor is spamming the door to close. You can see why this would be a bit troublesome at times
3. Yes, I am aware that i can just remove the > and < signs to make it work but I use this on a server and my #1 concern is the admins changing the time all willinilly and the day/night handler not kicking in.
So all I'm looking for is a way to get this program to work the way it does, that being working even when the server time suddenly changing but not have it spam rednet. My general solution that I can't workout is to have it send to rednet only once if the conditional is true and not keep sending if it runs through the loop 0.1 sec later and find the same conditional true
All it is is a simple monitor for day/night changes and to update a frame door based on those changes. The only problems with it currently is:
1. It spams the hell outta rednet
2. I have a separate computer for manually opening/closing the door but it won't work because every like 0.1 second this code is
sending the door to close, so this separate computer can't open the door while the day night monitor is spamming the door to close. You can see why this would be a bit troublesome at times
3. Yes, I am aware that i can just remove the > and < signs to make it work but I use this on a server and my #1 concern is the admins changing the time all willinilly and the day/night handler not kicking in.
So all I'm looking for is a way to get this program to work the way it does, that being working even when the server time suddenly changing but not have it spam rednet. My general solution that I can't workout is to have it send to rednet only once if the conditional is true and not keep sending if it runs through the loop 0.1 sec later and find the same conditional true