sharedflight / issues-tracker

Public Issues Tracker For Shared Flight
0 stars 0 forks source link

Simbrief Integration #97

Open justinsnapp opened 2 years ago

justinsnapp commented 2 years ago

Add to Preferences in Shared Flight a field for user to enter either their username or userid...

Pull from https://www.simbrief.com/api/xml.fetcher.php?username=jsnapp&json=1

Or from https://www.simbrief.com/api/xml.fetcher.php?userid=999999&json=1 (if user has entered all numeric user id)

json["files"]["directory"] = "https://www.simbrief.com/ofp/flightplans/" json["files"]["pdf"]["link"] = "KSEAKMIA_PDF_1665167110.pdf"

json["fms_downloads"]["xpe"]["link"] = "KSEAKMIA_XPE_1665167110.fms"

For custom ones can add a FMS_SIMBRIEF_FORMAT line in config...

FMS_SIMBRIEF_FORMAT xfm xfmc FMS_SIMBRIEF_FORMAT ufc ufmc FMS_SIMBRIEF_FORMAT rmd Rotate MD 11 ixg IXEG 737 inb Inibuilds kml Google Earth KML file ffa Flight Factor A320 vm5 Flight Factor 757 v2 vmx Flight Factor 767