Based off of the code by John Schimmel node-session, used it for the Robot Party Robot Controller extension and the RoboBrrd Brrd Feeder extension! Here is a basic Arduino demo that can help get you up and running with your own Hangout robots!
There are four main parts to this:
- web app (node.js running on ec2, has tcp & web sockets)
- processing sketch (listening to tcp socket, serial conn to arduino)
- arduino (listening to serial for messages, performs actions)
- google+ hangout (hangout.xml showing iframe)
-
ec2:
-
ec2 - network & security
- -> security groups
- add 2 ports for your websocket and tcp socket
-
google apis:
-
'diy node.js server' -- follow this up to installing nginx
-
'node.js server and web sockets' -- follow this from install & configure HAProxy
-
'how i got node.js running on a linux micro instance' -- from the forever part:
Just some notes that I jotted down while making this which might be helpful
-
permissions for keypair:
- chmod folder to 700
- chmod file to 600
-
add keypair:
- ssh-add /Users/frankenteddy/Documents/keypair/coolioeskeypair.pem
-
extension iframe size:
- 300 x 732 px
Hope to see ya at the ROBOT PARTY!