|
Post by Admin on Feb 25, 2020 1:28:49 GMT
Keep in mind that you will need to change your clock to 24 hour clock to make this work effectively. Keeping your Pi3 on a battery support system will help it maintain perfect operation. (You can have a battery maintainer or a solar system with charge controller to keep it running correctly) h% is your hour m% is your minute s% is your second When you type PROCclock(h%,m%,s%) the command will update the current time to those variables. (its pretty simple) You then can give conditions like:
IF h% =10 AND m%>=30 THEN PROC_pin(24,"ON")
NOTE: the above sample is related to OTHER pin control program provided in this forum.
REM general idea is to be able to maintain pin operation times REM using PROCclock h%=0:m%=0:s%=0 PROCclock(h%,m%,s%) PRINT"This is the 24 hour clock information:" PRINT "HOUR :"+STR$(h%) PRINT "MINUTE :"+STR$(m%) PRINT "SECONDS :"+STR$(s%) END DEF PROCclock(RETURN hr%,RETURN min%,RETURN sec%) T$=RIGHT$(TIME$,8) PRINT T$ hr%=VAL(LEFT$(T$,2)) min%=VAL(MID$(T$,4)) sec%=VAL(RIGHT$(T$,2)) ENDPROC
|
|