Add Weather Data to Ardupilot From Xplane

I need to graph wind speed and direction from Xplane along with rotation rate data from ArduPilot.

So I need to add the wind speed and wind direction UDP data from X Plane 10 to ardupilot. I’ve never used Perl before so with I don’t have a clue what I need to change.

How would I go about doing this?

Thank You.