You can use this software to control your Nanoleaf lights in a more convenient way.
So you might ask, why just don’t use the official Nanoleaf app for mobile or desktop? Well, I don’t really like the app. I’m not a big fan of the concept that you are limited to the relatively low maximum amount of effects that can be stored locally on a device.
And for each effect you have to…
This process takes a lot of time, and you are not able to perform quick adjustments for an effect.
I have a completely different approach to control the Nanoleafs. My idea is to create the effects live, on-the-go, for that I take advantage of the Nanoleaf Devices OpenAPI function to display effects temporary on the Panels without saving it as an Effect.
In the user interface (powered by NiceGUI) you have the agony of choice about 1000 popular color palettes. Besides that you have an edit palette where you can adjust the colors and rearrange the order of the colors. You have also access to every Effect including their respective effect options.
settings.json
Install Python
Get it from the official homepage
Download the repository
manually from here
or with
git clone https://github.com/RobinSchfr/Lightning-control-for-Nanoleaf.git
Install all dependencies
pip3
when you are using mac os
pip install -r requirements.txt
python3
when you are using mac oscd <dir>
) python src/main.py
The app is now available through http://127.0.0.1:8080/ in your browser.
Device setup
Go to Settings
> Developer options
Get IP from device
(This may take up to 2 minutes.)Create token
Connect
Now you are ready to go!
You have the option to change from browser mode (default) to native mode. In the native mode the app has a dedicated window.
To enable native mode go to settings.json
file and set native_mode
to true
.
The software especially the unit which creates the effects is only tested on Nanoleaf Shapes.
It might not work properly on Nanoleaf Lines, Nanoleaf Canvas or Nanoleaf Light Panels.
Feel free to contribute something! This is my first real open source project. Looking forward to get some feedback!
Coming soon…