Google Find Hub devices in Traccar

homa4 months ago

could my problem be related to google famili link? My account is parent for children in google famili link. When I login to google account in ChromeDriver in AuthFlow, google ask me "who will use this device" and I can chose "I'm" or "child". I can see all my devices location at https://www.google.com/android/find/ but I doesn't see available devices in main.py's output

Anton Tananaev4 months ago

homa your output shows no devices available. Either something is not supported or some configuration issue.

homa4 months ago
Anton Tananaev4 months ago

That's unfortunate. Sounds like you won't be able to use it then.

Kaldek4 months ago

I have confirmed that shared devices work. I shared a tag from my personal account into the account used for our testing. It took a few minutes to work, but the tracker can be seen by the microservice.

renaud3 months ago

Too bad it doesn't seem possible to make it run headless on a non linux/macos machine :(
When I try after copying Auth/secrets.json created on a linux machine, I get "[SharedKeyRetrieval] You need to log in again to access end-to-end encrypted keys to decrypt location reports" and chrome is a no go on a lot of OSes.

Anton Tananaev3 months ago

It's definitely possible to run headless.

renaud3 months ago

Well, it seems that copying keys (Auth/secrets.json) generated with linux on an OpenBSD system doesn't work. Given that chrome is not available on OpenBSD, I can't use it to validate the keys again.

Anton Tananaev3 months ago

Well, you might need to use the same type of machine as you generated keys on. Not sure what the restrictions are exactly.

redge763 months ago

I'm running headless but I created the secrets.json using xvnc.
I copied the file from one user to another service user.(hint that only copying the file is enough)

Bernhard3 months ago

I was looking for a way to add Apple Airtags to Traccar ... I found a python library (last release is 3 weeks old at the time of this post) that looks promissing:
https://github.com/malmeloo/FindMy.py

Anton Tananaev3 months ago

Yeah, looks interesting.

kaliteninadresi7 days ago

First of all, a huge thank you to Anton and all the contributors. Traccar is an amazing project and I’ve been happily using it for months❤️
Thanks to the google-find-hub-sync script, I’m able to track my Android Tag (and other Find My Device network devices) on Traccar very reliably and quickly using an Android phone. It’s truly an awesome integration, great job, thank you so much!
The only thing still missing is the battery level indicator.
Do we add it with the batteryLevel parameter? Or exactly where and how should it be added to make the battery percentage visible?
Has anyone managed to get the battery level working? If so, I’d be really grateful if you could share exactly what you changed/added. I’m sure your answer will help many others as well.
Thank you in advance and keep up the great work!