Page 135 - MDP2020-1
P. 135
················································································ 명장양성프로젝트 【MDP】 과제발표회 자료집 Ⅰ | 129
(3)MMM-AQI
$cd ~/MagicMirror/modules
$git clone https://github.com/ryck/MMM-AQI
$cd MMM-AQI
$npm install
4. 구글 콘솔과 연동 및 인증
구글 콘솔 클라우드에서 OAuth 2.0 클라우드 ID를 다운로드후 credential.json으로 이
름을 바꾼 후 /home/pi/MagicMirror/modules/MMM-AssistantMk2/ 폴더로 이동
$cd ~/MagicMirror/modules/MMM-AssistantMk2/
$node auth_and_test.js
>hello
5.MagicMirror config 파일 수정
var config = {
address: "localhost",
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
language: "ko",
timeFormat: 12,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left",
config: {
dateFormat: "LL dddd",
}
},
{
module: "calendar",
position: "top_left",
config: {
urgency: 21,
fetchInterval: 3600000,
calendars: [{
u r l :
'https://calendar.google.com/calendar/ical/ko.south_korea%23holiday%40group.v.calendar.g
oogle.com/public/basic.ics',
symbol: '대한민국 공휴일',
}, ]
}
},
{
module: "currentweather",
position: "top_right",