mutability / dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices
528 stars 137 forks source link

How to get a selected aircraft in a json-file #210

Closed audi2010 closed 7 years ago

audi2010 commented 7 years ago

I user Dump1090-mutability with a Raspi3 and NooElec NESDR Nano 3. It works great. Now I want to save the browser-selected aircraft in a file "selected.json" in /run/... Script.js on Row 607 shows "selected = Planes[SelectedPlane]" Is there a way to change this script, so save the selected plane and update, if the function is called?

mutability commented 7 years ago

No, because the browser has no way to write files on the Pi.

audi2010 commented 7 years ago

Thank you, for your very rapid answer. My hope was, to get this date, to controll 2 servos with a camera, controled by a wemos mini.

mutability commented 7 years ago

You might want to set up an ajax endpoint that the browser can POST to when the selection changes and capture it that way

audi2010 commented 7 years ago

After two weeks searching and trying an other way to get position-data from aircraft.json over php, My Problem is, I don't know, how to setup an ajax endpoint. Is there an easy way, to do this with my miserable knowledge ?