Skip to content

KeitetsuWorks/raspi-gpio-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpio-web-server

Description

The Python CGI Script to Control the LED.

Here is the documentation generated by MkDocs from the docstrings in the code.

Demo

Requirement for Raspberry Pi

Hardware

Software

Setup

Hardware

Schematic

Software

$ git clone https://github.com/KeitetsuWorks/raspi-gpio-web-server.git gpio-web-server
$ cd ./gpio-web-server/
$ pyenv virtualenv 3.7.7 py37-gpio # Optional
$ pyenv local py37-gpio # Optional
$ pip install -r requirements.txt

Usage

  1. Run the Python script

    $ python gpio-web-server.py
  2. Access the server with a web browser

    • http://your_raspi_ip_address:5000/
  3. Press Ctrl + c on the terminal to exit

参考情報

公式ドキュメント

License

  • MIT