Skip to content

kemkem/aalarm4

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

aalarm4

Rpi based alarm system with adafruit NFC and LCD

Rpi install

Download raspbian jessie lite https://www.raspberrypi.org/downloads/raspbian/

Write image to sd card using linux dd or win32diskimager (windows)

Rpi configuration

Using sudo raspi-config, enable ssh, i2c, spi

Third party

install mpg123

Users

Add your custom user and remove defalt pi user

sudo adduser USER
sudo userdel pi

Then, add USER to required groups

sudo adduser USER sudo
sudo adduser USER gpio
sudo adduser USER spi
sudo adduser USER i2c
sudo adduser USER audio

Install python tools

TODO Some of these may not be required

sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus python-pip
sudo apt-get install -y python3 python3-pip python-dev

Create python3 virtualenv

pip install virtualenv
sudo apt-get install python3
virtualenv -p /usr/bin/python3 py3env
source py3env/bin/activate

Install libs in virtualenv

GPIO

pip3 install rpi.gpio

ConfigParser

pip install ConfigParser

Customised CharLCD with backlight managment

clone https://github.com/kemkem/Adafruit_Python_CharLCD.git
cd Adafruit_Python_CharLCD
git checkout i2c_backplate_backlight
python setup.py install

Others required libraries from Adafruit

GPIO
cd Adafruit_Python_GPIO
python setup.py install
PN532
cd Adafruit_Python_PN532
python setup.py install

Install Flask

pip install Flask

Motion

/etc/default/motion start_motion_daemon=yes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages