forked from evancohen/smart-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (151 loc) · 6.9 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
<!DOCTYPE html>
<html ng-app="SmartMirror">
<head>
<meta charset="utf-8">
<title>Smart Mirror</title>
<!-- Libraries -->
<script src="js/annyang.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.js"></script>
<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>
<!-- App -->
<script src="config.js"></script>
<script src="js/rrule.js"></script>
<script src="js/app.js"></script>
<script src="js/annyang-service.js"></script>
<script src="js/weather-service.js"></script>
<script src="js/xkcd-service.js"></script>
<script src="js/map-service.js"></script>
<script src="js/hue-service.js"></script>
<script src="js/giphy-service.js"></script>
<script src="js/geolocation-service.js"></script>
<script src="js/calendar-service.js"></script>
<script src="js/traffic-service.js"></script>
<script src="js/controller.js"></script>
<!-- Styles and Resources -->
<link rel="shortcut icon" href="favicon.ico" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,800,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/weather-icons.css">
</head>
<body ng-controller="MirrorCtrl as commands">
<div class="top">
<div class="top-left">
<div class="date grey">{{date | date : 'EEEE, MMMM d yyyy'}}</div>
<div class="time">{{date | date : 'hh:mm a'}}</div>
<ul class="calendar fade" ng-show="focus == 'default'">
<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('MMMM Do YYYY, h:mm:ss a')}}</div>
</li>
</div>
</ul>
</div>
<div class="top-right">
<div class="weather">
<div class="weather-today">
<span class="icon dimmed wi {{currentForcast.wi}}"></span>
<span class="tempreture">{{currentForcast.temperature}}°</span>
</div>
<div class="weather-week-descriptor">
<span>{{hourlyForcast.summary}}</span>
<span>{{weeklyForcast.summary}}</span>
</div>
<div class="weather-week" ng-repeat="forcast in weeklyForcast.data" ng-if="$index > 0">
<div class="weather-week-day">
<span class="day light-grey">{{forcast.day}}</span>
<span class="icon-small dimmed wi {{forcast.wi}}"></span>
<span class="tempreture tempreture-min">{{forcast.temperatureMin}}°</span>
<span class="tempreture tempreture-max">{{forcast.temperatureMax}}°</span>
</div>
</div>
</div>
<div class="traffic">
<div ng-show="!traffic.error" class="traffic-information">
<span class="time-to">Time to {{traffic.destination}}:</span>
<span ng-show="traffic.hours > 0">{{traffic.hours}} hours and</span>
<span>{{traffic.minutes}} minutes</span>
</div>
</div>
</div>
</div>
<div class="container">
<div class="middle-center">
<h1>{{greeting}}</h1>
<h3 ng-show="!(user.name === undefined)">{{user.name}}</h3>
<!-- <div class="listening" ng-show="listening">Ready: {{focus}}</div> -->
<div class="contents-box map animate-grow" ng-show="focus == 'map'">
<img class="contents map animate-grow" ng-src="{{map}}"/>
</div>
<div class="contents-box gif animate-grow" ng-show="focus == 'gif'">
<img class="contents gif animate-grow" ng-src="{{gifimg}}"/>
</div>
<div class="xkcd-container animate-grow" ng-show="focus == 'xkcd'">
<img class="xkcd animate-grow" ng-src="{{xkcd}}"/>
</div>
</div>
<div class="bottom-center">
<!-- Command list -->
<div class="commands animate-grow" ng-show="focus == 'commands'">
<h2>Available Commands</h2>
<dl>
<dt>What can I say?</dt>
<dd>Shows a list of voice commands available to you.</dd>
<dt>Go home</dt>
<dd>Takes you back to the home screen</dd>
<dt>Show me ________</dt>
<dd>Will show you pictures of the requested item.</dd>
<dt>Remind me to ________</dt>
<dd>Add something to the reminders list.</dd>
<dt>Clear reminders</dt>
<dd>Clears out your reminders list.</dd>
<dt>Show map</dt>
<dd>Shows a map of your current city.</dd>
<dt>Show map of ________</dt>
<dd>Shows a map of the given location.</dd>
<dt>Giphy ________</dt>
<dd>Shows a giphy image </dd>
<dt>Show xkcd</dt>
<dd>Shows the most recent xkcd comic.</dd>
</dl>
<small>
We are using node <script>document.write(process.versions.node)</script>,
Chrome <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.
</small>
</div>
<div class="interim-result" ng-bind="interimResult"></div>
</div>
<div class="colors animate-grow" ng-show="focus == 'colors'">
<div class="color-block" ng-repeat="color in colors" style="background-color:{{color}}"></div>
</div>
</div>
<!-- Debug Buttons -->
<div class="debug-info">
<!--<button ng-click="debug = true">Open Debug</button>-->
</div>
<div class="debug-info" ng-show="debug == true">
<button ng-click="focus = (focus == 'map')?'default':'map'">Map</button>
<button ng-click="focus = (focus == 'colors')?'default':'colors'">Colors</button>
<button ng-click="focus = (focus == 'commands')?'default':'commands'">Commands</button>
<button ng-click="focus = (focus == 'gif')?'default':'gif'">Gif</button>
<button ng-click="debug = false">Close Debug</button>
<!-- Has results -->
<div ng-show="commands.results.length > 0">
<button class="btn btn-default" ng-click="commands.clearResults()">Clear</button>
<hr/>
<ul class="list-group">
<li class="list-group-item" ng-repeat="result in commands.results">
<span class="badge">{{ result.date | date : 'EEE MMM, yyyy hh:mm:ss a' }}</span>
{{ result.content }}
</li>
</ul>
</div>
</div>
<!-- Sleep cover -->
<div ng-show="focus == 'sleep'" class="sleep-cover fade"></div>
</body>
</html>