Google Assistant模块及扩展插件安装
https://wiki.bugsounet.fr/MMM-GoogleAssistant
# MMM-GoogleAssistant
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/MMM-GoogleAssistant
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm install
# Gateway
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/Gateway
cd ~/MagicMirror/modules/Gateway
npm install
# EXT-Detector
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-Detector
cd ~/MagicMirror/modules/EXT-Detector
npm install
# EXT-Alert
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-Alert
cd ~/MagicMirror/modules/EXT-Alert
npm install
# EXT-YouTubeCast
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-YouTubeCast
cd ~/MagicMirror/modules/EXT-YouTubeCast
npm install
# EXT-YouTube
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-YouTube
cd ~/MagicMirror/modules/EXT-YouTube
npm install
# EXT-Spotify
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-Spotify
cd ~/MagicMirror/modules/EXT-Spotify
npm install
# 生成令牌
# Spotify 设置
# 1、转到 https://developer.spotify.com
# 2、导航到仪表板>创建应用(根据你的想法填写信息)
# 3、设置创建的应用,(编辑设置)
# 重定向地址(Redirect URIs.):http://localhost:8888/callback
# 这就是您所需要的。只需保存即可。
# 4、现在将您的客户端 ID 和客户端密钥复制到任何备忘录中
# 5、过去您的和在配置CLIENT_IDCLIENT_SECRET
# 创建令牌
cd ~/MagicMirror/modules/EXT-Spotify
npm run token
# EXT-Librespot
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-Librespot
cd ~/MagicMirror/modules/EXT-Librespot
npm install
# Librespot player install
cd ~/MagicMirror/modules/EXT-Librespot
npm run setup
# 如果您更喜欢从 github 源代码构建播放器(安装需要 ~30 分钟!)
# cd ~/MagicMirror/modules/EXT-Librespot
# npm run setup:source
# EXT-SpotifyCanvasLyrics
cd ~/MagicMirror/modules/
git clone https://github.com/bugsounet/EXT-SpotifyCanvasLyrics
cd ~/MagicMirror/modules/EXT-SpotifyCanvasLyrics
npm install
let config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
port: 8080,
basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.0.0/24"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
language: "zh-cn",
locale: "zh",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "calendar",
header: "中国假日",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check",
url: "webcal://p10-calendars.icloud.com/holiday/CN_zh.ics"
}
]
}
},
{
module: "compliments",
position: "lower_third"
},
{
module: "weather",
position: "top_right",
config: {
weatherProvider: "openweathermap",
type: "current",
location: "New York",
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "df8404be3340477b65530182dd22840a"
}
},
{
module: "weather",
position: "top_right",
header: "Weather Forecast",
config: {
weatherProvider: "openweathermap",
type: "forecast",
location: "New York",
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "df8404be3340477b65530182dd22840a"
}
},
{
module: "MMM-GoogleAssistant",
configDeepMerge: true,
config: {
assistantConfig: {
latitude: 51.508530,
longitude: -0.076132,
},
}
},
{
module: 'EXT-Spotify',
position: 'top_left',
config: {
updateInterval: 1000,
idleInterval: 10000,
useBottomBar: false,
CLIENT_ID: "004ae89435fd47c68ae1a2e01eddaf11",
CLIENT_SECRET: "929cd4129b68447ca8e37abd78a44f3f",
mini: true,
forceSCL: false,
noCanvas: false
}
},
{
module: 'EXT-Librespot',
config: {
debug: false,
email: "bizdisp@gmail.com",
password: "d********4",
deviceName: "MagicMirror",
minVolume: 50,
maxVolume: 100
}
},
{
module: 'EXT-SpotifyCanvasLyrics'
},
{
module: "Gateway",
config: {
debug: false,
username: "admin",
password: "admin",
usePM2: false,
PM2Id: 0,
CLIENT_ID: null
}
},
{
module: 'EXT-Alert',
config: {
debug: false,
ignore: []
}
},
{
"module": "EXT-Detector",
"position": "top_left",
"disabled": false,
"configDeepMerge": true,
"config": {
"debug": false,
"useIcon": true,
"touchOnly": false,
"porcupineAccessKey": null,
"porcupineCustomModel": null,
"detectors": [
{
"detector": "Snowboy",
"Model": "jarvis",
"Sensitivity": null
},
{
"detector": "Porcupine",
"Model": "ok google",
"Sensitivity": null
},
{
"detector": "Porcupine",
"Model": "hey google",
"Sensitivity": null
}
]
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "人民日报",
url: "http://www.people.com.cn/rss/politics.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
]
};
问候语
MagicMirror/modules/default/compliments/compliments.js
compliments: {
anytime: [
"我将永远与你同在"
],
morning: [
"温小猫早上好!",
"今天的你比昨天更好看了!",
"昨晚睡得好吗?",
"昨晚有梦到我吗?"
],
afternoon: [
"你好可爱!",
"今天你有没有好好吃饭呀!",
"我喜欢你!"
],
evening: [
"晚上记得按时睡觉!",
"我好想你!",
"我每时每刻都想和你在一起!"
]
},
评论 (0)