Allows for the control of Wemo switches on a local network.
To build:
- cd into cloned dir
swift build
This generates you an executable file in .build/debug/Wemo
A config file can be created instead of remembering IPs for devices. This allows you to assign meaningful name for a device. To create a config file simple run 'wemo setup'.
This enables you to refer a device using an alias.
wemo on hall-light
To run the wemo script globally add a bin folder in your home directory and link it in your bash profile.
export PATH=$PATH:$HOME/bin
Place the wemo executable in the folder. This will allow you to run Wemo [command] globally.
wemo off bedroom-light
Dont forget to source against your profile :)