c133932b294c864d843b4750bb1b2eb08e563358
Reviewed-on: serversdown/series3-agent#1
Series3 Ingest Agent v1.2
A lightweight Python script that monitors Instantel Series 3 (Minimate) call-in activity on a Blastware server.
It scans the event folder, reads .MLG headers to identify unit IDs, and prints a live status table showing:
- Last event received
- Age since last call-in
- OK / Pending / Missing states
- Detected units (no roster required)
- Optional API heartbeat to Seismograph Fleet Manager backend
This script is part of the larger Seismograph Fleet Manager project.
Requirements
- Python 3.8 (Windows 7 compatible)
- Blastware 10 event folder available locally
config.iniin the same directory as the script
Install dependencies with:
pip install -r requirements.txt
Usage
Run the agent from the folder containing the script:
python series3_agent.py
The script will:
- Scan the Blastware event folder for
.MLGfiles (within a max age window). - Sniff each file header for the unit ID.
- Print a status line for each detected unit (OK / Pending / Missing).
- Optionally POST a heartbeat payload on an interval when
API_ENABLED=true. - Write logs into the
agent_logs/folder and auto-clean old logs.
Config
All settings are stored in config.ini.
Key fields:
SERIES3_PATH— folder containing.MLGfilesSCAN_INTERVAL_SECONDS— how often to scanOK_HOURS/MISSING_HOURS— thresholds for statusMLG_HEADER_BYTES— how many bytes to sniff from each.MLGheaderRECENT_WARN_DAYS— log unsniffable files newer than this windowMAX_EVENT_AGE_DAYS— ignore events older than this many daysAPI_ENABLED— enable/disable heartbeat POSTAPI_URL— heartbeat endpointAPI_INTERVAL_SECONDS— heartbeat frequencySOURCE_ID/SOURCE_TYPE— identifiers included in the API payloadLOG_RETENTION_DAYS— auto-delete logs older than this many daysCOLORIZE— ANSI color output (off by default for Win7)
Logs
Logs are stored under agent_logs/.
Git ignores all log files but keeps the folder itself.
Versioning
This repo follows Semantic Versioning (SemVer).
Current release: v1.2.1 — renamed to series3 ingest agent.
See CHANGELOG.md for details.
License
Private / internal project.
Description