Coder Social home page Coder Social logo

tessel_api's Introduction

tessel_api

A continuation of learning NodeJS and React with a Tessel 2 board. This app is a simple API to access on-board leds, a stream from a usb camera, and any additional sensors connected to the device. Once deployed, the Tessel 2 will connect wirelessly to a LAN and may run on battery power. A simple admin panel shows real-time data from sensors and a live video stream. An instance of MongoDB will record the state of connected assets.

Below are two live examples where the Tessel 2 is deployed on battery power and sending a live video stream and temperature data from a basic temperature sensor over a wireless LAN.

The first example demonstrates the remote capability. The project may be deployed anywhere around a home, office, store, or warehouse, and even outside as long as the device can reach the LAN.

Example 1

Demo

This second example shows how the user can toggle the onboard leds through the UI. Each click on the React client calls out to the Node server which then sends a request to the Tessel 2 to toggle a led. If successful, the callback updates the Mongo database and sends a json response back to the client. If the led fails to toggle, the database and client will not be altered. With this baseline architecture in place the Tessel API is ready to transmit data from additional sensors.

Example 2

Demo

Tessel 2 Assembly

Demo Demo

The Stack

(In Progress. Additions to come.)

  • NodeJS
  • Express
  • MongoDB & Mongoose with mLab
  • ReactJS

The Firmware

  • Tessel 2

Setup

  • git clone <tessel_api> && cd tessel_api
  • yarn install
  • cd client && yarn install
  • Create a file .env in the project root and add environment variables for your database, e.g.
    • DB_USER=<your_DB_user>
    • DB_PASS=<your_DB_password>

License

This project is licensed under the MIT License.

tessel_api's People

Contributors

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