HackerShackOfficial / AI-Smart-Mirror

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

Not Displaying #31

Open ghost opened 7 years ago

ghost commented 7 years ago

So everything works besides the Display, I can speak to the AI and it answers. So if I say "show me a Satellite Map of England" the AI answers "Sure here is a Satellite Map of England" but I'm not getting anything shown on the screen. Reinstalled electron(node.js) aswell as the MagicMirror from MichMich. Then i used sudo npm start dev to check the console, and it says

Starting module: clock
Starting module: calendar
Starting module: currentweather
Starting module: weatherforecast
Starting module: newsfeed
Starting module: aiclient
Starting module: aiclientdebugger
All modules started!

I also tried to replace the config.js from AI-Smart-Mirror/magic_mirror with the MagicMirror/config/config.js (well i copied into it). Still not showing.

robli314 commented 7 years ago

acctually you have to do the other way around:

ghost commented 7 years ago

@orobsonpires oh yeah sorry, i did that already i just wrote that wrong. Thats what i actually did

robli314 commented 7 years ago

Probably this is an issue related to MagicMirror, not to AI-Smart-Mirror. I do suggest you to open this issue to the MagicMirror project. The AI-Smart-Mirror just sends http requests to MagicMirror, the responsibility to lead with these requests belong to the frontend (MagicMirror).

Abhilash401 commented 7 years ago

when I entered npm start....it throws the error that electron not found. But there is electron.js file. How can i fix it

ghost commented 7 years ago

@Abhilash401 you need to reinstall node.js. Is it the newest current version? should be 6.9.5

russellsiva commented 7 years ago

Hi Guys,

I too am having this exact same issue where the voice Recognition bit responds perfectly (audio) but nothing is displayed on the mirror.

I have tried disabling all other modules to see if anything else is overriding it, but to no avail.

I must say all my other modules work perfectly fine in the Zones these two modules are assigned to work. So this makes me wonder, it is MagicMirror that's not using the data passed or is it the AI not sending the data correctly.

Is this statement bot.py found in correct? if text is not None: requests.get("http://localhost:8080/statement?text=%s" % text) self.speech.synthesize_text(text)

should it be sending the requests to Localhost at port 8080?

Im running this on Raspberry Pi3

Thank you once again for reading this and hope someone can help us.

russellsiva commented 7 years ago

Update to my silly Ranting above, so it appears after I ran the following command npm start dev I saw there were 4 errors on the console they were moaning that they couldn't see the two .js files aiclient and aiclientdebugger So i copied these two directories located at AI-Smart-Mirror/magic_mirror/ and stuck them in MagicMirror/Modules.

This cured the problem and the text started displaying. Now onto the next problem where this chick always says "Im sorry, i dont know about that yet"......

ghost commented 7 years ago

@russellsiva are you working behind a proxy? If so you will need a "normal" connection to the internet activate the Hotspot on your Mobile Phone and connect the Pi to it, just try it without a proxy. If you connected to a non-proxy Connection, try it again. I had this problem everytime, because "she" can't get the information.