-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyHoliday.py
39 lines (32 loc) · 1015 Bytes
/
pyHoliday.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Entry file for pyHoliday.
This file displays the current configuration and allows the users to select
a program from the list.
Ideas:
- Look at the programs directory and return the list to be selected.
- Allow the user to edit the config.yml here.
"""
import pyHoliday.programs.alarm as a
import pyHoliday.init as i
def config():
print('Continuous Running: ' + str(i.continuousRun))
print('Time Between Running: ' + str(i.sleep))
print('Platform: ' + i.platform)
return
print('\nWelcome to pyHoliday!\n')
config()
print('Continue? Y/n')
c = input()
if(c == 'y' or 'Y' or 'yes' or 'Yes' or 'YES' or ''):
print('Select Program from list: Enter the number:\n')
print('1. Light & Audio Trigger')
p = input()
if(p == '1'):
print('Program 1 selected, enjoy!')
a.alarm()
else:
print('No program selected, exiting...')
elif(c == 'n' or 'N' or 'No' or 'NO'):
print('Exiting..')