From e2384a2281e186a6d0b802ed10b6c4e4027400d5 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Sun, 21 Apr 2019 14:30:14 +0800 Subject: [PATCH] Update README.md --- README.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2d86782..5feb53c 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,14 @@ # door-unlocker 透過 C.H.I.P 的 GPIO 控制繼電器解鎖租屋處的電磁門 +> 需要以 root 使用者執行。 -## Install - -1. 安裝 [CHIP_IO](https://github.com/xtacocorex/CHIP_IO)。 - +## Requirements ```bash -sudo apt-get update sudo apt-get install git build-essential python3-dev python3-pip flex bison chip-dt-overlays -y -sudo pip3 install CHIP-IO -``` - -2. 取得這個專案。 - -```bash -git clone https://git.ntut.com.tw/PinLin/door-unlocker/ +sudo python3 -m pip install -r requirements.txt ``` ## Usage - -需要以 root 使用者執行。 - ```bash sudo python3 app.py ``` -