🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

PiAlarmAdapter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

PiAlarmAdapter

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

0.0.1
PyPI
Maintainers
1

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

VariableDefaultInfo
LOG_LEVELINFOLevel of logger. Valori possibili: DEBUG, INFO, WARNING, ERROR
MQTT_BROKER_URL127.0.0.1IP address of the MQTT broker
MQTT_BROKER_PORT1883Port number of the MQTT Broker
MQTT_USERNAMEadminUsername that can post messages on queues
MQTT_PASSWORDadminpassword 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts