HackerShackOfficial / AI-Smart-Mirror

Smart Mirror with a smart AI 🤖
MIT License
537 stars 214 forks source link

Outdated Scripture #19

Open ceased-ebc opened 7 years ago

ceased-ebc commented 7 years ago

Outdated scipture

atainter commented 7 years ago

Did you test by hitting the MM module through the browser?

atainter commented 7 years ago

are there any errors in the terminal?

atainter commented 7 years ago

I can't see your image btw

atainter commented 7 years ago

Oh, you have to say the activation phrase first. Say Ok mirror, then ask it a question.

atainter commented 7 years ago

You can also change the launch phrase "https://github.com/HackerHouseYT/AI-Smart-Mirror/blob/master/bot.py#L18"

atainter commented 7 years ago

It should be:

Found face I'm listening Found audio Google Speech Recognition thinks you said ok mirror

Then ask a question

atainter commented 7 years ago

If it translates speech to text Google Speech Recognition thinks you said ok mirror, it should be sending a request to the MM module. Can you open up the Electron debugger to see if it's throwing any errors? You have tested the MM module by testing a /statement command with your browser, correct?

atainter commented 7 years ago

You could also try downloading something like charles proxy to see if it's actually sending a request

atainter commented 7 years ago

MM runs a server and the module I created for MM listens for incoming requests. The bot.py file sends a request to the MM server. When the module receives a request, it displays something in Electron.

In addition to dragging and dropping the modules, did you update the config with my config? That config makes sure that only my two modules are running.

Charles proxy is an application that you can use to see all network requests happening on your machine. You can delete it whenever you want.

I suspect something might be wrong with your MM. Usually it displays a listening tag at the bottom of the screen when the bot.py prints I'm listening.

screen shot 2016-12-02 at 7 26 43 am

Also, I can't reiterate this enough: please make sure you test by sending a command from your web browser.

screen shot 2016-12-02 at 7 27 54 am screen shot 2016-12-02 at 7 27 46 am
atainter commented 7 years ago

It's in the MM module I created....

https://github.com/HackerHouseYT/AI-Smart-Mirror/blob/master/magic_mirror/aiclient/face.gif