Rx location not sent by stats scripts?

Discussion in 'Other technical not related to ADSBx Feeding' started by John MI0SYN, Dec 17, 2019.

  1. John MI0SYN

    John MI0SYN New Member

    Hi,
    Running the image on Pi and added the adsbexchange-statspackage from github to check my feeder remotely (might add a few more sites but can't have remote SSH on them so this is a good option)

    All looks good expect:
    1. Distance rings don't show (even though selected in the menu)
    2. Pressing the home button centres the map over northern Italy... I'm in UK.

    Think the contents of /run/dump1090-mutability/receiver.json aren't being sent, I can see the correct lat/long in there. Did a quick copy of the JSON files as they dropped into /tmp and they don't have the "version" or lat/long from the receiver.json.

    Can I just edit the script to add the contents to the generated JSON being sent to the site?
    If so, does it need to be at any particular location within the file.

    Thanks
    John.
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    The location is removed on purpose to avoid any potential for issues with privacy law stuff.

    In the mode tar1090 is running on the website with the UUID, it will ignore the receiver.json.
    (https://github.com/wiedehopf/tar1090#tar1090)

    I'm not sure why the receiver.json is even being sent to the website, maybe a misunderstanding.
     
  3. John MI0SYN

    John MI0SYN New Member

    Thanks for the explanation.

    The receiver location is not being sent. I thought that was a bug (which was breaking the home button and rings) but if it's intent that's OK.... can it be added to the readme though please?
     
  4. James

    James Guest

    Yeah this is purposeful to prevent some governments from murdering feeders / disappearing them / imprisoning their family / etc.

    Maybe we can add to that feeder interface at some point as a configuration option in the browser and save a cookie - but for now .. no locations for anyone ...
     
  5. John MI0SYN

    John MI0SYN New Member

    I hope that UUIDs aren't being shared by their owners in that case - it makes sense not to help the bad guys but the key information is the UUID/URL I think.
    We can approximate feeder location based on what it's displaying (it'll be roughly in the middle of the displayed planes assuming omni-directional antenna).

    That'd be a nice touch to have it as a cookie (or even allow lat/long to be manually added to the URL). Thanks.
     
  6. James

    James Guest

    In the URL is probably pretty easy to add to javascript range rings.