-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
# pyeverlights | ||
# pyeverlights | ||
|
||
This project provides a simple Python3 module for interfacing with an [EverLights](http://myeverlights.com/) control box. | ||
|
||
## Example | ||
``` | ||
import pyeverlights | ||
import asyncio | ||
async def main(): | ||
el = pyeverlights.EverLights("10.0.0.100") | ||
# Set zone 1 to solid red | ||
await el.set_pattern(pyeverlights.ZONE_1, [0xff0000]) | ||
# Set zone 1 to saved pattern "Testing" | ||
await el.set_pattern_by_id(args.zone, "Testing") | ||
# Get control box status | ||
await el.get_status() | ||
await el.close() | ||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(main()) | ||
``` |