dchristl / macless-haystack

Create your own AirTag with OpenHaystack, but without the need to own an Apple device
GNU General Public License v3.0
408 stars 66 forks source link

Python support #11

Closed stiller-leser closed 1 year ago

stiller-leser commented 1 year ago

Hey,

I hate to be that guy, but would this work with the original Python implementation @ https://github.com/seemoo-lab/openhaystack/tree/main/Firmware/Linux_HCI ? I am fairly technical, so I'd be happy to help :)

I would love to get this to fly on a Raspberry ;)

Best, stiller-leser

dchristl commented 1 year ago

Hello @stiller-leser , I think you mean advertising with the raspberry and viewing with headless haystack? This should work, because it is fully compatible to the original open haystack. If you mean to run the server on a raspberry then sadly no. The device is to weak to run mac os. Regards, Danny

stiller-leser commented 1 year ago

Hi Danny,

RightI should have been clearer. I indeed meant the advertising part. How different is you esp implementation from the open haystack python script?

If I interpret it correctly the only difference is that your script is able to randomly choose a key, right?

Have a great (almost) weekend, Kaj

Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg


From: dchristl @.> Sent: Thursday, May 18, 2023 10:42:09 AM To: dchristl/headless-haystack @.> Cc: Kaj-Sören Mossdorf @.>; Mention @.> Subject: Re: [dchristl/headless-haystack] Python support (Issue #11)

Hello @stiller-leserhttps://github.com/stiller-leser , I think you mean advertising with the raspberry and viewing with headless haystack? This should work, because it is fully compatible to the original open haystack. If you mean to run the server on a raspberry then sadly no. The device is to weak to run mac os. Regards, Danny

— Reply to this email directly, view it on GitHubhttps://github.com/dchristl/headless-haystack/issues/11#issuecomment-1552733211, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAVWM52RZDA3UVN6YXD5IHDXGXOGDANCNFSM6AAAAAAYFT7U6U. You are receiving this because you were mentioned.Message ID: @.***>

dchristl commented 1 year ago

If I interpret it correctly the only difference is that your script is able to randomly choose a key, right?

Yes, you are right. If you generate more than one key, the code selects randomly one. There are also some power optimizations for the ESP32 to avoid a fast battery drain. If there is only one key the behaviour is nearly the same like the original one, besides the power optimization. So, you can use the HCI.py script from openhaystack and use it with my server and android-/ browser app. Hope, this is what you want to know.

stiller-leser commented 1 year ago

Absolutely, thank you for the responses.

Have a fabulous weekend!

Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg


From: dchristl @.> Sent: Friday, May 19, 2023 11:04:32 AM To: dchristl/headless-haystack @.> Cc: Kaj-Sören Mossdorf @.>; Mention @.> Subject: Re: [dchristl/headless-haystack] Python support (Issue #11)

If I interpret it correctly the only difference is that your script is able to randomly choose a key, right?

Yes, you are right. If you generate more than one key, the code selects randomly one. There are also some power optimizations for the ESP32 to avoid a fast battery drain. If there is only one key the behaviour is nearly the same like the original one, besides the power optimization. So, you can use the HCI.py script from openhaystack and use it with my server and android-/ browser app. Hope, this is what you want to know.

— Reply to this email directly, view it on GitHubhttps://github.com/dchristl/headless-haystack/issues/11#issuecomment-1554267252, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAVWM534QAPQVZURJCY6NFTXG4ZSBANCNFSM6AAAAAAYFT7U6U. You are receiving this because you were mentioned.Message ID: @.***>

stiller-leser commented 1 year ago

Actually I would have one follow up: let's say I generate ten keys will they all be visible as one device in the location report or will I see ten different devices?


From: kajmossi @.> Sent: Friday, May 19, 2023 11:37:05 AM To: dchristl/headless-haystack @.>; dchristl/headless-haystack @.> Cc: Mention @.> Subject: Re: [dchristl/headless-haystack] Python support (Issue #11)

Absolutely, thank you for the responses.

Have a fabulous weekend!

Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg


From: dchristl @.> Sent: Friday, May 19, 2023 11:04:32 AM To: dchristl/headless-haystack @.> Cc: Kaj-Sören Mossdorf @.>; Mention @.> Subject: Re: [dchristl/headless-haystack] Python support (Issue #11)

If I interpret it correctly the only difference is that your script is able to randomly choose a key, right?

Yes, you are right. If you generate more than one key, the code selects randomly one. There are also some power optimizations for the ESP32 to avoid a fast battery drain. If there is only one key the behaviour is nearly the same like the original one, besides the power optimization. So, you can use the HCI.py script from openhaystack and use it with my server and android-/ browser app. Hope, this is what you want to know.

— Reply to this email directly, view it on GitHubhttps://github.com/dchristl/headless-haystack/issues/11#issuecomment-1554267252, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAVWM534QAPQVZURJCY6NFTXG4ZSBANCNFSM6AAAAAAYFT7U6U. You are receiving this because you were mentioned.Message ID: @.***>

dchristl commented 1 year ago

You will see them as one device.

mrx23dot commented 1 year ago

With one key does it show up as a tracking device? Or whats the point rotating? (for me it didnt show up in Tracker detect app)

dchristl commented 1 year ago

I don't know what you want to say. There is no rotating with one key.

And again: Please refrain from spamming in posts that are unrelated to your topic.

stiller-leser commented 1 year ago

Closing this issue as my question has been resolved. Thank you for the excellent communication. Will open further issues / PRs if needed.