Coder Social home page Coder Social logo

alexa-home's People

Contributors

danehammer avatar geshwho avatar jhmartin avatar sarkonovich avatar zachfeldman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexa-home's Issues

Without a hue bridge, the server fails to load

I would like to work on this with you, so I'm telling you about this, seeking direction. Looks like the modules need to be pluggable, so a user can specify a set of them. I got it working with just nest, by merely commenting out the require lights line in app.rb. How would you envision this being implemented, some config in config.ru?

Getting weird output from Raspberry Pi and Chrome

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

Weird output when I run chmod +x startupScript.sh && ./startupScript.sh

Hi Zach,

From my R-Pi, when I run chmod +x startScript.sh && ./startupScript.sh, I get the following:

$ /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.
original

Thanks!!!

Typo in "Getting Started"

  1. Type chmod +x startScript.sh && ./startupScript.sh

Should be:

Type chmod +x startupScript.sh && ./startupScript.sh

Separating watir code into own gem.

I'm working on my own automation making use of the Wink hub and api.

https://github.com/KellyMahan/winker

Until a proper SDK is usable I'd like to make use of just your watir code with a configurable callback url. Easiest way is just create a gem with an executable.

I am trying to make it as modular as possible. I already have the basic Winker gem written. The readme explains it pretty well.

Winker-Rails is in progress but not releasable yet. It will be web interface for setting up logic that wink doesn't provide for.

Winker-Voice which I haven't started yet, will be the ai for parsing text strings for the proper commands.

All that i'm lacking is an easy way to get the commands from the echo device is something like your watir code. I may even add some additional functionality for playing music as part of the automation.

If it's not something you have time for then I can create it and attribute it to you.

Inserting jQuery into Chrome in Echo history comes up with problem

Hi!

When I put:
var lastCommand;
$(document).ajaxComplete(function(){
command = $(".dd-title.d-dialog-title").first().text()
if(lastCommand != command){
$.get("http://localhost:4567/command?q="+command)
lastCommand = command;
}
})

I get the following:

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

or

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

Not sure if this is a problem...

Thank you Zach!

Looks like Alexa is getting Native Hue Integration

Tonight when I issued a lights command, Alexa came back with a strange answer: "Could not find any connected home devices."

When I said, "Find connected home devices" she replied:

"Starting discovery. If you have a Philips Hue Bridge, press the button."

It seems she found all the lights, including Wemo lights, just judging by the number of connected home devices she reported finding.

She can't control anything yet...light commands don't work [yes she can...see below] But it seems like it's coming very soon. We'll see if it's as good as your amazing project -- and if it isn't, I hope it doesn't interfere with it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.