Manage contact sensors and send messages with state change to MQTT Broker
Project description
PiAlarmAdapter
Application to manage contact sensors and send messages with state change to an MQTT Broker.
Install
You can use pip directly through the command:
pip install pi_alarm_adapter
Settings
Environment variables
| Variable | Default | Info |
|---|---|---|
| LOG_LEVEL | INFO | Level of logger. Valori possibili: DEBUG, INFO, WARNING, ERROR |
| MQTT_BROKER_URL | 127.0.0.1 | IP address of the MQTT broker |
| MQTT_BROKER_PORT | 1883 | Port number of the MQTT Broker |
| MQTT_USERNAME | admin | Username that can post messages on queues |
| MQTT_PASSWORD | admin | password of the user above |
For sensor configuration, add environment variables in the format: SENSOR_<NOME_SENSORE>=<PIN_NUMBER>
Example: SENSOR_BEDROOM=4
ToDo List
- move configuration from environment variables to a yaml file
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pialarmadapter-0.0.1.tar.gz.
File metadata
- Download URL: pialarmadapter-0.0.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64fc56fd34fff360ebb6444a3cfc66193ea6b82ebf5dee063b319162fb2e6995
|
|
| MD5 |
c47ccdd774121c0b2f7db654a721f6d6
|
|
| BLAKE2b-256 |
dbf15d6fd085939f8b5f3308cb772d55df2f9aaaaf372b5325f0956e2e129ec9
|
File details
Details for the file PiAlarmAdapter-0.0.1-py3-none-any.whl.
File metadata
- Download URL: PiAlarmAdapter-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cce9664727eed3dd89a3a5375220bca21b23dbc3418b9894b40c4d262769d6c1
|
|
| MD5 |
a7c2d3ded48e11485b7a2b765ad7dc8b
|
|
| BLAKE2b-256 |
44aceec5626ed14d95c00d0d13c98bd3b1876f32ac88b921da45e98d5b4418aa
|