RedXi / vatsimbrief-helper

X-Plane Lua Plugin supporting VR pilots with their Simbrief flight plan and live frequency information from VATSIM
MIT License
6 stars 0 forks source link

VATSIM Information service N/A #7

Open RedXi opened 3 years ago

RedXi commented 3 years ago

ATC frequencies and airplane positions do not load from VATSIM network as they changed the endpoint. The new endpoint provides the information in a diffent format (JSON instad of CSV). It also uses HTTPS instead of HTTP, which is currently not supported by FlyWithLua.

  1. As a temporary fix, disable the ATC window which is not functioning at the moment.
  2. Find a solution to fetch URLs with TLS.
urbanswelt commented 3 years ago

Has nothing todo with FwL per se , it`s a Pain in the A.... to Implement SSL / luasec things in this case to support all OS ;-)

Think like this, this is what i use to update my Script´s --> found in WWW

`local query = nil local url = xsil_Github.domain .. xsil_Github.activbranch .. xsil_Github.filename-- Validation API URL -- check if windows or not windows if package.config:sub(1,1) == "\" then -- TODO fix the annoying cmd window that pops up here query = io.popen("powershell (wget " .. url .. ").Content", "r") else -- not windows, assuming posix query = io.popen("curl -s '" .. url .. "'", "r") end

local httpsResult = query:read("*all")
query:close()

end`