Nanoleaf Discovery
Nanoleaf Discovery is a Python library to discover every nanoleaf device on the network, the others api use the ssdp protocol to find the nanoleafs, the drawback is that it doesn't work every time so I used the api that the official nanoleaf app uses to find the nanoleafs, this one always works /!\ except with a vpn /!\
Installation
Use the package manager pip to install Nanoleaf Discovery
pip install NanoLeafDiscovery
Or here
/!\ REQUIRE [SOCKET] AND REQUESTS /!\
Options
You can manage different parameters :
| Options | What it does | Value |
|---|---|---|
| ip | Display IPV4 | True/False |
| name | Display Nanoleaf Name | True/False |
| type | Display Canvas/Shape/Aurora | True/False |
| ipv6 | Display IPV6 | True/False |
| ssid | Display the ssid | True/False |
| bssid | Display the bssid | True/False |
| timeout | Request time before timeout | Int |
| _id | ID of the nanoleaf | True/False |
| debug | If error display it | True/False |
Usage
from NanoLeafDiscovery import nano
nano.discover() # returns [{'ip': '192.168.1.1'}]
nano.discover(name=True) # returns [{'ip': 192.168.1.1, 'name': 'Canvas-f77e'}]
nano.discover(name=True, type=True, ip=False) # returns [{'name': 'Canvas-f77e', 'type':'Canvas'}]
License
Change Log
0.0.4 (10/01/2020)
- Update Readme
Metadata
Release files for NanoLeafDiscovery 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| NanoLeafDiscovery-0.1.0.tar.gz | 3.7 kB | Without provenance | Details for NanoLeafDiscovery-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| NanoLeafDiscovery-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for NanoLeafDiscovery-0.1.0-py2.py3-none-any.whl |
Total release size: 7.6 kB
Release files / NanoLeafDiscovery-0.1.0.tar.gz
| Download URL | NanoLeafDiscovery-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f92785b5d46dec2bde11405cf808fdde0003aaeda6a3d5877f5aca90a8bdee3
|
|
BLAKE2b-256 checksum How to use checksums |
87f6a2d4c10be82c2f249baab721b1762e920cf43774f86a8c829be83c55e6c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
|
Release files / NanoLeafDiscovery-0.1.0-py2.py3-none-any.whl
| Download URL | NanoLeafDiscovery-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bbd2a89052055437c390f7eb532152dc5909be16380cd42518d3603c91831407
|
|
BLAKE2b-256 checksum How to use checksums |
27ef535b233656963093bb0c81e9481511c1b9a0a3d08387ba8da64a4bd40e27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
|
Security for NanoLeafDiscovery 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.