avitab icon indicating copy to clipboard operation
avitab copied to clipboard

METAR not available in XP12

Open argonius-ch opened this issue 3 years ago • 2 comments

In XP12 the current METAR is no longer in METAR.rwx and thus AviTab 0.5.1 will not display METAR info.

argonius-ch avatar Sep 12 '22 09:09 argonius-ch

If you don't know that already, METARs are now in X-Plane 12/Output/real weather/ folder, with naming format METAR-year-month-date-hours.minutes-ZULU.txt

airfightergr avatar Sep 12 '22 10:09 airfightergr

Thanks, I'm aware of that. However, I was informed by LR that it's not a good idea to simply load the latest TXT from there. There are many edge cases where this is wrong, for example when setting up a flight in the past or when pausing the simulator. LR will add a new dataref to export the currently used file, the fix has to wait for that.

fpw avatar Sep 12 '22 16:09 fpw

This is now tracked at LR as XPD-13331.

fpw avatar Nov 03 '22 17:11 fpw

While waiting for LR to solve XPD-13331, this can serve as a convenient workaround: https://github.com/biuti/XplaneNoaaWeather/releases/tag/v12.0.0-alpha.5

argonius-ch avatar Nov 16 '22 09:11 argonius-ch

XPD-13331 has now been fixed by Laminar, but the solution is a new plugin API and there is no new plugin SDK with these functions yet. Also, this will mean that AviTab won't be compatible with X-Plane 11 anymore if I start using that API. Will think about doing two versions or focusing on XP12 only.

fpw avatar Dec 28 '22 17:12 fpw

LR has release v4.0.0 SDK that support simply access to METAR

CrazyKnightGR avatar Feb 17 '23 15:02 CrazyKnightGR

It is still not there as far as I see. The SDK 4.0.0 Beta 1 is from last September. (https://developer.x-plane.com/sdk/plugin-sdk-downloads/)

jonaseberle avatar Feb 21 '23 08:02 jonaseberle

It is still not there as far as I see. The SDK 4.0.0 Beta 1 is from last September. (https://developer.x-plane.com/sdk/plugin-sdk-downloads/)

Doesn't matter the developer of AviTab would find it (API XPLM_64 was updated -library-)

Public Beta – 12.04b1 ......... XPD-13421 – Simple SDK Weather API – METAR Access + lat/lon weather fetch. .........

XPLMGetMETARForAirport XPLMGetWeatherAtLocation

CrazyKnightGR avatar Feb 22 '23 15:02 CrazyKnightGR

Implemented this now, it will be part of the next AviTab release that's coming out soon.

fpw avatar Mar 11 '23 00:03 fpw