20160115_jeffrey - silenceuncrio/diary GitHub Wiki
Index
- 0915 - IoT Message Exchange
- 1030 - Control Center RESTful Client
- 1050 - Control Center RESTful Server
- 1055 - Control Center Automation
- 1105 - Control Center UI
0915
進度有點落後, 不過還是要趕快整理一次架構
昨天的 IoT Message Exchange 還沒寫完就去參加尾牙了
IoT Message Exchange

- Control Center 的 Resource 有
/event- 該服務提供 Box 通知各式訊息, 支援的 HTTP Method 有POST- 提供 Box 通知各式訊息,Content-Type為application/json- Request - Box 的通知訊息,
Content-Type為application/json - Response - Center 的回應訊息,
Content-Type為application/json
- Request - Box 的通知訊息,
- Control Box 的 Resource 有
/common- 該服務提供 Center 做一般性的設定, 支援的 HTTP Method 有GET- 提供 Center 該 Box 的一般資訊, 包含實際的 IoT 感測周邊設備清單- Request
- Response - Box 的回應訊息,
Content-Type為application/json
POST- 提供 Center 來設定該 Box 的一般性設定- Request - Center 的設定內容,
Content-Type為application/json - Response - Box 的回應訊息,
Content-Type為application/json
- Request - Center 的設定內容,
/thing/{$name}- 該服務提供 Center 針對個別的 IoT 感測周邊設備做設定,{$name}為感測周邊名稱, 支援的 HTTP Method 有GET- 提供 Center 該感測周邊的資訊- Request
- Response - Box 的感測周邊的回應訊息,
Content-Type為application/json
POST- 提供 Center 來設定該感測周邊的設定- Request - Center 的設定內容,
Content-Type為application/json - Response - 感測周邊的回應訊息,
Content-Type為application/json
- Request - Center 的設定內容,
1030
Control Center RESTful Client

- RESTful Client - Center 使用遠端 Box RESTful Resource 時的手段
- Database - 整個 IoT 的資訊核心, RESTful Client 解析 response 後需要負責維護
1050
Control Center RESTful Server

- RESTful Server - 該服務能讓遠端的 Box 使用 Center 所提供的 RESTful Resource
- Nginx + FastCGI 是高效服務的品質保證
- Database - 整個 IoT 的資訊核心, RESTful Server 解析 request 後需要負責維護
1055
Control Center Automation

- Automation - 自動化控制核心
- Action Trigger - 負責檢查有沒有任何感測周邊的數據滿足使用者所設定的觸發條件, 然後採取使用者想要的行動
- Database - 整個 IoT 的資訊核心
- Rule Table - TBD
- Action Table - TBD
1105
Control Center UI
