Have you ever wanted to fly in a remote area of the world, far from any airport where no METAR is available? Take off from an aircraft carrier in the middle of the ocean experiencing the winds which are blowing there? Fly in the middle of a hurricane?
The answer is to fetch local weather data from a service like OpenWeatherMap (https://openweathermap.org/). One has to register to it (it's free) and get an API key and use this (although very basic) program I made https://github.com/gualtieromalde/owmread to do the work (every 10 seconds, get the position from FG, read the weather data, build a METAR message and access the FlightGear properties to write it). In the ReadMe there are all the info needed to run it along FG.
Any comments/questions/criticism are welcome! Have nice flights!