Change the following:
var Weatherbox[3];
to:
VECTOR Weatherbox;

A Vector have the elements x,y,z. (ANGLE for pan,tilt,roll / COLOR for red,green,blue)