Thanks to visit codestin.com
Credit goes to github.com

Skip to content

raghavpatnecha/smartmirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

24 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Smart-Mirror-AI ๐Ÿชž

Smart Mirror implementation using Artificial Intelligence ๐Ÿค–

Watch the video on here

Setup ๐Ÿ–ฅ๏ธ

Open Source ๐ŸŠ

  1. MichMich MagicMirror
  2. Follow the guide on HackerHouseYT for basic setup.

Code Requirements ๐Ÿฆ„

The example code is in Python (version 2.7 or higher will work).

Copy the folders in smartmirror/magic_mirror to MagicMirror respective folders.

Artificial Intelligence ๐Ÿค–

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.

Weather โ„๏ธ

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?

Youtube ๐Ÿ“บ

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?

Maps ๐ŸŒ

For map, we are using Google maps. Types of map we support right now are :

  1. Normal
  2. Hybrid
  3. Satellite
  4. Terrain
  • Can you show me map of India?

News ๐Ÿ“ฐ

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?

Uber ๐Ÿš•

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?

Zomato ๐Ÿ•

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?

SoundHound ๐Ÿ”Š

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:

  1. Solving Mathematical equations. What are the roots for x^2-x+1
  2. Stock Market :What are the stock prices and market cap of Google, Apple and Microsoft.
  3. Hotel Enquiries : Can you show me hotels in New York that have a swimming pool for next Monday?
  4. Wikipedia : Who's Sachine Tendulkar?

Open and Close Module.

Example command for opening and closing module.

  1. Can you open the bitcoin module.
  2. Can you close the mail module.

API ๐Ÿ’ณ

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.

Starting Up ๐ŸŽซ

Navigate to the smartmirror folder

cd smartmirror

Make sure MagicMirror is running, then start the AI

python bot.py

Contribute ๐Ÿฆฎ

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.

Results ๐Ÿ“Š