Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkmassel/acnkit
A library for working with streaming ACN in Swift
https://github.com/jkmassel/acnkit
acn dmx dmx512 sacn swift
Last synced: 2 months ago
JSON representation
A library for working with streaming ACN in Swift
- Host: GitHub
- URL: https://github.com/jkmassel/acnkit
- Owner: jkmassel
- License: gpl-3.0
- Created: 2018-07-17T03:49:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T19:11:22.000Z (almost 5 years ago)
- Last Synced: 2024-07-30T18:08:47.026Z (6 months ago)
- Topics: acn, dmx, dmx512, sacn, swift
- Language: Swift
- Size: 40 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ACNKit
A simple library for working with streaming ACN in Swift.
Heavily relies on the fantastic [libe131](https://github.com/hhromic/libe131) library.
#### Examples
Create a universe and listen for channel value changes.
```swift
let universe = DMXUniverse(number: 1)
universe.listener = { universe in
let channel1Value = universe.valueForChannel(1)debugPrint(channel1Value.percent) // Get the value of a channel as a percent.
debugPrint(channel1Value.absoluteValue) // A UInt8 with the value between 0 and 255.
}universe.startListeningForChanges()
```
#### Troubleshooting
**My listener is never called**
You'll need to have a device (likely a lighting console) generating an sACN stream on your local network before you'll be able to use this library.#### Known issues
- [ ] This library doesn't always work properly on devices with more than one network interface.
- [ ] Channel values are currently only read-only.
- [ ] Tests are lacking
- [ ] The logs are pretty chatty - this will be replaced by hooks