zachfeldman/alexa-home

Getting weird output from Raspberry Pi and Chrome

Closed this issue · 3 comments

Hi Zach! Just putting what I posted on your blog on Github.

Some questions...

I got everything to run, but I get some weird things on Raspberry Pi when I run the startupScript.sh:

$ /home/pi/.rvm/gems/ruby-2.2.0/gems/hue-0.1.3/lib/hue/client.rb:20:in bridge': Hue::NoBridgeFound (Hue::NoBridgeFound) from /home/pi/.rvm/gems/ruby-2.2.0/gems/hue-0.1.3/lib/hue/client.rb:49:invalidate_user'
from /home/pi/.rvm/gems/ruby-2.2.0/gems/hue-0.1.3/lib/hue/client.rb:14:in initialize' from /home/pi/dev/alexa-home/modules/lights.rb:4:innew'
from /home/pi/dev/alexa-home/modules/lights.rb:4:in <top (required)>' from app.rb:8:inrequire'
from app.rb:8:in <main>' "Error: Address family not supported by protocol - socket(2) for \"::1\" port 7055" watir-login.rb:80:inrescue in start_crawler': undefined method last_command' for nil:NilClass (NoMethodError) from watir-login.rb:74:instart_crawler'
from watir-login.rb:86:in `

'

Then I think the app.rb and watir-login.rb quits, because I run ps aux | grep ruby and those 2 are no longer showing.

Lastly, I do the jquery insert in Chrome and I keep getting this:

GET http://localhost:4567/command?q=&_=1425397524539 net::ERR_CONNECTION_REFUSED
GET http://localhost:4567/command?q=alexa%20stop&_=1425397524541 net::ERR_CONNECTION_REFUSED

I don't have Hue so obviously that's not working, but I'm thinking something is up with the ports in sinatra. Is it my router? Not sure...

Lastly, I found a typo in your read me file: "chmod +x startScript.sh && ./startupScript.sh". Should be "chmod +x startupScript.sh && ./startupScript.sh"

Thank you so much for the awesome write up! I'm enjoying your blog!

original-1
original

Sorry if my editing is not great. It's my first time using Github.

Hey @hancho123 that's ok! You should break up each of your problems into separate issues, not one big one. This way we can take a look at each of them in detail.

Got it. Let me break this into 3 parts.