Bring your smart mirror to life with voice commands
Table of Contents
- Introduction
- Setting Up Google Cloud Platform
- Installing the Required Software
- Installing MMM Google Assistant
- Configuring MMM Google Assistant
- Setting Up Gateway
- Installing Ext Detector
- Configuring Ext Detector
- Testing Jarvis
- Conclusion
Article
How to Get Your Own Jarvis: A Step-by-Step Guide
Welcome back to Hooty Style! In this episode, we will guide You through the process of getting your very own Jarvis. If you've been eagerly waiting for this, then you're in for a treat. We will walk you through the steps involved in setting up Google Cloud Platform, installing the necessary software, configuring MMM Google Assistant, setting up Gateway, and installing Ext Detector. So grab your Raspberry Pi and a cup of tea, and let's get started!
Introduction
Before we dive into the technical details, let's briefly introduce Jarvis. Jarvis is a voice assistant developed by Google that can perform a wide range of tasks and respond to voice commands. With the help of MMM Google Assistant, you can integrate Jarvis into your smart mirror and control it using simple voice commands.
Setting Up Google Cloud Platform
To begin, you need to set up a project on Google Cloud Platform (GCP) so that you can access the Google Assistant API. Don't worry, it's not as complicated as it sounds. Simply follow these steps:
- Log in to GCP using your Gmail account.
- Create a new project and give it a name.
- Enable the Google Assistant API for your project.
- Set up the OAuth consent screen and add yourself as a tester.
- Create OAuth credentials and download the credentials file.
- Grant necessary permissions to your Gmail account.
- Auto-delete data older than three months for privacy.
Installing the Required Software
Before we proceed further, we need to make sure that we have the right versions of NPM and Node installed on our Raspberry Pi. Open a terminal and follow these commands:
- Update NPM:
sudo npm install -g npm@6.14.14
- Update Node:
sudo npm install -g n; sudo n 14.19.3
- Verify the versions:
npm --version
and node --version
Make sure you have the specified versions installed, as they are required for MMM Google Assistant to work correctly.
Installing MMM Google Assistant
MMM Google Assistant is a module that integrates Jarvis into your smart mirror. To install it, follow these steps:
- Open your web browser on the Raspberry Pi and visit the developer wiki for MMM Google Assistant.
- Navigate to the installation section and copy the lazy man's commands.
- Open a terminal and paste the commands to install MMM Google Assistant.
- Modify the
config.js
file to configure MMM Google Assistant according to your preferences.
- Move the downloaded credentials file to the MMM Google Assistant folder.
- Authenticate with Google using the provided
npm run token
command.
After following these steps, MMM Google Assistant should be installed and ready to use.
Configuring MMM Google Assistant
The config.js
file contains various options for customizing MMM Google Assistant. Take some time to go through the configuration options and make any desired changes. Remember to save your changes to the file.
Setting Up Gateway
Gateway is a central broker software that allows remote access to your Raspberry Pi and provides additional options and possibilities. To set up Gateway, follow these steps:
- Scroll down to the extended plugins section in the developer wiki.
- Click on "Ext Detector" and copy the lazy man's install commands.
- Paste the commands into a terminal and run them to install Ext Detector.
- Modify the
config.js
file to configure Ext Detector. Make sure to update the username and password for secure access.
Save the config.js
file after making the necessary changes.
Installing Ext Detector
Ext Detector is a module that enables the use of hot words like "Hey Google," "Ok Google," or "Jarvis" to activate the assistant. To install Ext Detector, follow these steps:
- Scroll down to the installation section in the developer wiki.
- Copy the lazy man's install commands for Ext Detector.
- Paste the commands into a terminal and run them to install Ext Detector.
Configuring Ext Detector
The config.js
file also contains configuration options for Ext Detector. You can customize the hot word detection and other settings according to your preferences. Refer to the wiki for more details on the available configuration options.
Testing Jarvis
Congratulations! You have completed all the necessary steps to set up your very own Jarvis. Now, it's time to test it out. Start your Magic Mirror and try saying one of the hot words, such as "Hey Google" or "Jarvis." If everything is configured correctly, Jarvis should respond to your commands.
Conclusion
In this tutorial, we have walked you through the process of setting up your own Jarvis using MMM Google Assistant. From setting up Google Cloud Platform to installing the required software and configuring the modules, we have covered all the necessary steps. Now you can enjoy the convenience of having your personal voice assistant right on your smart mirror. Remember, Jarvis is highly customizable, so feel free to explore the options and make it your own.
Congratulations on creating your very own Jarvis! Enjoy the endless possibilities and let your imagination run wild with this powerful voice assistant.
Highlights
- Getting your own Jarvis has Never been easier with MMM Google Assistant.
- Set up Google Cloud Platform to access the Google Assistant API.
- Install the necessary software and configure MMM Google Assistant.
- Set up Gateway and Ext Detector for additional functionality.
- Customize and test your Jarvis to make it truly yours.
FAQ
Q: Can I use a different Raspberry Pi model for this setup?
A: While a Raspberry Pi 3B or better is recommended, other models may work as well. However, it's important to ensure that your Raspberry Pi meets the minimum requirements specified in the tutorial.
Q: Can I change the hot word for activating Jarvis?
A: Yes, you can customize the hot word detection in the Ext Detector configuration. Simply modify the corresponding settings in the config.js
file according to your preference.
Q: What can I do with Jarvis once it's set up?
A: Jarvis can perform a wide range of tasks, including setting reminders, answering questions, controlling smart home devices, playing music, and much more. Experiment with different voice commands and explore the capabilities of Jarvis to make the most out of your voice assistant.
Q: Can I use Jarvis without a smart mirror?
A: While Jarvis is designed to be integrated into a smart mirror, you can still use it without one. Simply follow the installation and configuration steps for MMM Google Assistant and use it as a standalone voice assistant on your Raspberry Pi.
Q: Can I integrate Jarvis with other smart devices?
A: Yes, you can integrate Jarvis with various smart devices and services using the available modules and plugins. MMM Google Assistant provides a flexible platform for extending the functionality of your voice assistant.