All Projects → NEEOInc → neeo-sdk-examples

NEEOInc / neeo-sdk-examples

Licence: MIT license
NEEO Brain SDK Examples

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to neeo-sdk-examples

extensions-rig
A full development environment to build Twitch Extensions. Currently only supports panel extensions but video overlay coming soon.
Stars: ✭ 26 (+36.84%)
Mutual labels:  examples
GroupDocs.Classification-for-.NET
GroupDocs.Classification-for-.NET samples and showcase (text and documents classification and sentiment analysis)
Stars: ✭ 38 (+100%)
Mutual labels:  examples
easy-to-understand-Vue.js-examples
《深入浅出Vue.js》的相关代码
Stars: ✭ 49 (+157.89%)
Mutual labels:  examples
goodcode
A curated collection of annotated code examples from prominent open-source projects
Stars: ✭ 184 (+868.42%)
Mutual labels:  examples
nativescript-vue-examples
🍈 NativeScript and Vue code samples.
Stars: ✭ 13 (-31.58%)
Mutual labels:  examples
mindpatterns
HTML Accessibility Pattern Examples
Stars: ✭ 78 (+310.53%)
Mutual labels:  examples
Examples FLTK
Shows how to use Fltk controls only by programming code (c++17).
Stars: ✭ 28 (+47.37%)
Mutual labels:  examples
go-learning
My Golang training material for testing smaller Go concepts and ideas.
Stars: ✭ 27 (+42.11%)
Mutual labels:  examples
tkinterhowtos
A software package containing solutions to simple (and possibly recurrent) "how to" problems in tkinter.
Stars: ✭ 18 (-5.26%)
Mutual labels:  examples
awesome-kotlin-libraries-for-android
😎 A curated list of awesome Kotlin libraries for Android.
Stars: ✭ 53 (+178.95%)
Mutual labels:  examples
esbuild-loader-examples
esbuild-loader examples
Stars: ✭ 76 (+300%)
Mutual labels:  examples
VoiceBridge
VoiceBridge - an AI-TOOLKIT Open Source C++ Speech Recognition Toolkit
Stars: ✭ 17 (-10.53%)
Mutual labels:  examples
broadway bike sharing rabbitmq example
An example of a Broadway pipeline for a bike sharing app with RabbitMQ and PostgreSQL
Stars: ✭ 27 (+42.11%)
Mutual labels:  examples
flutter provider examples
Examples of Flutter's provider package
Stars: ✭ 41 (+115.79%)
Mutual labels:  examples
three-stdlib
📚 Stand-alone library of threejs examples designed to run without transpilation in node & browser
Stars: ✭ 380 (+1900%)
Mutual labels:  examples
YouTubeAPI-Examples
YouTube Data API Usage Examples using Python.
Stars: ✭ 61 (+221.05%)
Mutual labels:  examples
design-patterns-in-java
☕ 📖 使用通俗易懂的案例,类图,及配套学习笔记来详解 Java 的二十三种设计模式 !
Stars: ✭ 35 (+84.21%)
Mutual labels:  examples
evolution
Evolution process of The Falco Project
Stars: ✭ 37 (+94.74%)
Mutual labels:  examples
ros2 examples
Examples for individual ROS2 functionalities inc. Subscribers, Publishers, Timers, Services, Parameters. ...
Stars: ✭ 46 (+142.11%)
Mutual labels:  examples
ilrx
I Love Ruby Examples
Stars: ✭ 35 (+84.21%)
Mutual labels:  examples

NEEO SDK Examples Build Status

You can find the SDK documentation at https://github.com/NEEOInc/neeo-sdk.

To find out more about NEEO, the Brain and "The Thinking Remote" checkout https://neeo.com/.

Prerequisite

Getting started

  1. Checkout this repository locally.
  2. Open a terminal in the folder of the repository you checked out.
  3. Run npm install to install needed dependencies.

Working with NEEO Brain Recipes

One way to use the SDK is to trigger Recipes and fetch information about the Recipes.

For example:

  • Find the nearest Brain
  • Get a list of recipes
  • Find out which recipes are currently powered on

You can run this example via npm run example:recipe, the sample code is located in scripts/recipe/listAllRecipes.js.

Another way is to enable action forwarding to track what is happening on the Brain (power on and power off of recipes and more). You can run that example via npm run example:forwardaction, the sample code is located in scripts/forwardaction/.

Adding custom devices to the NEEO Brain

Another way to use the SDK is to add support for custom devices.

Example SDK Drivers

The source implementation of the example drivers are located in lib/.

Running the example SDK Drivers

To start a server with the example SDK Drivers using the CLI, and register the devices to the first Brain found on the network, run the command:

npm start

To connect to a specific Brain you can configure options for the CLI in the package.json file. For example to connect to a Brain with the ip of 10.0.0.42 change the line with brainHost to include the ip:

  "brainHost": "10.0.0.42",

Creating custom devices

There's 2 main parts:

1. the adapter definition: the adapter defines what the custom device can do. We use a factory to simplify the creation of a device, set the handlers and register it with a running Brain. This also exports your driver (allowing other tools like the CLI to run your driver)

2. the controller implementation: the controller needs to implement all the capabilities defined by the adapter. It then handles the events and interacts with the NEEO Brain when a device is added to the Brain.

You can find all the example devices in the lib directory. You can also find some of the drivers implemented by the community on NPM.

Publishing NEEO Drivers

If you implement a driver and share it with others we currently recommend publishing it to NPM as a module. Using the "neeo-driver-" prefix for the name will make it easy for others to find it.

The neeo-driver-example directory shows what a minimal self contained driver might look like.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].