Coder Social home page Coder Social logo

iottalk-demo-frame-web-controller's Introduction

IoTtalk-Demo-Frame-Web-Controller

這個專案的主要目的是重建位於台北天龍的展架的網頁控制介面。
程式碼參考自 IoTtalk SwitchSetJS (取用程式IoTtalk v1 JavaScript SDK)
另外,這是一份備忘錄,如果之後需要重建類似的展架,可以直接取用。

使用到的套件

IoTtalk設定

創建下列Device Feature:

名稱 df 型態
chartTemperatures odf float
chartAtmosphericPressur odf float
chartAltitude odf float
chartHumidity odf float
chartLightSensor odf int
chartMoisture odf float
sprinkling idf int
lamp idf int
drip idf int

創建Device Model :

  • 名稱 : Tano_Demo_Control
  • Input Device Features (idf) : 見上表,共3個
  • Output Device Features (odf) : 見上表,共6個

設定網頁連線與上傳網頁

再將網頁上傳至網頁伺服器前,需要更改 ./js/iottalk/demo_frame.js 這個檔案。
請將
var ENDPOINT = 'http://xxx.xxx.xxx.xxx:xxxx';
更改為IoTtalk伺服器的IP (含port)。
接著將
var device_id = '';
的內容改為方便辨識的名稱。(請注意 : 這個名稱不能與其他裝置相同!)

設定完之後就可以將整個以下資料夾與網站上傳至網頁伺服器了。

  • boostrap/
  • css/
  • images/
  • js/
  • index.html

iottalk-demo-frame-web-controller's People

Contributors

twbrandon7 avatar

Watchers

 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.