1.0.0 • Published 10 years ago
orvibo-socket-cli v1.0.0
Orvibo Socket CLI
Description
A node.js module to control an Orvibo Socket from the command line.
Install
To install the library globally use
npm install -g orvibo-socket-cli
Controlling from Command line
Note: You must know the ip address and mac of your socket. I suggest you set a static ip assignment on your router.
orvibo-socket-cli -i <ip> -m <mac> statusCheck Status of Socketorvibo-socket-cli -i <ip> -m <mac> offTurn off socketorvibo-socket-cli -i <ip> -m <mac> onTurn on socketorvibo-socket-cli -i <ip> -m <mac> toggleToggle the socket
Controlling OctoPrint
To use the above library in OctoPrint, make sure you install it globally as above. Then add the following to the ~/octoprint/config.yaml
system:
actions:
- action: printer on
command: orvibo-cli --uuid SOCKET_MAC_ADDRESS_HERE --action on
name: Turn on the printer
- action: printer off
command: orvibo-cli --uuid SOCKET_MAC_ADDRESS_HERE --action off
confirm: You are about to turn off the printer.
name: Turn off the printerThat's all there is to it :-)
1.0.0
10 years ago