Geeklock é um conjunto de utilitários para gerenciamento/controle de recursos (por exemplo: travas, sincronização, agendamento ou controle de concorrência) — este tutorial foca nas ferramentas usuais: instalação, comandos principais e exemplos práticos de uso em scripts e CI.
Forget overpriced third-party parental software. Use Geeklock Utilidades to:
The best part of Geeklock is its community. On GitHub and Reddit (r/Geeklock), users share new utilities every month: geeklock utilidades
Within the Utilidades suite, there is a lightweight encryption module. It allows you to:
from geeklock import LockClient
client = LockClient(server='http://localhost:8080')
lock = client.acquire('resource-name', timeout=30, owner='worker-1')
if lock.held:
try:
# seção crítica
do_work()
finally:
client.release('resource-name', owner='worker-1')
else:
raise RuntimeError("Não foi possível adquirir a trava")
The Problem: Your lock speaks Zigbee; your lights speak Wi-Fi; your alarm speaks Z-Wave. The Problem: Your lock speaks Zigbee; your lights
The Utility: The MQTT Bridge for Geeklock acts as a universal translator. It publishes every lock event (open, close, battery low, jammed) to an MQTT broker like Mosquitto or HiveMQ.
Utilidades Prácticas:
Setup Tip: Use the geeklock-mqtt-util script to map lock status to JSON payloads instantly.
pip install geeklock
git clone https://github.com/<user>/geeklock.git
cd geeklock
pip install -e .