onyx_lighting 0.0.5 copy "onyx_lighting: ^0.0.5" to clipboard
onyx_lighting: ^0.0.5 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
140
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