Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically POST current location data to a private API? #92

Open
Oliver-Saer opened this issue Jan 31, 2022 · 5 comments
Open

Automatically POST current location data to a private API? #92

Oliver-Saer opened this issue Jan 31, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Oliver-Saer
Copy link

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 Oliver-Saer added the enhancement New feature or request label Jan 31, 2022
@Oliver-Saer
Copy link
Author

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.

@Sn0wfreezeDev
Copy link
Member

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.

@Oliver-Saer
Copy link
Author

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 Oliver-Saer reopened this Feb 1, 2022
@TylerHallPureEngineering

@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:

- (void)queryForHashes:(NSArray *)publicKeys

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.

@Sn0wfreezeDev
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants