       console.log "BatteryLevel: #{res.dataPacket.array[0]}"
       theta.disconnect()
 
+parser.on 'get_volume', ->
+  theta.connect()
+  theta.once 'connect', ->
+    theta.getProperty 0x502C, (err, res) ->
+      if err
+        console.error err
+        return process.exit 1
+      console.log "AudioVolume: #{res.dataPacket.array[0]}"
+      theta.disconnect()
+
+parser.on 'set_volume', (opt, volume) ->
+  theta.connect()
+  theta.once 'connect', ->
+    theta.setProperty 0x502C, volume, (err, res) ->
+      if err
+        console.error err
+        return process.exit 1
+      theta.getProperty 0x502C, (err, res) ->
+        if err
+          console.error err
+          return process.exit 1
+        console.log "AudioVolume: #{res.dataPacket.array[0]}"
+        theta.disconnect()
+
 if process.argv.length < 3
   parser.on_switches.help.call()
 

  ['--save [FILENAME]', 'save picture']
  ['--delete [Object ID]', 'delete a picture']
  ['--battery', 'check battery level']
]

parser.on 'help', ->

    % theta --list
    % theta --id [object_id] --save out.jpg
    % theta --delete [object_id]
    % theta --battery
    % theta --get_volume
    % theta --set_volume 20
    % DEBUG=* theta --capture  # print all debug messages
  """
  console.log parser.toString()
