Atmospheric implosion, having a little fun with the dynamic weather system

So now we have @wxbot doing METAR and TAF, I wonder if a bit of LUA with some web calls could do cells of real world weather in DCS 2.0?

For the weather bot I used this:

http://avwx.rest/

A query looks like this:

http://avwx.rest/api/metar/KJFK

{
  "Altimeter": "3011", 
  "Cloud-List": [
    [
      "BKN", 
      "042"
    ]
  ], 
  "Dewpoint": "M02", 
  "Flight-Rules": "VFR", 
  "Other-List": [], 
  "Raw-Report": "KJFK 281651Z 30024G29KT 10SM BKN042 09/M02 A3011 RMK AO2 PK WND 31036/1623 SLP197 T00891022", 
  "Remarks": "RMK AO2 PK WND 31036/1623 SLP197 T00891022", 
  "Remarks-Info": {
    "Dew-Decimal": "-2.2", 
    "Temp-Decimal": "8.9"
  }, 
  "Runway-Vis-List": [], 
  "Station": "KJFK", 
  "Temperature": "09", 
  "Time": "281651Z", 
  "Units": {
    "Altimeter": "inHg", 
    "Altitude": "ft", 
    "Temperature": "C", 
    "Visibility": "sm", 
    "Wind-Speed": "kt"
  }, 
  "Visibility": "10", 
  "Wind-Direction": "300", 
  "Wind-Gust": "29", 
  "Wind-Speed": "24", 
  "Wind-Variable-Dir": []
} 

But it can also use a lat/long for areas too, although I guess it locates the nearest METAR?:

http://avwx.rest/documentation

http://avwx.rest/api/metar/51.47,-0.4?options=info,translate

So McCarran lat long forecast would be something like this:

http://avwx.rest/api/taf/36.08,-115.16

Anyway, thought I’d record that here if anyone wanted to run with that.

1 Like