A Faye client that can access Raspberry Pi's GPIO pins.
Turn pins on and off by sending Sockets to the Raspberry Pi.
First, make sure you have node.js and npm installed.
If you don't, open a terminal and type:
sudo apt-get install nodejs npm node-semver
Now we need to allow your user to access the GPIO pins (can only be done from root by default). We are going to use GPIO Admin for that:
git clone git://github.com/juangesino/quick2wire-gpio-admin.git
cd quick2wire-gpio-admin
make
sudo make install
sudo adduser $USER gpio
Logout and login again (more info).
Now we are ready to clone the server.
git clone https://github.com/juangesino/faye-gpio.git
cd faye-gpio
npm install
To run the script:
node app.js
TODO
TODO
- Fork it ( https://github.com/juangesino/faye-gpio/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
See MIT-LICENSE