Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Nanoleaf CLI controller written in PHP

License

NotificationsYou must be signed in to change notification settings

erikaheidi/minileaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minileaf screenshot

A CLI PHP application to control Nanoleaf panels, using the Nanoleaf OpenAPI.

You'll need to know the IP address of your Nanoleaf controller.

On Linux (Ubuntu), you can use thearp-scan utility to scan for devices connected to your network:

sudo arp-scan -l --interface=wlp2s0

Changewlp2s0 to the name of your current wifi device, find out withip a.

Minileaf is a highly experimental project, use at y our own risk.

Setup

You'll need PHP 7.4+, Curl, Json, and Composer.

Clone this repository:

git clone
cd minileafcomposer install

Connect to a Device

./minileaf device connect

This will prompt you for the device's IP address, and an identifiable name that you will use to manage this device later on, for instanceoffice orliving.

Once this information is passed on, it will wait for you to hold the power button on your Nanoleaf control panel for 5 seconds. PressENTER to continue.

When the pairing is finished, you'll should see asuccess message. Then you're ready to control the panel via commands.

Power

Power on

./minileaf power on device-name

Power off

./minileaf power off device-name

Brightness

brightness-value can be a value from0 to100, where100 is fully bright and0 is off.

./minileafset brihgtness device-name brihgtness-value

Effects

List Effects

./minileaf device effects device-name

Set Effect

./minileafset effect device-name"Effect Name"

About

Nanoleaf CLI controller written in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp