Sign inSign up

tiger223s/pc-lock-hub

By tiger223s

•Updated over 1 year ago

Image
0

209

tiger223s/pc-lock-hub repository overview

⁠PC Lock Hub Docker Image

Centralized hub for managing Windows PC locks remotely.

⁠Quick Start

  1. Create a .env file:

    HA_API_URL=https://your-ha.com/api/webhook/your-webhook-id  # Optional
    HA_API_TOKEN=your-long-lived-ha-token  # Optional
    
  2. Run the container:

    docker-compose up -d
    

⁠Configuration

Env VariableRequiredDefaultDescription
PORTNo8000Hub API port
HOSTNo0.0.0.0Bind address
HA_API_URLNo""Home Assistant webhook URL
HA_API_TOKENNo""HA long-lived access token

⁠Client Setup

Windows clients need this configuration:

[hub]
url = http://your-server-ip:8000
name = Your-PC-Name

⁠GitHub Repository Structure

pc-lock-hub/
├── Dockerfile
├── requirements.txt
├── main.py
└── docker-compose.yml

⁠Publishing Updates

  1. Bump version in Dockerfile
  2. Rebuild and push:
    docker build -t yourusername/pc-lock-hub:1.1.0 .
    docker push yourusername/pc-lock-hub:1.1.0
    

Tag summary

Content type

Image

Digest

sha256:f4a01708d…

Size

49.7 MB

Last updated

over 1 year ago

docker pull tiger223s/pc-lock-hub