Skip to content

A RESTful web-server built-in a Raspberry Pi 3 model B to control the activation of a AC lamp through a TCP/IP network connection and HTTP protocol.

License

Notifications You must be signed in to change notification settings

NomiProject/LampREST-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LampREST-Server

A RESTful web-server built-in a Raspberry Pi 3 model B to control the activation of a AC lamp through a TCP/IP network connection and HTTP protocol.

Requirements

  1. Python 2.7 or 3.6 Download Python interpreter here.

  2. Raspberry Pi 3 Model B Learn more about RasberryPi project.

Setup in your RaspberryPi

  1. Clone the repo

    $ git clone https://github.com/NomiProject/LampREST-Server.git
    $ cd LampREST-Server/
  2. Create Python Virtual Environment

    $ virtualenv env --system-site-packages
    

    The –system-site-packages flag is optional, but by adding it, it allows you isolated environment to access your globally installed packages on your root install, so thing’s like the RPi.GPIO library and such so I find it’s a good idea to add it.

  3. Enable Python Virtual Environment

    $ source env/bin/activate
  4. Install the pip-installable dependencies

    $ pip install -r requirements.txt
  5. Run the LampREST-Server

    $ python app.py
  6. Locally, navigate to http://localhost:5000 or remotely http://your_raspberrypi_ipaddress:5000 to access the webservice and control a lamp.


Developed by Allex Lima, Daniel Bispo, Paulo Moraes and Renan Barroncas with ❤️ using Python.

Copyright © 2016 LampREST-Server - Licensed by MIT LICENSE.

About

A RESTful web-server built-in a Raspberry Pi 3 model B to control the activation of a AC lamp through a TCP/IP network connection and HTTP protocol.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published