vatis-project / vatis

Virtual Automated ATIS Generator for VATSIM
https://docs.vatis.clowd.io
GNU General Public License v3.0
36 stars 16 forks source link

Removing QNH Prefix on PRESSURE_INHG and PRESSURE_HPA #98

Closed mythicfci closed 1 year ago

mythicfci commented 1 year ago

@justinshannon Thanks for looking into #71!

Unfortunately, the feature as added isn't great for the purpose originally described in #71, since both [PRESSURE_INHG] and [PRESSURE_HPA] generate the prefix "QNH."

E.g., if I were trying to make an ATIS with both the hPa values and the InHg values (like the one in the recording from my original post) using the syntax [PRESSURE_HPA] HECTOPASCALS, [PRESSURE_INHG] INCHES, it ends up generating text like "QNH 1013 HECTOPASCALS, QNH 29.92 INCHES."

Is there a way to optionally remove the QNH prefix (e.g., in the same way that appending "surface wind" is an option that can be turned off) in order to fix this? The intention is to make an ATIS where I can use the syntax QNH [PRESSURE_HPA], [PRESSURE_INHG] to produce text like "QNH 1013 HECTOPASCALS, 29.92 INCHES."

justinshannon commented 1 year ago

Hi @mythicfci,

Thanks for for your feedback. Would you mind giving this version a try? https://vatis.clowd.io/files/vATIS-Setup-4.0.0-beta.6+0c6d58d.exe

The [PRESSURE_HPA] and [PRESSURE_INHG] will only return the converted pressure value. This way, you can define QNH [PRESSURE_HPA] HECTOPASCALS, [PRESSURE_INHG] INCHES in your ATIS template.

Let me know your results, and if this change will suffice your needs.

mythicfci commented 1 year ago

Hi @justinshannon, that version works much better in this respect — thank you so much!

justinshannon commented 1 year ago

Excellent, this will included in the next release.