-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (175 loc) · 8.17 KB
/
index.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html ng-app="SmartMirror">
<head>
<meta charset="utf-8">
<title>My First Smart Mirror</title>
<script>
if (typeof module === 'object') {
window.module = module;
module = undefined;
}
</script>
<!-- Stylesheet 적용 -->
<link rel="stylesheet" href="css/main.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/weather-icons.css" type="text/css" <!-- libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular-animate.min.js"></script>
<script src="https://code.responsivevoice.org/responsivevoice.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
<!-- X2JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/x2js/1.2.0/xml2json.min.js" charset="utf-8"></script>
<!-- angularjs app.js 실행 -->
<script src="js/app.js"></script>
<!-- config 설정 -->
<script src="config/weather_ko.js"></script>
<script src="config/config.js"></script>
<!-- 명령어 -->
<script src="config/commands.js"></script>
<script src="js/functions.js"></script>
<!-- 서비스 -->
<script src="js/geolocation-service.js"></script>
<script src="js/busArrinfo.js"></script>
<script src="js/youtube-service.js"></script>
<script src="js/weather.js"></script>
<script src="js/calendar-service.js"></script>
<script src="js/youtube-weather.js"></script>
<script src="js/playsongs.js"></script>
<script src="js/ipservice.js"></script>
<script src="js/controller.js"></script>
</head>
<body ng-controller="focusCtrl">
<div class="top">
<div class="top-left">
<div class="date1">{{date}}</div>
<div class="time1">{{time}}</div>
<br />
<div>
<div class="titleCalendar">
<span>일정</span><br>
</div>
<ul class="calendar">
<li class="event" ng-repeat="event in calendar">
<div class="event-details">
<span class="day">{{event.start.format('dddd') | uppercase}}</span>
<span class="summary">{{event.SUMMARY}}</span>
<div class="details">{{event.start.format('YYYY-MM-DD(dddd) h:mm a')}}</div>
</div>
</li>
</ul>
</div>
</div>
<div class="top-right">
<div class="weather">
<div class="weather-today">
<div class="titleweather"> {{currentForecast.name}} / {{currentForecast.sys.country}} </div>
<span class="icon wi {{currentForecast.sys.message}}"></span>
<span class="temperature">{{currentForecast.main.temp}}°</span>
<div class="description">
<span> {{currentForecast.weather["0"].id}} / {{currentForecast.main.humidity}}%</span>
</div>
<div class="description">
<span> {{currentForecast.main.temp_min}}° / {{currentForecast.main.temp_max}}° </span>
</div>
</div>
<div class="weather-week-descriptor">
<div class="weather-week" ng-repeat="forcast in weeklyForecast.list">
<span class="day">{{forcast.temp.day}}</span>
<span class="icon-small wi {{forcast.weather[0].icon}}"></span>
<span class="min-temp">{{forcast.temp.min}}°</span>
<span class="min-temp">{{forcast.temp.max}}°</span>
</div>
</div>
</div>
</div>
</div>
<!-- class="top" close -->
<div class="container">
<div class="middle-center">
<!-- Someday something will live here -->
<div ng-show="focus == 'default'">
<div class='animate-grow'>
<h2 ng-bind="defaulttitle"> </h2></br>
<h3 ng-bind="developer"> </h3>
</div>
</div>
<div class="img-box animate-grow" ng-show="focus == 'whoissmartmirror'">
<div class="title-whois" ng-bind="titlewhois"></div>
<div>
<h3 ng-bind="whoareyou"></h3>
</div>
</div>
<div class="bus-content-box animate-grow" ng-show="focus == 'bus'">
<div class="title-bus">
<span ng-bind="stNm"></span>
</div>
<div>
<table class="tg">
<tr>
<td class="tg-yw41 tw">곧 도착</td>
<td class="tg-yw4l" colspan="4" ng-bind="arrivelist"> </td>
</tr>
<tr ng-repeat="x in buslist">
<td class="tg-yw41 tw">{{x.rtNm}}</td>
<td class="tg-yw4l">{{x.arrmsg1}}</td>
<td class="tg-yw4l">{{x.arrmsgSec1}}</td>
<td class="tg-yw4l">{{x.arrmsg2}}</td>
<td class="tg-yw4l">{{x.arrmsgSec2}}</td>
</tr>
</table>
</div>
</div>
<div class="animate-grow" ng-show="focus == 'menu'">
<h3>[ 사용 가능한 명령 ]</h3>
<dl>
<dt>홈으로 / 홈으로 이동</dt>
<dd>잘자</dd>
<dd>000 동영상 (재생,켜 줘, 플레이, 틀어 줘)</dd>
<dd>버스 / 버스정보 / 버스정류장</dd>
<dd>넌 누구니</dd>
<dd>자비스</dd>
<dd>오늘 날씨/날씨/날씨 보여줘</dd>
</dl>
</div>
<div class="animate-grow" ng-show="focus == 'ip'">
<h3>[ 사용하는 IP 주소 입니다. ]</h3>
<dl>
<dt>{{ipaddress}}</dt>
</dl>
</div>
<div class="youtube_content_box animate-grow" ng-show="focus == 'youtubeweaher_show'">
<iframe id="ytplayer" type="text/html" width="640" height="360" src={{playWeatherUrl}} frameborder="0">
</iframe>
</div>
</div>
<div class="bottom-center">
<!-- 음악 재생 -->
<div class="youtube_content_box animate-grow" ng-show="focus == 'music_show'">
<iframe src="{{musicurl}}" frameborder="0" height="100">
</iframe>
<!-- <audio loop src="{{musicurl}}" autoplay> </audio> -->
<div> Music Play : {{musictitle}} </div>
</div>
</div>
<div class="bottom-right">
<!-- 서비스 체크를 위한 버튼 -->
<div class="debug">
<button ng-click="whoIsMirror()"> whoIsMirror </button>
<button ng-click="goSleep()"> goSleep </button>
<button ng-click="wakeup()"> wakeup </button>
<button ng-click="defaultHome()"> defaultHome </button>
<button ng-click="menuShow()"> menuShow </button>
<button ng-click="busInfo()"> busInfo </button>
<button ng-click="weatherInfo()"> weatherInfo </button>
<button ng-click="playInfo()"> paly music </button>
<button ng-click="ipInfo()"> ip </button>
<button ng-click="SayTime()"> 현재 시간 </button>
</div>
</div>
</div>
<!-- Sleep cover -->
<div ng-show="focus == 'sleep'" class="sleep-cover fade"></div>
</body>
</html>