def volume(action,value=30)
      cmd =
      case action
      when :up then "volume 1"
      when :down then "volume 0"
      when :set then "volume #{value} 1"
      else return false
      end
      resp = command cmd, /Volume/
      resp.gsub("Volume: ","").gsub(" %\n","")
    end
def volume(action,value=30)
      cmd =
      case action
      when :up then "volume 1"
      when :down then "volume 0"
      when :set then "volume #{value} 1"
      else return false
      end
      resp = command cmd, /Volume/
      resp.gsub("Volume: ","").gsub(" %\n","")
    end
Increase/decrease volume
 :up increase volume
 :down decreases volume
 :set sets the volume at <value>