Update README.md

This commit is contained in:
2019-04-21 14:30:14 +08:00
parent c49b8667e3
commit e2384a2281

View File

@ -1,27 +1,14 @@
# door-unlocker # door-unlocker
透過 C.H.I.P 的 GPIO 控制繼電器解鎖租屋處的電磁門 透過 C.H.I.P 的 GPIO 控制繼電器解鎖租屋處的電磁門
> 需要以 root 使用者執行。
## Install ## Requirements
1. 安裝 [CHIP_IO](https://github.com/xtacocorex/CHIP_IO)。
```bash ```bash
sudo apt-get update
sudo apt-get install git build-essential python3-dev python3-pip flex bison chip-dt-overlays -y sudo apt-get install git build-essential python3-dev python3-pip flex bison chip-dt-overlays -y
sudo pip3 install CHIP-IO sudo python3 -m pip install -r requirements.txt
```
2. 取得這個專案。
```bash
git clone https://git.ntut.com.tw/PinLin/door-unlocker/
``` ```
## Usage ## Usage
需要以 root 使用者執行。
```bash ```bash
sudo python3 app.py sudo python3 app.py
``` ```