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

outdated

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
0
pub points
0%
popularity

Publisher

verified publisherjeffmikels.com

A library to interface with the Onyx Lighting controller by Obsidian

Homepage

License

unknown (license)

More

Packages that depend on onyx_lighting