Aero GPS Recorder APP
System awaryjny do rejestrowania śladów konkursów ULM.
Wygenerowane pliki są w formacie CSV. Mogą być przesyłane na serwer za pośrednictwem usługi internetowej bardzo łatwe do wdrożenia.
Adres URL usługi internetowej można konfigurować.
Przykład usługi webowej PHP:
ob_start ();
$ sRepTraceGPS = "myrep";
$ json = array ("success" => true);
$ jsonDataIN = json_decode ($ _ POST ["json"], prawda);
for ($ f = 0; $ f {
$ sFileBase = $ sRepTraceGPS. "/". $ JsonDataIN [$ f] [ "nazwa_pliku_logu"];
file_put_contents ($ sFileBase, $ jsonDataIN [$ f] ["zawartość"]);
}
$ json ["nb_trace"] = count ($ jsonDataIN);
ob_clean ();
header ("Content-type: text / html; charset = utf-8");
echo json_encode ($ json);
?>