Giter VIP home page Giter VIP logo

aiot0531's Introduction

aiot0531

物聯網 - hw05

步驟

1. Clone這個專案

https://github.com/AndyChiangSH/aiot0531.git

2. 安裝所需套件

pip install -r requirements.txt

3. 建立 APP & 使用 HEROKU postgres

  • 註冊HEROKU帳號 (我本來就有了)
  • 新增一個APP
  • 新增外掛功能 heroku postgres

4. 使用 HeidiSQL 連線至 postgres DB

Postgresql >> Settings >> Database Credentials 取得資料庫資訊

5. 引用資料庫 (db/postgre.db)

6. 將資料庫資訊加入 app.py

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>"

7. 在本機測試

8. Push到GitHub

git push origin master

9. HEROKU連結到GitHub

10. 自動部署

11. 完成!

https://aiot0531.herokuapp.com/

成果

1. Random vs. AI

  • Random

  • AI

高 -> 綠色 低 -> 紅色

2. 額外顯示溫度和濕度的數據

aiot0531's People

Contributors

andychiangsh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.