In testing this script on an updated version of X-plane, I found that the winds would change abruptly to the NOAA version as I climbed through the specified transition altitude, and that they would not reset to the airport METAR when I descended back through that altitude again. I don't think either effect is part of the expected behavior, but I wonder if you know what might cause it or whether you have tested on recent versions of X-plane. I can provide more details or run some debugging commands if you would like me to help look into this further.
In testing this script on an updated version of X-plane, I found that the winds would change abruptly to the NOAA version as I climbed through the specified transition altitude, and that they would not reset to the airport METAR when I descended back through that altitude again. I don't think either effect is part of the expected behavior, but I wonder if you know what might cause it or whether you have tested on recent versions of X-plane. I can provide more details or run some debugging commands if you would like me to help look into this further.