物聯網 - hw05
https://github.com/AndyChiangSH/aiot0531.git
pip install -r requirements.txt
- 註冊HEROKU帳號 (我本來就有了)
- 新增一個APP
- 新增外掛功能 heroku postgres
到 Postgresql >> Settings >> Database Credentials 取得資料庫資訊
myserver = "<fill-in-Heroku-Postgredb-DB-sever>"
myuser = "<fill-in-Heroku-Postgredb-DB-user>"
mypassword = "<fill-in-Heroku-Postgredb-DB-pwd>"
mydb = "<fill-in-Heroku-Postgredb-DB-db>"
git push origin master
https://aiot0531.herokuapp.com/
高 -> 綠色 低 -> 紅色