#!/usr/bin/env python3
"""A deliberately synthetic collector template. No network request or publishing.

Replace collect() with your own permitted data collection and persist a source
event's stable ID. Pass the resulting JSON file to ntfyx-plugin.py publish.
This creates a pending review, not a delivery: every event needs the phone's
explicit approval. This example itself performs no request or submission.
"""
import argparse
import json


def collect(event_id):
    # This is example data, not a real price, incident, promotion or measurement.
    # Keep an event's ID and contents unchanged when retrying an uncertain send.
    return {
        "event_id": event_id,
        "title": "Example update",
        "body": "Synthetic example only. Replace collect() with your own source.\nSource: https://example.com/",
    }


if __name__ == "__main__":
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--event-id", required=True, help="Stable ID from your source; reuse it for retries")
    args = parser.parse_args()
    print(json.dumps(collect(args.event_id), ensure_ascii=False, indent=2))
