RepositoryPython
jannisko

jannisko/findmy-traccar-bridge

A simple script to continuously import OpenHaystack locations into Traccar

105stars
8forks
6issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: traccar

#1 Repository of the week

1
TINIX TRENDING·Topic: openhaystack

#1 Repository of the week

1
TINIX TRENDING·Topic: findmy

#1 Repository of the week

findmy-traccar-bridge

A simple script to continuously import OpenHaystack locations into Traccar. This project uses the excellent findmy.py project to load the encrypted location data of your custom tracking beacons from Apple's FindMy network.

image usage_screencast

Requirements

  • Docker or Python 3.12
  • Some OpenHaystack beacons generating data, or decrypted plist files for real Airtags
    • e.g. an esp32 or NRF51
    • I recommend following the instructions 2. Hardware setup from macless-haystack. This is also where you will generate the private key for later.
  • Access to an Apple account with 2FA enabled

[!IMPORTANT] Using Apple's internal API like this may get your account banned, depending on how "trustworthy" Apple deems your account. In general, one query every 30 minutes seems to be safe, even for new throwaway accounts (this project querys once per hour by default). Some anecdotes from others: [1] [2] [3]

Usage

Run the bridge via docker compose:

services:
  bridge:
    build: https://github.com/jannisko/findmy-traccar-bridge.git
    volumes:
      - ./data:/bridge/data
      # Optional: Mount a directory with plist files for AirTags
      - /path/to/your/plists:/bridge/plists
    environment:
      # For OpenHaystack beacons, specify their private keys
      BRIDGE_PRIVATE_KEYS: "<key1>,<key2>,..."
      BRIDGE_TRACCAR_SERVER: "<your traccar base url>:5055"
via docker
docker build -t findmy-traccar-bridge https://github.com/jannisko/findmy-traccar-bridge.git
docker run -d --name bridge \
-v ./:/data \
# Optional: Mount directory with plist files for AirTags
-v /path/to/your/plists:/bridge/plists \
-e BRIDGE_PRIVATE_KEYS="<key1>,<key2>,..." \
-e BRIDGE_TRACCAR_SERVER="<your traccar base url>" \
findmy-traccar-bridge
as a python package
# Set up environment variables
# you should probably start your own anisette server for this
export BRIDGE_PRIVATE_KEYS="<key1>,<key2>,..." BRIDGE_TRACCAR_SERVER="<your traccar base url>"
# If you want to use AirTags through plist files, they'll be detected automatically in /bridge/plists
# Optionally you can override the plist directory:
# export BRIDGE_PLIST_DIR="/path/to/your/plists"

# Run the bridge
uvx --from=git+https://github.com/jannisko/findmy-traccar-bridge findmy-traccar-bridge

Initialization

To query the internal Apple FindMy API you will need to interactively log into your Apple account with a 2FA challenge when initially setting up the containers. Until this is done, the bridge container will stay idle.

docker compose exec bridge .venv/bin/findmy-traccar-bridge-init
via docker
docker exec -it bridge .venv/bin/findmy-traccar-bridge-init
as a python package
uvx --from=git+https://github.com/jannisko/findmy-traccar-bridge findmy-traccar-bridge-init

Configuration

The script can be configured via the following environment variables:

  • BRIDGE_PRIVATE_KEYS - comma separated string of base64 encoded private keys of your OpenHaystack beacons (e.g. can be generated via instructions from macless-haystack)
  • BRIDGE_PLIST_PATH - (optional) override the default directory path for decrypted plist files. By default, the app will look for .plist files in /bridge/plists. Only set this if you need to use a different location.
  • BRIDGE_TRACCAR_SERVER - required - url to your traccar server
  • BRIDGE_POLL_INTERVAL - (optional, default: 3600 (60 minutes)) - time to wait between querying the apple API. Too frequent polling might get your account banned.
  • BRIDGE_LOGGING_LEVEL - (optional, default: INFO)

Example

An example compose file running the bridge and Traccar locally can be found in the testing directory:

git clone https://github.com/jannisko/findmy-traccar-bridge
cd findmy-traccar-bridge/testing
# ... insert your haystack keys into the compose file ...
docker compose up -d
docker compose exec bridge .venv/bin/findmy-traccar-bridge-init

Development Docs

The current codebase provides a simple and extensible way to integrate bridge functionality with other services, such as Nextcloud Maps or Nextcloud Contacts. The LocationPusher class implements the core functionality. To add support for another service, create a new pusher class that inherits from LocationPusher and override the push_location() method with the service-specific implementation.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

380.2k
Sep 15, 2026
RepositoryPython
vinta/awesome-python

The definitive list that answers "I want to do X in Python, which tool should I use?"

338.8k
Nov 28, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

226.6k
Nov 13, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.6k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.8k
Nov 27, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryJava
traccar/traccar

Open source GPS tracking platform - self-hosted or managed, 200+ device protocols

8.2k
Nov 27, 2026
RepositoryGo
hybridgroup/go-haystack

Track personal Bluetooth devices via Apple's "Find My" network using OpenHaystack and Macless-Haystack with tools written in Go/TinyGo. No Apple hardware required! Build your own beacon using Xiao-BLE, ESP32-C3/S3, & many other boards.

1.5k
Oct 13, 2026