{"id":50287416,"url":"https://github.com/johnf/gem-serial-to-tcp-ip-bridge","last_synced_at":"2026-05-28T03:30:47.042Z","repository":{"id":350771260,"uuid":"1112946798","full_name":"johnf/gem-serial-to-tcp-ip-bridge","owner":"johnf","description":"GreenEye Monitor Serial to TCP/IP Bridge ","archived":false,"fork":false,"pushed_at":"2026-04-12T02:08:18.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T02:29:00.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-09T10:11:37.000Z","updated_at":"2026-04-12T02:00:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/johnf/gem-serial-to-tcp-ip-bridge","commit_stats":null,"previous_names":["johnf/gem-serial-to-tcp-ip-bridge"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/johnf/gem-serial-to-tcp-ip-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnf%2Fgem-serial-to-tcp-ip-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnf%2Fgem-serial-to-tcp-ip-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnf%2Fgem-serial-to-tcp-ip-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnf%2Fgem-serial-to-tcp-ip-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnf","download_url":"https://codeload.github.com/johnf/gem-serial-to-tcp-ip-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnf%2Fgem-serial-to-tcp-ip-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33593400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-28T03:30:45.077Z","updated_at":"2026-05-28T03:30:47.028Z","avatar_url":"https://github.com/johnf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GEM Serial to TCP/IP Bridge\n\nA lightweight proxy that bridges serial port communication from a GreenEye\nMonitor (GEM) device to a TCP/IP network connection. It reads binary data from\nthe serial port and forwards parsed packets to a remote host over TCP.\n\n## Quick Start with Docker\n\n```bash\ndocker run -d \\\n  --name gem-proxy \\\n  --device /dev/ttyUSB0:/dev/ttyUSB0 \\\n  -e TCP_HOST=homeassistant.local \\\n  -e TCP_PORT=8000 \\\n  --restart unless-stopped \\\n  ghcr.io/johnf/gem-serial-to-tcp-ip-bridge:latest\n```\n\n## Configuration\n\nAll configuration is done via environment variables:\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `SERIAL_PORT` | `/dev/ttyUSB0` | Path to the serial device |\n| `BAUD_RATE` | `115200` | Serial port baud rate |\n| `TCP_HOST` | `homeassistant.local` | Target TCP host |\n| `TCP_PORT` | `8000` | Target TCP port |\n\n## Docker Compose\n\n```yaml\nservices:\n  gem-bridge:\n    image: ghcr.io/johnf/gem-serial-to-tcp-ip-bridge:latest\n    container_name: gem-bridge\n    restart: unless-stopped\n    devices:\n      - /dev/ttyUSB0:/dev/ttyUSB0\n    environment:\n      - TCP_HOST=homeassistant.local\n      - TCP_PORT=8000\n```\n\n## Hardware Requirements\n\n- A GreenEye Monitor device connected via USB serial adapter\n- The serial device must be accessible at the configured path (default: `/dev/ttyUSB0`)\n- The container requires `--device` flag to access the serial port\n\n## Building Locally\n\n### Prerequisites\n\n- Node.js 22+\n- pnpm\n\n### Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Run the application\npnpm start\n\n# Lint (Biome + TypeScript + Knip)\npnpm run lint\n```\n\n### Build Docker Image Locally\n\n```bash\ndocker build -t gem-proxy .\n```\n\n## Supported Architectures\n\nThe container image is built for:\n\n- `linux/amd64` (x86_64)\n- `linux/arm64` (ARM64, Raspberry Pi 4+, Apple Silicon)\n\n## Releases\n\nContainer images are automatically built and published to GitHub Container Registry on:\n\n- Every push to `main` branch (tagged as `latest` and `main`)\n- Version tags (e.g., `v1.0.0` creates tags `1.0.0`, `1.0`, `1`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnf%2Fgem-serial-to-tcp-ip-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnf%2Fgem-serial-to-tcp-ip-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnf%2Fgem-serial-to-tcp-ip-bridge/lists"}