Functions linking, orientation and angle

SO

I have a curve deformer

i want to link the orientation function to the rotation angle of another drawing/peg

Is there a way to convert the orientation to rotation value?
Any other way to do this