hwu71 / MagicMirror

MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.

Home Page:http://magicmirror.builders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DIY Mirror

Description:

We forked the open-source MagicMirror2 project and extended it to enable multiple users to customize their module configuration, and use voice command as well as recognition to adjust the display content corresponding to the users. Therefore, we call our project DIY Mirror.

Implementation:

Our extension mainly focuses on the configuration file update, face recognition, and Google Assistant support. Their implementation are stored in "config", "modules/third_party/FaceRecognition", and "modules/third_party/GoogleAssistant" respectively. Currently, we support module customization of YouTube, COVID19, and Stock modules.

Execution:

  • Execute server-side code of MagicMirror2:
bash my_server_run.sh
  • Execute client-side code of MagicMirror2:
bash my_client_run.sh
  • Compile and run the configuration reloading request server:
cd config
make
java ReloadConfigRequestServer
  • Compile and run the photo collection and webpage refresh request server:
cd modules/third_party/FaceRecognition
make
. my_import.sh
java PhotoCollectionAndRefreshRequestServer
  • Run the Google Assistant support:
cd modules/third_party/GoogleAssistant/google-assistant-sdk/googlesamples/assistant/grpc
. my_import.sh
python pushtotalk.py

Submodules:

In this project, we added several GitHub repositories as submodules in "modules/third_party". "MMM-Stock", "MMM-EmbedYoutube", and "MMM-COVID19" are third-party modules developed by the MagicMirror developer community. "GoogleAssistant" is a forked GitHub repository with our extension of face recognition voice trigger.

References:

Concerning the usage of OpenCV-based face recognition library in "build_face_dataset.py", "encode_faces.py", and "pi_face_recognition.py" under path "modules/third_party/FaceRecognition", we referred to the tutorial on the following websites:

App Control:

To serve the DIY Mirror, we developed an Android App for users' registration and module update. Its GitHub link is provided below: https://github.com/joezie/SmartMirrorModuleCustomizationApp

About

MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.

http://magicmirror.builders

License:MIT License


Languages

Language:JavaScript 69.9%Language:CSS 15.6%Language:Shell 9.7%Language:Python 1.6%Language:HTML 1.5%Language:Java 1.4%Language:TypeScript 0.2%Language:Makefile 0.1%