Python library for Elmo control units
Project description
python-elmoclient
A Python module for communicating with Elmo control units via TCPIP protocol.
Installation
You can install the package via pip:
pip install python-elmoclient
Usage
from elmoclient import ElmoClient
# Initialize the client
client = ElmoClient(
host="192.168.1.100", # IP address of your Elmo control unit
port=10001, # Default port is 10001
user="your_username", # Optional: username for authentication
password="your_password" # Optional: password for authentication
)
# Start the client
client.start()
# Login to the system
client.accesso_sistema()
# Subscribe to events
def on_sector_change(sigtype, pos, value):
print(f"Sector {pos} changed to {value}")
client.subscribe("settore", 1, on_sector_change)
# Arm a sector
client.inserisci_settore(1)
# Disarm a sector
client.disinserisci_settore(1)
# Stop the client when done
client.stop()
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python_elmoclient-0.0.4.tar.gz
.
File metadata
- Download URL: python_elmoclient-0.0.4.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
80e0f821a345f81953ff0775a06ed0f9954e3405d2e857ccc0a28d666df801ee
|
|
MD5 |
7938f74256e95d7166423e04cc1a8d50
|
|
BLAKE2b-256 |
2f7a549f7505cdc1b3cdfc0eea704942e4421276070b9f2644e18c6d96c2a2dd
|
File details
Details for the file python_elmoclient-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: python_elmoclient-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9dd6cef7c44a535aa2e260c6bc2e3a2134caebddd412237197da39673d2ccbc0
|
|
MD5 |
3924a0da2369d5e7ee98fecd9febeeb1
|
|
BLAKE2b-256 |
98670151cc931934ef2735be824e8003e87a318af7034bc7e882e592ada74ff1
|