Profile

생각정리..

Lunight

[라즈베리파이] 매직미러를 만들어보자!



매직미러 만들어보기 


_________________________________________________________ 매직미러


MagitMirror :   https://github.com/MichMich/MagicMirror

날씨API :                 https://openweathermap.org/



node.js 설치

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

sudo apt-get install -y nodejs



bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"



$ cd MagicMirror


$ npm install && npm start


$ cp MagicMirror/config/config.js.sample MagicMirror/config/config.js


config 파일 수정


 실행

 $ DISPLAY=:0 nohup npm start




스크린모드 풀기 


$ sudo nano /etc/lightdm/lightdm.conf


[Seat:*] 부분 수정


# xserver-command=X -s 0 -dpms

 

$ sudo nano /etc/X11/xinit/xinitrc


추가 

. /etc/X11/Xsession

xset s off         # don’t activate screensaver

xset -dpms         # disable DPMS (Energy Star) features.

xset s noblank     # don’t blank the video device