GithubHelp home page GithubHelp logo

dbsu10-smartclock-master-3's Introduction

DBSU10-SmartClock wiki

Visit the SmartClock here

Note: the following source was used to create the basics of the clock --> Link

What is the SmartClock?

A regular clock on the wall has as main (and only) purpose to display the current time. In order to be on time with all our daily activities we often look at the clock to see what the current time is, which in turn helps determine how much time is left till you have to do something else or how much time has passed since you started a certain activity. A Clock only helps us to know the current time, but the calculation and organization of activities based on the knowledge of the current time takes place in our head. We want to simplify this thought process by displaying your daily activities directly on a clock. We believe this gives a better presentation of the activities during the day and helps organize them better.

What does/can the SmartClock do?

  • The SmartClock allows users to create new activities and drag them on to the clock. The activities are displayed as icons which represent the activity and can be dragged to the outer border of the clock on the desired time.
  • The SmartClock is able to receive data (from OOCSI), in the form of time stamps, from other devices and display those on the clock.
  • The SmartClock allows users to reschedule activities by dragging/repositioning icons already being displayed on the clock.
  • The SmartClock can send data about activities back to other module when such a request comes in.

How to send an activity (data) to the SmartClock via OOCSI?

There are 5 parameters required to successfully display an activity on the clock:

  1. SmartClock - The name of the channel the SmartClock is subscribed to (listening to).
  2. moduleName - The name of the module/device sending the data.
  3. timeStampMin - The current time in minutes.
  4. timeStampHour - The current time in hours.
  5. actCategory - The category for the activity to be places it.

Sending data via OOCSI can be done with the following statement:

for example:

//define variables  
String module = "pizzaButton";    
int currentMin = minute(); //gets current time in minutes (1-59)    
int currentHour = hour(); //gets current time in hours (1-12)
String category = "B";   

//send data    
oocsi  
   .channel("SmartClock")    
      .data("moduleName", module)    
         .data("timeStampHour", currentHour)    
            .data("timeStampMin", currentMin)    
               .data("actCategory", category)    
                  .send();

dbsu10-smartclock-master-3's People

Contributors

krosola 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.