/raspberry-control-server

Raspberry Control - Control Raspberry Pi with your Android Device

Primary LanguageCGNU General Public License v2.0GPL-2.0

raspberry-control-server
========================

Raspberry Control - Control Raspberry Pi with your Android Device

* Raspberry Pi (Raspbian - Release date:2014-09-09)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cmake libssl-dev libglib2.0-dev libjansson4 libjansson-dev

git clone https://github.com/lukasz-skalski/libwebsockets.git
cd libwebsockets
mkdir build
cd build
cmake -DLWS_IPV6=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
sudo make install

git clone https://github.com/lukasz-skalski/raspberry-control-server.git
cd raspberry-control-server
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug ../
make
./raspberry-control-server --port=8080 -n


shellinabox (Terminal Emulator)
===============================

sudo apt-get install shellinabox
/usr/bin/shellinaboxd -q --background=/var/run/shellinaboxd.pid -c /var/lib/shellinabox -p 8081 -t


mjpg-streamer (Webcam Surveillance)
===================================

apt-get install libv4l-dev libjpeg8-dev imagemagick

cd $HOME
git clone https://github.com/lukasz-skalski/mjpg-streamer.git

cd mjpg-streamer/mjpg-streamer-experimental
make

export LD_LIBRARY_PATH=.
./mjpg_streamer -o "output_http.so -p 8082 -w ./www" -i "input_raspicam.so -x 640 -y 480 -fps 20 -ex night"


LIRC (IR Remote Control)
========================

sudo apt-get install lirc

vi /etc/modules (add two below lines)

lirc_dev
lirc_rpi gpio_out_pin=22

vi /etc/lirc/hardware.conf

########################################################
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"

# Don't start lircmd even if there seems to be a good config file
# START_LIRCMD=false

# Don't start irexec, even if a good config file seems to exist.
# START_IREXEC=false

# Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"

# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
########################################################

# Prepare new configuration file (please visit: http://lirc.sourceforge.net/remotes/)
cp ~/lircd.conf /etc/lirc/lircd.conf


DS18B20 Sensors (Temperature Sensors)
=====================================

vi /etc/modules (add two below lines)

w1-gpio
w1-therm