项目作者: NotBlue-Dev

项目描述 :
Simulate Nanoleaf and use them with api
高级语言: JavaScript
项目地址: git://github.com/NotBlue-Dev/virtualNanoleaf.git
创建时间: 2021-05-11T16:00:52Z
项目社区:https://github.com/NotBlue-Dev/virtualNanoleaf

开源协议:MIT License

下载


(I used var on this project, what a shame)

NanoVirtz

NanoVirtz is a Nanoleaf Emulator allowing you to do api request and render it in real time, so you can test your external scripts for nanoleafs on different layout

Installation

Download the installer here https://github.com/NotBlue-Dev/virtualNanoleaf/releases

Use custom layout

Just click create a new layout on the menu or choose a default one

How to request the api

the requests are made like the official api, except that instead of putting the ip of your device, you must put localhost
Eg (create new token):

  1. http://localhost:16021/api/v1/new

There is a default token if you face issue :

  1. VirtualDevToken

Api difference

This project is a recreation of the nanoleaf api, (https://forum.nanoleaf.me/docs) therefore some functions are not implemented, here is the list:

  • External Control (UDP) but animData are implemented
  • Rythm
  • Event
  • mDNS discovery

Finaly, I didn’t like my implementation of some of the effects, so I decided to redo them, therefore the effects are missing:

  • Flow
  • Wheel
  • Fade
  • Explode

Only these one are implemented:

  • Random
  • Highlight
  • Custom Anim Data

I’m doing my best to reimplement the missing effects, some will come in the next update.

How it look

Renderer
Capture
Layout Editor
Capture
New Menu
2

Quick Demo

https://youtu.be/KphMoSbREWo

Know issue

  • SSDP Search show more than 1 virtual nanoleaf
  • Some transitions are glitchy (colors appear from the last effects)

License

MIT