"സെന്റ്. ജോൺസ് എച്ച് എസ് എസ് മറ്റം/ലിറ്റിൽകൈറ്റ്സ്" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| വരി 214: | വരി 214: | ||
print ("Current Minute is: %d" % currentDT.minute) | print ("Current Minute is: %d" % currentDT.minute) | ||
while(1) | while(1) | ||
currentDT = datetime.datetime.now() | |||
hr=currentDT.hour | |||
mi=currentDT.minute | |||
print(hr," ",mi) | |||
if((hr==9 and mi==35) or (hr==9 and mi==40) | |||
or(hr==9 and mi==45) or (hr==10 and mi==25) | |||
or(hr==11 and mi==5) or (hr==11 and mi==15) | |||
or(hr==11 and mi==55) or (hr==12 and mi==30) | |||
or(hr==13 and mi==10) or (hr==13 and mi==15) | |||
or(hr==13 and mi==50) or (hr==14 and mi==25) | |||
or(hr==14 and mi==30) or (hr==15 and mi==0) | |||
or(hr==15 and mi==25) or (hr==15 and mi==30) | |||
or(hr==17 and mi==12) | |||
): | |||
GPIO.output(3,False) | GPIO.output(3,False) | ||
time.sleep(5) | time.sleep(5) | ||