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

FindMy_proxy.py API question #8

Closed
mrmay-dev opened this issue Apr 30, 2023 · 7 comments
Closed

FindMy_proxy.py API question #8

mrmay-dev opened this issue Apr 30, 2023 · 7 comments
Labels
question Further information is requested

Comments

@mrmay-dev
Copy link

I'm working on an OwnTracks integration. I can get the standalone report_request.py to work. I run a Bash script every 20 minutes to trigger a request.

I'd really like to use the FindMy_proxy.py If you could help with the API a little I'd be grateful. As far I can tell it expects a POST request with a JSON body. My guess is, the script expects a list of keys. Does it want the private keys or the prefixes?

{
 "days": 1,
 "ids": [
  "key"
  "key"
 ]
}
@dchristl
Copy link
Owner

dchristl commented May 1, 2023

Hello @mrmay-dev ,

you are correct with the API and the body. As key you need the advertisement key, hashed with sha256 in Base64. If you have generated the keys with my generate_keys.py - file, you will find a key-file with all the informations you need. The correct one is the one, that is tagged with "Hashed adv key".

@dchristl dchristl added the question Further information is requested label May 1, 2023
@Systm21
Copy link

Systm21 commented Aug 27, 2023

Hey richard, really nice project, hope you stick with it. Will try it in the next days, hopefully it is the "bridge" to home assistant, that im searching for.

@Systm21
Copy link

Systm21 commented Aug 31, 2023

@mrmay-dev why are issues deactivated in your owntracks repo? Would love to use your owntracks plugin, but there seems to be some mistakes in the scripts, that i cant't resolve. Maybe you can help me a bit.

@23tom2323
Copy link

@mrmay-dev why are issues deactivated in your owntracks repo? Would love to use your owntracks plugin, but there seems to be some mistakes in the scripts, that i cant't resolve. Maybe you can help me a bit.

I think that's a shame too.
What errors do you get? This comes to me:

./downtags.sh
Traceback (letzter Aufruf zuletzt):
Datei „/request_reports.py“, Zeile 18, in
OUTPUT_FOLDER = Configuration[“owntag_options“][“output_folder "]

KeyError: 'output_folder'
– END SCRIPT –

python3 request_reports.py --time 0:60 --owntags
Traceback (letzter Aufruf zuletzt):
Datei „/request_reports.py“, Zeile 18, in
OUTPUT_FOLDER = Konfiguration["owntag_options"]["output_folder"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ ^^^^^^^^^
KeyError: 'output_folder'

Meine request_reports.py Zeile 18:
OUTPUT_FOLDER = Configuration["owntag_options"]["output_folder"]





23tom2323 @ sysponet .de

@Systm21
Copy link

Systm21 commented Sep 9, 2023

@mrmay-dev why are issues deactivated in your owntracks repo? Would love to use your owntracks plugin, but there seems to be some mistakes in the scripts, that i cant't resolve. Maybe you can help me a bit.

I think that's a shame too. What errors do you get? This comes to me:

./downtags.sh Traceback (letzter Aufruf zuletzt): Datei „/request_reports.py“, Zeile 18, in OUTPUT_FOLDER = Configuration[“owntag_options“][“output_folder "]

KeyError: 'output_folder'
– END SCRIPT –

python3 request_reports.py --time 0:60 --owntags
Traceback (letzter Aufruf zuletzt):
Datei „/request_reports.py“, Zeile 18, in
OUTPUT_FOLDER = Konfiguration["owntag_options"]["output_folder"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ ^^^^^^^^^
KeyError: 'output_folder'

Meine request_reports.py Zeile 18:
OUTPUT_FOLDER = Configuration["owntag_options"]["output_folder"]





23tom2323 @ sysponet .de

I have fixed many problems, yours belongs to a var that didn't exists. But now, i get stuck.

@mrmay-dev
Copy link
Author

They are deactivated because I'm a gitHub noob who didn't know they were deactivated. I'm working on figuring that out now. Hope to chat more about this there!

@mrmay-dev
Copy link
Author

I'm looking into the OUTPUT_FOLDER = Konfiguration["owntag_options"]["output_folder"] error.

Follow progress, or add more info at the new issue topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants