Skip to main content

MQTT plugin for NEMO

Project description

Code style: black PyPI - Python Version PyPI

pipeline status Latest Release

NEMO MQTT

This plugin for NEMO adds support for MQTT interlocks.

Compatibility:

NEMO >= 5.0.0 ----> NEMO MQTT >= 0.3

NEMO-CE >= 2.0.0 -----> NEMO MQTT >= 0.3

Installation

  • Install python module

    pip install NEMO-mqtt[NEMO]
    
  • Add NEMO_mqtt to INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        '...',
        'NEMO_mqtt', # This needs to be before NEMO
        '...'
        'NEMO',
        '...'
    ]
    
  • Run migrations:

    python manage.py migrate
    

Usage

  1. Navigate to the Detailed Administration page in the Administration menu.
  2. Go to Interlock cards admin page, create a new item with the following parameters:
    • Name: MQTT_0 (you can choose anything else meaningful and unique for each server, e.g. MQTT_0, MQTT_1, etc)
    • Server: localhost
    • Port: 0
    • Category*: MQTT
    • Enabled: tick
  3. Go to Mqtt interlock servers admin page and add one item for each server you are willing to use:
    • Under card, select the corresponding interlock card item: MQTT_0:localhost
    • Fill other parameters according to your server authentication requirements.
  4. Go to Interlocks admin page and add an interlock:
    • Card: MQTT:localhost
    • Channel: select a non-null unique number.
  5. Go to MQTT interlocks admin page and add an MQTT interlock:
    • Interlock: select the previously created interlock
    • Fill the rest according to the parameters required by your interlock to operate
  6. Repeat 4 & 5 as needed
  7. Use as a normal interlock for doors/tools
  8. Enjoy!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

NEMO_mqtt-0.3.5-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file NEMO_mqtt-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: NEMO_mqtt-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for NEMO_mqtt-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5ef20f53d1c878b78b3bf5fe83710992962bbfa7f3b073f2fa8532872b2e8c17
MD5 5bcd7f32d75f874ea8c703f5e4a0d2a9
BLAKE2b-256 307b033d714fa427a63fd47e7ab833884a98f65fe45de302c266661b99e44ae0

See more details on using hashes here.

Supported by

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