![]() |
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| Gauges Use this forum for all your gauges related discussions |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Gauge to display Metar data
I am looking for a way to display "current location" Cloud levels, in my own XML Gauge.
A more general purpose Gauge to display weather at any Airport would beeven better. Note: I am looking for FSX weather, not from metars downloaded from some external source. Initially, I am looking for a way to get Cloud Base, into a L:Var, that I can then display in my own XML gauge. Any Ideas or Pointers (short ow writting a very comlex simconnect application , to read FSX metars !!! not an easy task -- !! ) Geoff |
|
#2
|
|||
|
|||
|
In hindsight, decoding FSX metars as obtained by simconnect, would appear to be one of the most COMPLEX Simconnect application, one could imagine.
Probably explains why so few have tried it, or have expereinece in this subject. Just getting, say a simple 1st Cloud base height, into an XML Gauge, would appear to be a Massive task !!
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#3
|
||||
|
||||
|
You're right, this is not a trivial task. I have a block of code, somewhere, to do it. Never got as far as moving the data in to XML. The efficient (although rather complex) way to do that would be to use a module, built on the Cabin Comfort example; the alternative would be to declare a few hundred L:Vars.
I'm goint to go out on a limb here, and offend all the XML programmers present. This just isn't something that XML should ever get anywhere close to...Doug |
|
#4
|
|||
|
|||
|
Quote:
LOL .. I think most XML programmers are THICK SKINNED. (They would have to be to deal with FSX's XML !!) Anyway... What I was wanting to do was simply add a numeical display of CLOUDBASE to a simple "GROUND RADAR" XML gauge that was already able to display other MET data, like Wind, Temperature, Viz, Rain/snow etc. These are all readly avaiable to XML. But CLOUD info is NOT. In Hindsight, another more UNIVERSA: solution would be to obtrain those parameters from FSUIP. ( let FSUIP do all the hard Simconnect weather decodeing) One is then left with the problem "How to display FSUIPC variables in XML". Maybe the answer is a more simple C++ module, that reads a Config file, containing FSUIP variables, and LVAR names, and then keeps those LVARS updated with the FSUIPC values. (Or am I missing some easier way to read FSUIPC variables with XML ? ) If not, maybe someone already has developed a FSUIP2XML module. ? Geoff
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#5
|
||||
|
||||
|
There is available for Fs9 a module http://library.avsim.net/search.php?...root&Go=Search
If you're any good at untangling the code within it might give you some ideas. vololiberista |
|
#6
|
|||
|
|||
|
Quote:
METARlive is a FS 2004 add-on module that allows you to quickly access real-world metar (weather) information for any airport that offers weather observations. METARlive appears as a single or multi-line display at the top of the main window. This module was mainly implemented due to FS's lack of ATIS availability during multiplayer sessions. Thanks, but NO, that gets REAL WORLD WEATHER METARS -- I am looking to get the weather that is currently in FSX, and get it out into my own XML gauge.
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#7
|
|||
|
|||
|
Quote:
Simconnect works well -in general- inside a gauge though I never tested the METAR functions; it is supposed that they should work like the rest, but....with FSX you never know till you try ![]() Tom |
|
#8
|
|||
|
|||
|
Quote:
Yes, you obviously have not looked at the FSX "enhansed/non-standard" metar format. A real PITA to decode !! Thats why I was favouring going the FSUIPC way .. Clever Mr Pete has already decoded them nicely into FSUIPC variables.
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#9
|
|||
|
|||
|
Quote:
![]() ![]() IF it works, and I hope it does, shouldn't be much difficult to parse in the C++ gauge using proper functions. As I stated before, the logic should be simple even though it may need a lot of (tedious) coding. Tom |
|
#10
|
|||
|
|||
|
Doesn't Tim (Beatle)'s SimConnect library come with a sample that can read the local METAR from FSX? Or is the issue more of decoding it?
Edit: I recalled a thread (http://www.fsdeveloper.com/forum/showthread.php?t=30290) with some code to decode a FSX METAR, but it appears the file is no longer available. Further down the thread there's a post by AndyWoz with a Pascal project intended for that purpose, though. Last edited by ollyau; 23 Aug 2012 at 23:01. |
|
#11
|
|||
|
|||
|
Quote:
I've bult a small invisible C++ gauge that retrieves nearest airport METAR and parses its cloud types and levels, just for testing purposes. If you're interested I can send you the .dll and/or the code so you can have a reference point for your project. Or, if you are more specific on your needs, I can assign Lvar variables with METAR info inside the C++ gauge so that you can get them in your own XML code. Tom |
|
#12
|
|||
|
|||
|
Out of curiosity, I'd be interested in seeing the code.
|
|
#13
|
|||
|
|||
|
Quote:
Thanks for your generous offer of assistance. I sent you a PM with my email address. Geoff
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#14
|
|||
|
|||
|
Quote:
Having started the process of decoding the FSX metar staring, as obtained from FSX, by Simconnect, it is my impression, that the returned string does NOT contain, all the expected weather parameters, that wone would expect, even though they are displayed in the sim ?? ie The I or VC (weather conditions), Cloud Layer Thickness. ie. If FSX airport clearly has a massive Thunderstorm overhead, there is no report of that in the returned metar string !! Were you able to decode thses, and did you ever get any of these set, when you obtained a Weather Stations weather, via simconnect ?
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#15
|
||||
|
||||
|
Geoff,
One thing I discovered is that all of the possible sections of the extended METAR string are not necessarily present in any given retrieved string. I haven't looked at this project in a good long while, but I seem to recall that the data being returned were at least reasonable. I'll see if I can find the thing. Doug Quote:
|
|
#16
|
|||
|
|||
|
Quote:
It appears that while a lot of weather conditions are SETTABLE by simconnect, a much smaller subset actually get returned in a read metar string. Will be interested to hear if you experience the same, if you find your decoder Geoff
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
|
#17
|
||||
|
||||
|
Quote:
You might want to write the METAR data out to a file, and decode it by hand, just to get an idea of is being returned. I can certainly send you the source code for the class that I wrote. It will be heavy going though - its only 2200 lines... ![]() Doug |
|
#18
|
|||
|
|||
|
Quote:
SKY CONDITIONS CCCNNN has no parameter to indicate Thunderstorm. Neither does it's FS Extention &TT000FTPQBBBI "Frustrationg" when PRESENT CONDITIONS is never returned !! ------------------------------ Progress -- so far. Radar Airport Information Gauge.
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) Last edited by Geoff_D; 06 Sep 2012 at 09:36. |
|
#19
|
|||
|
|||
|
Quote:
NTT&TT000FTPQBBBI for TT = CB, and N = broken or greater. In the CCCNNN format , when Cumulonimbus are present the string changes to CCCNNNCB Tom |
|
#20
|
|||
|
|||
|
Quote:
But Ewwwwwwwwww.. Nasty !!! So in FSX, EVERY "broken or Overcast" Cumulonimbus is causing an active Thunderstorm ?? FSX Atis seems to be able to determine if the Thunderstorm is Moderate or Severe. Is it a case that if ANY Cumulonimbus is set in the weather, to be "broken or Overcast", it will always cause FSX to produce the Thunder/Lightening effect, or is there really a more precise control ? The more I look at FSX weather, the less I am impressed. Hopefully Lockheed will consider correcting some of these features in later versions of P3D. So, for the time being, I will assume, if there is "broken or Overcast" Cumulonimbus, then it is probably a Thunderstorm "in the Vicinity" I guess this is what REAL Pilots assume as well, to be safe !!
__________________
______________________________________ Geoff ![]() The FS-MP FSX & P3D Multiplayer Servers provide a realistic environment, for both Pilots and Controllers to experience the challenges of flying together, ( FSMP Servers with S.A.F.E. © - Server Automatic Flood Elimination) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FSX] Display Gauge on separate screen | Speedbird | SimConnect | 5 | 01 Jul 2011 11:52 |
| [FS2004] RPM gauge show wrong data | Bambi_007 | Gauges | 7 | 22 May 2011 05:32 |
| Creating a gauge for a mission? Want my C# application to display variable on gauge! | joeysipos | Gauges | 1 | 18 Aug 2009 15:11 |
| Display a gauge in external view | rightnumberone | Gauges | 1 | 22 Jan 2009 20:52 |
| Converting Raw Digital Elevation Data Aquired aquired from USGS for FSX | joeysipos | FSX terrain | 15 | 09 May 2008 20:17 |