Smart Mirror implementation using Artificial Intelligence 🤖
Watch the video on here
- MichMich MagicMirror
- Follow the guide on HackerHouseYT for basic setup.
The example code is in Python (version 2.7 or higher will work).
Copy the folders in smartmirror/magic_mirror
to MagicMirror
respective folders.
We are using wit.ai for generating intents out of the text.
You need to generate an access id using which, you can send GET requests to get intents.
Upload the models/Smart-Mirror.zip
to wit.ai
Once you upload this data to wit.ai you can use the commands given below. You can also add your own custom commands to wit.ai.
For weather we are using darksky.net. You have to create your own developer account and get the API key.
- What's the weather forecast?
For enabling youTube, you need to get the youTube secret Key from the Google's developer Console. Add the key in the code.
- Can you play me a video of Eminem?
For map, we are using Google maps. Types of map we support right now are :
- Normal
- Hybrid
- Satellite
- Terrain
- Can you show me map of India?
For news, we use Google news and the location has been set to IN (INDIA). You can change it according o your country to get the latest news.
- Can you show me the latest news?
You can directly book an uber and get the arrival map using this module. You need to get the API Key, Client Secret, Oauth Key and paste it in the code.
- Can you book me an uber pool/go from Vimaan Nagar to Baner?
For zomato, you need to get the API key from zomato's dev site. And paste it in the code. You can view the list of available restaurants in a region.
- Can you show me restaurants in Pune?
For various other tasks, we have used soundhound's api. The soundhound service is quite effective and fast. Operations that could be done using soundhound:
- Solving Mathematical equations. What are the roots for x^2-x+1
- Stock Market :What are the stock prices and market cap of Google, Apple and Microsoft.
- Hotel Enquiries : Can you show me hotels in New York that have a swimming pool for next Monday?
- Wikipedia : Who's Sachine Tendulkar?
- Can you open the bitcoin module.
- Can you close the mail module.
Different APIs have been used for different services. You are required to create an account and get the respective keys from the providers. You have to place the keys in the code. The instructions for the same are given in the code.
Navigate to the smartmirror folder
cd smartmirror
Make sure MagicMirror is running, then start the AI
python bot.py
Feel free to contribute.Although I have tried to added most of the apis including youtube,uber,zomato,hound but I would appreciate if someone add a spotify or soundcloud api for music player integration. Also, if someone could add a pause & play command for the youtube videos.