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
Metadata
Release files for PiAlarmAdapter 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pialarmadapter-0.0.1.tar.gz | 7.8 kB | Without provenance | Details for pialarmadapter-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PiAlarmAdapter-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for PiAlarmAdapter-0.0.1-py3-none-any.whl |
Total release size: 18.8 kB
Release files / pialarmadapter-0.0.1.tar.gz
| Download URL | pialarmadapter-0.0.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64fc56fd34fff360ebb6444a3cfc66193ea6b82ebf5dee063b319162fb2e6995
|
|
BLAKE2b-256 checksum How to use checksums |
dbf15d6fd085939f8b5f3308cb772d55df2f9aaaaf372b5325f0956e2e129ec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / PiAlarmAdapter-0.0.1-py3-none-any.whl
| Download URL | PiAlarmAdapter-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cce9664727eed3dd89a3a5375220bca21b23dbc3418b9894b40c4d262769d6c1
|
|
BLAKE2b-256 checksum How to use checksums |
44aceec5626ed14d95c00d0d13c98bd3b1876f32ac88b921da45e98d5b4418aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for PiAlarmAdapter 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.