Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joncar authored Jan 6, 2019
1 parent 7084ba0 commit 8d95af8
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
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())
```

0 comments on commit 8d95af8

Please sign in to comment.