По мотивам:
- How to make a magic mirror with a Raspberry Pi and an old monitor
- Build your own Google Home-enabled smart mirror in about two hours
- GassistPi — Google Assistant for all Raspberry Pi Boards
- IOT-Pi3-Alexa-Automation
1: Необходимое железо
2: Установка и настройка Raspbian
Обновление системы
sudo apt-get update && sudo apt-get -y —fix-missing upgrade
sudo apt-get update && sudo apt-get dist-upgrade
Настройки системы
Устанавливаем страну, клавиатуру, язык
Настройка удаленного доступа
SSH: Remote control your Raspberry Pi и VNC
sudo apt-get install tightvncserver
Запускаем
vncserver :1 -geometry 1280×800 -depth 16 -pixelformat rgb565
выполняем что нужно и закрываем
vncserver -kill :1
3: Установка и настройка Node.js
Установка Node.js на Raspberry Pi или NGINX или Apache
To download and install newest version of Node.js, use the following command:
pi@mm:~ $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash —
Now install it by running:
pi@mm:~ $ sudo apt-get install -y nodejs
Check that the installation was successful, and the version number of Node.js with:
pi@mm:~ $ node -v
4: Настройка сервисов
bash -c «$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)»
Настройка MagicMirror
Автозапуск MagicMirror
Smart Mirror Calendar Setup (sync with ALEXA and iPhone)
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi #@xscreensaver -no-splash @point-rpi # Auto run the browser @xset s off @xset -dpms @xset s noblank @apropos chromium @chromium-browser --start-fullscreen --noerrdialogs --incognito http://localhost #end
3: Настрока погоды
Киев — 703448
API — 739e4141806e6699a571961bc199b4c8
3: Новостная лента
Любая интересная лента, Google в помощь, например
Корреспондент
http://k.img.com.ua/rss/ru/all_news2.0.xml
Украинская правда
https://www.pravda.com.ua/rss/