onyx_lighting 0.0.6 copy "onyx_lighting: ^0.0.6" to clipboard
onyx_lighting: ^0.0.6 copied to clipboard

A library to interface with the Onyx Lighting controller by Obsidian

example/main.dart

import 'package:onyx_lighting/onyx.dart';

void main() async {
  final onyx = Onyx(
    OnyxSettings(
      ip: '192.168.50.13',
      port: 2323,
      useTelnet: true,
    ),
  );

  onyx.sortCueListsBy = OnyxSortPreference.byNumber;
  if (await onyx.connect()) {
    print('AVAILABLE CUELISTS --- ');
    if (onyx.cueLists.isNotEmpty) onyx.cueLists.first.isFavorite = true;
    for (var cl in onyx.cueLists) {
      print(cl);
      cl.updates.listen((_) {
        print(cl);
      });
    }
  }
}
1
likes
120
pub points
0%
popularity

Publisher

verified publisherjeffmikels.com

A library to interface with the Onyx Lighting controller by Obsidian

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on onyx_lighting