import time, os
from datetime import datetime

os.system('cls')
print('SCHEDULES for Sound of the 60s, 70s and 80s')
print('Runs Python scripts on specific DAYS & TIMES.')
print('')

while True:
    now = datetime.now()
    date_time = now.strftime('%H:%M')
    dow = now.strftime('%A')
    print('Current day & time: ', dow, date_time, end='\r')

    if date_time == '08:00' and dow == 'Saturday':
        print('Running Python script..')
        os.system('sounds-of-the-60s.py')

    if date_time == '17:00' and dow == 'Sunday':
        print('Running Python script..')
        os.system('sounds-of-the-70s.py')

    if date_time == '22:00' and dow == 'Saturday':
        print('Running Python script..')
        os.system('sounds-of-the-80s.py')
    
    time.sleep(15)
