Giter Site home page Giter Site logo

thundercloud's Introduction

#SiliconLabs Thunderboard Web Client

##Introduction The web client is built with various web tools including:


##Getting Started

  1. After downloading the source, you will need to get all of the required packages to run the local server.
    • Run npm install (For more information on npm, see npmjs.com)
  2. After install completes, you can run gulp watch to start the live-reload server. If a browser did not open, you can go to localhost:8080 to view the base page.
  3. To build the minified version of the code, use gulp build
  4. When streaming data to Firebase from the device, you will be given a URL with the scheme of /#/ (device id) / (session id) / (demo type)
    • All valid URLs can be found in src/js/main.js

##Firebase Setup

  1. Setup a Firebase account and database.
  2. Set that Firebase url on line 16 of src/js/main.js
    • window.firebaseURL = 'https://___________.firebaseio.com/bluegecko/';
  3. Set the firebase project name on line 2 of firebase.json. It should be something like glowing-inferno-55555
  4. Install the Firebase command line tools which will allow you to deploy your changes to Firebase.

###Database Structure

{
   "thunderboard": {
      "boardId (ThunderboardXXXXX)":{
         "sessions":{
            timestamp:(GUID)
            "1444075233":"2dadff7e-c716-44a2-a1d3-28a46b5112b2"
         }
      }
   },
   "sessions": {
      (GUID)
       "2dadff7e-c716-44a2-a1d3-28a46b5112b2":{
          "startTime" : timestamp,
          "endTime" : timestamp,
          "shortURL": (bitly link),
          "contactInfo" : {
              "fullName":"John Smith",
              "phoneNumber":1231231234,
              "emailAddress":"[email protected]",
              "title":"",
              "deviceName":"Thunderboard #1234"
          },
          "temperatureUnits" : 0/1 for SI/US ,
          "measurementUnits" : 0/1 for SI/US,
          "motion":{
              "data":{
                  "1444075233": {
                      "ax":____,
                      "ay":____,
                      "az":____,
                      "ox":____,
                      "oy":____,
                      "oz":____,
                      "speed":____,
                      "distance":____
                  }
              }
          },
          "environment":{
             "data" : { 
                 "1444075233": { 
                     "temperature" : 0 ,
                     "humidity" : 0 ,
                     "ambientLight" : 0,
                     "uvIndex" : 0
                 }
             }
          },
          "io":{
             "data":{
                 "1444075233": { 
                     "led0" : 0, 
                     "led1" : 1, 
                     "switch0" : 0, 
                     "switch1" : 0  
                 }
             }
         }
      }
   }
}

##Gulp Tasks gulp - Build local code and start a server
gulp watch - Build local code and start server with LiveReload
gulp build - Build the code and uglify it for deployment to firebase

thundercloud's People

Contributors

jcstange-silabs 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.