Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

topotal/alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

よしかわアラーム(Yoshikawa-Alarm)

よしかわアラーム is a birthday present for @rrreeeyyy. This codes work with The Raspberry Pi.

よしかわあらーむ

Installation

Pythonz

sudo su -
apt-get install -y build-essential zlib1g-dev libbz2-dev libssl-dev libreadline-dev libncurses5-dev libsqlite3-dev libgdbm-dev libdb-dev libexpat-dev libpcap-dev liblzma-dev libpcre3-dev
curl -kLO https://raw.github.com/saghul/pythonz/master/pythonz-install
chmod +x pythonz-install
./pythonz-install
echo '  [[ -s /usr/local/pythonz/etc/bashrc ]] && source /usr/local/pythonz/etc/bashrc' >> ~/.bashrc
. .bashrc
pythonz install 2.7.9

Virtualenv

sudo su -
apt-get install -y python-virtualenv virtualenvwrapper
mkvirtualenv -p /usr/local/pythonz/pythons/CPython-2.7.9/bin/python2.7 --distribute alarm
workon alarm

Supervisor

apt-get install -y supervisor
cd /opt/alarm
cp ./config/supervisord/*.conf /etc/supervisor/conf.d/
service supervisor restart

Pygame on Ubuntu

apt-get install -y libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev libv4l-dev
cd /usr/include/linux
ln -s ../libv4l1-videodev.h videodev.h

Pygame on OSX

brew tap homebrew/headonly
brew install smpeg --HEAD
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
pip install hg+http://bitbucket.org/pygame/pygame

Python Packages

cd /opt
git clone https://github.com/topotal/alarm.git
cd alarm
pip install -r requirements.txt

Redis

apt-get install redis-server

Nginx

apt-get install nginx
cp ./config/nginx/alarm.conf /etc/nginx/conf.d/
service nginx restart

License

よしかわアラーム is released under the MIT License.

Releases

No releases published

Packages

No packages published