Hi Ian,
I don't have any experience with scripting to produce a CWOP data submission .. sorry.
The format for the text string should likely not include blanks, but be zero-filled for all numeric variables.
Compare my posting via Weather-Display to yours:
CW1792>APRS,TCPXX*,qAX,CWOP-2:@261942z3716.48N/12201.38W_164/003g008t056r000p004P000b10190h56L392.WD 31
DW9787>APRS,TCPXX*:@212002z5088.76N/00119.53W_122/ 6g 9t -2r...p...P...h91b...CitectSCADA
I suggest the developer use ftp://ftp.tapr.org/aprssig/aprsspec/spec/aprs101/APRS101.pdf as the guide for formatting the APRS weather report string.
Best regards,
Ken