forked from evancohen/smart-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
132 lines (121 loc) · 5.2 KB
/
config.js
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
//chromium/google speech:
// clint id: 1082323557915-hvfu8ds68s0bmj89lqn0888q1t11dicd.apps.googleusercontent.com
// client secret: 1I50zGLuO1gAgPOuL3DyBHio
// api key: AIzaSyAKT6jopEkkhcmD-2SfYCTAATVK89sKtnM
var config = {
// Lenguage for the mirror
language : "en-US",
// Keyword Spotting (Hotword Detection)
speech : {
keyword : "Smart Mirror",
model : "lucy.pmdl", // The name of your model
sensitivity : 0.5, // Keyword getting too many false positives or not detecting? Change this.
continuous: false // After a keyword is detected keep listening until speech is not heard
},
layout: "main",
// greeting : ["Hi, sexy!", "Greetings, commander"], // An array of greetings to randomly choose from
// Alternativly you can have greetings that appear based on the time of day
greeting : {
night: ["Time to sleep"],
morning: ["Good Morning"],
midday: ["Hey!", "Hello"],
evening: ["Good evening"]
},
//use this only if you want to hardcode your geoposition (used for weather)
geoPosition: {
latitude: 78.23423423,
longitude: 13.123124142
},
// forecast.io
forecast : {
key : "431d30d087475be5000479ac7eb25261", // Your forecast.io api key
units : "auto", // See forecast.io documentation if you are getting the wrong units
refreshInterval : 2, // Number of minutes the information is refreshed. Forecast.io limits requests to 1000/day: a 2min interval = 720 calls/day
},
// lights
light : {
settings : {
hueIp : "", // The IP address of your hue base
hueUsername : "" // The username used to control your hue
},
setup : [
{
name : "parlor", // Single word room name for speech recognition
targets : [
{
type : "hyperion",
ip : "", // The IP address of your hyperion
port : "19444" // The port of your hyperion
},
{
type : "hue", // Philips Hue
id : 1 // The group id (0 will change all the lights on the network)
}
]
},
{
name : "bath",
targets : [
{
type : "hue",
id : 2
}
]
}
]
},
// Calendar (An array of iCals)
calendar: {
// icals : ['https://calendar.google.com/calendar/ical/benjitastic%40gmail.com/private-f4ef636784f48c876fcb83a14f0948c6/basic.ics'], // Be sure to wrap your URLs in quotes
icals: [],
maxResults: 9, // Number of calender events to display (Defaults is 9)
maxDays: 365, // Number of days to display (Default is one year)
showCalendarNames: false // Show calendar names above events
},
// Giphy
giphy: {
key : "" // Your Gliphy API key
},
// YouTube
youtube: {
key : "AIzaSyCYA8DsMh-03HqLajoGOJjo2ci-Z9Tqm3U" // Your YouTube API key
},
// SoundCloud
soundcloud: {
key : "8440a921b1b27b8e29b1dbb5791b39bb" // Your SoundCloud API key
},
traffic: {
key : "Cjm3PQAhH6SLC34NT34Z~KuFXLuRhHLZLdzSO19mcNg~AjrMO7l6P5qWrn5VyMiBROvu60EhsWwRlZ0AJlwaLXMRe8xVabTZX5kEOLUD8MEv", // Bing Maps API Key
refreshInterval : 5, // Number of minutes the information is refreshed
// An array of tips that you would like to display travel time for
trips : [{
mode : "Driving", // Possibilities: Driving / Transit / Walking
origin : "3912 Grove Ave, Palo Alto, CA", // Start of your trip. Human readable address.
via : "", // [Optional] Set an intermediate goal for getting an alternate route for example
destination : "200 Hamilton Ave, Palo Alto, CA", // Destination of your trip. Human readable address.
name : "Ben's Office", // Name of your destination ex: "work"
/*startTime: "",
endTime: ""*/ // Optional starttime and endtime when the traffic information should be displayed on screen. The format can be either hh:mm or hh:mm am/pm
}]
},
rss: {
feeds : [], // RSS feeds list - e.g. ["rss1.com", "rss2.com"]
refreshInterval : 120 // Number of minutes the information is refreshed
},
stock: {
names: [] // The names of the stock quotes you with to show in the official format. (e.g.: 'YHOO','AAPL','GOOG')
},
autoTimer: {
autoSleep: 2400000, // How long the screen will stay awake before going to sleep (40 Mins)
autoWake: '07:00:00', // When to automatically wake the screen up (7:00AM)
'wake_cmd': '/opt/vc/bin/tvservice -p', // The binary and arguments used on your system to wake the screen
'sleep_cmd': '/opt/vc/bin/tvservice -o', // The binary and arguments used on your system to sleep the screen
},
lastfm: {
key: "", // Your last.fm api key
user: "", // Your last.fm username
refreshInterval : 0.6 // Number of minutes between checks for playing track
}
};
// DO NOT REMOVE
if (typeof module !== 'undefined') {module.exports = config;}