January 23, 20233 yr First of all a big thanks for the wonderful program! I am using the Webserver and I succeeded to write my first server page and can control now a LNM map with Axis and Ohs using an Xtouch Mini Controller. The test.html example was very helpful. The only question l have is if there is a way to get the airport information as .json object from the server. I saw a docu for an api interface in the web folder but was not successful to use it. I triedhttp://localhost:8965/api/airport/info?name=eddm Or is there a way to send a .json sql query object to the server to get information from the sqlite database via the server? Any help in form of an example would be very much appreciated.
January 24, 20233 yr I forwarded your question: https://github.com/albar965/littlenavmap/discussions/988 Alex Alex' Projects: Little Navmap
January 24, 20233 yr Answered. You can use "http://localhost:8965/api/airport/info?ident=eddm " to get airport information in JSON, for example Alex Edited January 24, 20233 yr by albar965 Alex' Projects: Little Navmap
January 24, 20233 yr Author Thank you so much for your help! With this example i understand now the webapi.yaml file and got also other calls working. This is great!
Archived
This topic is now archived and is closed to further replies.