Skip to main content

Manage contact sensors and send messages with state change to MQTT Broker

Project description

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

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

pialarmadapter-0.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PiAlarmAdapter-0.0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for pialarmadapter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 64fc56fd34fff360ebb6444a3cfc66193ea6b82ebf5dee063b319162fb2e6995
MD5 c47ccdd774121c0b2f7db654a721f6d6
BLAKE2b-256 dbf15d6fd085939f8b5f3308cb772d55df2f9aaaaf372b5325f0956e2e129ec9

See more details on using hashes here.

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

Hashes for PiAlarmAdapter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cce9664727eed3dd89a3a5375220bca21b23dbc3418b9894b40c4d262769d6c1
MD5 a7c2d3ded48e11485b7a2b765ad7dc8b
BLAKE2b-256 44aceec5626ed14d95c00d0d13c98bd3b1876f32ac88b921da45e98d5b4418aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page