Giter Club home page Giter Club logo

nanoleaf-simulator's Introduction

Nanoleaf Simulator

This is a simple simulator for the Nanoleaf Aurora and Canvas made to help developers with testing their code. The simulator does not support api endpoints related to dynamic or rhythm effects. External streaming however is supported.

Usage

The simulator can be interfaced with in exactly the same way as a physical Nanoleaf device through the OpenAPI. However, the simulator will not broadcast it's address to other applications. The default HTTP port for the simulator is 7144 and the default UDP (used for external streaming) port is 7143.

Assuming you are running the simulation locally, you can first make a GET request to http://localhost:7144/api/v1/new which will return an API key. You do not have to demonstrate physical access to the simulator like you would on a physical device. Keys are stored locally in the simulator until cleared manually. Once you have an API key, you can make other API calls normally as http://localhost:7144/api/v1/[endpoint].

Screenshots

Changing the Layout

Right now, layouts are defined in files with the .nleaf extension in plain text that use the following format. You may define as many panels as you like.

type <Aurora/Canvas>
panel <id> <x> <y> <orientation>
panel <id> <x> <y> <orientation>
panel <id> <x> <y> <orientation>
...

You may define as many panels as you like in this format. See example.nleaf and example2.nleaf for examples.

If I ever get around to it I will probably add an editor feature to allow the panels to be added/removed and rearranged within the simulator.

nanoleaf-simulator's People

Contributors

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