openhaystack icon indicating copy to clipboard operation
openhaystack copied to clipboard

Automatically POST current location data to a private API?

Open Oliver-Saer opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. Great work on this, it looks brilliant. However, I'm wondering about its application outside of hobbyist pursuits. You have an option to export the application data as JSON, but this has to be manually triggered by the end user.

Describe the solution you'd like It would be great if the app could have functionality to automatically export current/new data to a private API configured by the user. This way the tool could have business application (ie; asset tagging), with the data feeding into the wider company digital infrastructure.

Ideally, the solution would allow the end user to specify an endpoint to which a JSON body containing the current/new data would be POSTed, alongside a chosen fixed interval or the option to POST whenever new data is captured.

Describe alternatives you've considered A decent halfway solution would be to simply allow the current facility for exporting data to be triggered automatically on a fixed interval. This way, at least you could write a simple script which POSTs this data to your private API without human intervention.

Additional context N/A

Oliver-Saer avatar Jan 31 '22 15:01 Oliver-Saer

Further to this, I have discussed the matter with acquaintances who are more familiar with the AirTag & Find My ecosystem than I am.

They have informed me that there is a limit of 16 AirTags per iCloud Account, which therefore would make the introduction of this change for the stated purposes (to increase its viability for business use) trivial and pointless.

Oliver-Saer avatar Jan 31 '22 19:01 Oliver-Saer

Hi @Oliver-Saer, the good thing with OpenHaystack is that you are not limited to the maximum number of tags that you can use. OpenHaystack tags are not connected to your iCloud account and they are therefore not limited.

I like your idea and it should be quite trivial to implement this. Nevertheless, we have currently a test environment that allows us to download the reports directly by using a simple API. So you would not have to go through OpenHaystack to make this possible.

Sn0wfreezeDev avatar Feb 01 '22 06:02 Sn0wfreezeDev

Hi @Sn0wfreezeDev,

Thank you for coming back to me regarding this, I wasn't aware of this fact so that's interesting to know.

Would it be possible that you could direct me to this testing environment? I would be really interested in trying this out in the case that you decide not to implement this in the wider application?

Oliver-Saer avatar Feb 01 '22 09:02 Oliver-Saer

@Sn0wfreezeDev i'm going to strongly second that request as well. that sounds like a dream, would love to have same test environment and pull just the reports directly.

"So you would not have to go through OpenHaystack to make this possible." - Meaning the test environment provides this? or you could just pull from apple directly like something from here: https://github.com/seemoo-lab/openhaystack/blob/f73c1ac63667a8766990fe0d9f51abc82907ec0a/OpenHaystack/OpenHaystack/ReportsFetcher/ReportsFetcher.m#L124

I mean, either way, would essentially love a little API that I could hit and pull the reports to process myself and push to a database of sorts. Is this the branch you're referring to?

https://github.com/Sn0wfreezeDev/openhaystack/tree/simple_server

Is there documentation on the API to pull from using simple_server?

Thanks for all your hard work.

The simple server allows you to pull encrypted reports. But I also have a version which decrypts them automatically for testing. I will see when I can publish that since the documentation there is currently missing completely.

Sn0wfreezeDev avatar Feb 21 '22 08:02 Sn0wfreezeDev