-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwavemaps.py
56 lines (44 loc) · 1.89 KB
/
wavemaps.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'''
Wave Maps - Map and SMS package for NDBC NOAA Buoy Buoy Data
Author: Clouds Weight
License: Git The Unlicense
,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,(
`-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `
,( ,( ,( ,( , W A V E ,( ,( ,( ,( ,( ,( ,(
`-' `-' `-' `-' `-' M A P S `-' `-' `-' `-' `-' `-' `-' `
,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,(
`-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `
'''
from ndbcbuoy import BuoyData
def prompt():
ans = int(input("\n | Options are displayed below. |" \
"\n #######################" \
"\n1.) Display the recent swell" \
"\n2.) Send a text if it's good" \
"\n3.) Exit" \
"\n Enter a number: "))
return ans
def main():
a = BuoyData()
print("\n WELCOME TO WAVE MAPS!" \
"\n ,( ,( ,( ,( , W A V E ,( ,( ,( ,( ,( ,(" \
"\n `-' `-' `-' `-' `-' M A P S `-' `-' `-' `-' `-' `-' `-' ` `" "\n ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( ,( " \
"\n `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' " )
while True:
ans = prompt()
if ans == 1:
a.display_wave_data()
elif ans == 2:
try:
a.send_sms()
except:
"NEED TWILIO"
elif ans == 3:
print('Bye bye.')
break
else:
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("Looks like you tried a different option.")
print("Try another option. 1... 2... 3...")
if __name__ == "__main__":
main()