Git Product home page Git Product logo

it's Introduction

#Favor Favor Logo

bitHound Overall Score bitHound Dependencies bitHound Code

A simple library for creating hardware agnostic IoT devices.

Favor is a javascript/node.js library to abstract away complex and inconsistent hardware interfaces into a single simple to use API.

In a nutshell

Have you ever wanted to write

$$('temperature').get(function(temp) { console.log('The temperature is ', temp) };

Well, now you can, and run on multiple devices without mixing business logic with device configuration considerations.

Check out the demo video of getting started with Favor. demo hello world led video

What do you mean by Hardware agnostic

In this sense, hardware agnostic means that you can write your business logic without needing to worry about what hardware it will run on.

Currently Favor works with linux based devices like the Raspberry Pi, Beaglebone and others. But more than just the hardware platform, with Favor you can run your application on different chips and sensors, without needing to consider what type of chip the application is runnning on, or even what protocol (gpio, I2C, SPI).

Favor makes it possible to run your application on completely different hardware.

Other platforms are currently in the process of being supported, and more protocols can be added as well. Need something special? Just ask!

Supported Versions of node

Favor has been tested with node v4, it should also work with v5. v0.10 and v0.12 have not been tested and may not work.

What's supported?

Currently Favor has been tested on RaspberryPi v1b and Beaglebone Black, but any linux device which runs node.js should work. I'll be happy to test with other devices, I just need to get access to them.

Favor works with GPIO, i2C and SPI protocols.

How Does It Work?

Favor uses a js configuration file stored on your device which describes the structure of your hardware. It queries this js file, similar to how jQuery parses and interacts with the DOM. Once Favor knows what devices are connected, and how to interact with them, you can easly write jQuery style statements like $$('temperature').get(callback) will get you the temperature on any device running Favor which has a temperature sensor.

What are the benefits of Favor

  1. a single consistent api for interacting with different devices and protocols

  2. a separation of concerns between hardware and software

  3. write-once run-anywhere

  4. testable logic which will run across different hardware devices

Installing

npm install favor

See the favor wiki for more documentation

Favor Wiki

Live-code example of getting data from a temperature sensor

Get Temperature - live code

Live-code example of watching buttons and sensors

Watch Sensors - live code

it's People

Contributors

pedalpete avatar

Watchers

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