Skip to content

bagrusss/rpi-gpio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pri-gpio

Raspberry PI GPIO web project

1.1 Install uptime.
pip install uptime
1.2 Install wiringPi lib
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build

2. Set up database and create user with 0 privileges.
 2.1 Make migrations in the application:
python manage.py makemigrations
 2.2 Sync models with database:
python manage.py syncdb
 2.3 Run python shell and add superuser:
python manage.py shell
>>>from models import *
>>>u=User.objects.create_user(username=u'somename')
>>>u.set_password(u'some_pass')
>>>u.save()
>>>cu=ControllUser(user=u, privig=0)
>>>cu.save()
3. Run django server on port 8000 with sudo
sudo python manage.py runserver 8000
4. Сopy file configs/raspi-gpio.conf to /etc/nginx/sited-enabled and restart nginx
sudo service nginx restart

About

Raspberry PI GPIO web project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published