zwave 0.1.1 zwave: ^0.1.1 copied to clipboard
A Dart library for interacting with Z-Wave devices on RPi
zwave.dart #
zwave is a Dart library for interacting with Z-Wave devices.
Overview #
This Dart library uses the Open Z-Wave library to communicate with a compatible Z-Wave Controller and interact with Z-Wave devices.
Requirements #
-
A Z-Wave Controller such as the Aeon Labs Aeotec Z-Wave Z-Stick, Gen5 (ZW090).
-
The Open Z-Wave library used by this Dart library to communicate with the Z-Wave controller.
Setup #
Pair your Z-Wave controller with your Z-Wave devices, then install the Open Z-Wave library. Use the MinOZW example that is included in the Open Z-Wave library to ensure that the Open Z-Wave library is installed correctly and can communicate with your devices using your Z-Wave Controller.
Activate the zwave package using the pub global command.
pub global activate zwave
From your application directory (the application that references the zwave package) run the following command to build the native library
pub global run zwave:build_lib
pub global activate makes the Dart scripts in the zwave/bin directory runnable from the command line. pub global run zwave:build_lib runs the zwave/bin/build_lib.dart program which in turn calls the build_lib script to compile the native libozw_ext.so library for the zwave package.