Skip to main content

PiAlarmAdapter

CI Pipeline Coverage Status Codacy Badge

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)

Source distribution for PiAlarmAdapter 0.0.1
File Size Uploaded
pialarmadapter-0.0.1.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PiAlarmAdapter 0.0.1
File Interpreter ABI Platform
PiAlarmAdapter-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page