MQTT plugin for NEMO
Project description
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
toINSTALLED_APPS
insettings.py
:INSTALLED_APPS = [ '...', 'NEMO_mqtt', # This needs to be before NEMO '...' 'NEMO', '...' ]
-
Run migrations:
python manage.py migrate
Usage
- Navigate to the
Detailed Administration
page in theAdministration
menu. - 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
- Name:
- 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.
- Under card, select the corresponding interlock card item:
- Go to
Interlocks
admin page and add an interlock:- Card:
MQTT:localhost
- Channel: select a non-null unique number.
- Card:
- 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
- Repeat 4 & 5 as needed
- Use as a normal interlock for doors/tools
- Enjoy!
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for NEMO_mqtt-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef20f53d1c878b78b3bf5fe83710992962bbfa7f3b073f2fa8532872b2e8c17 |
|
MD5 | 5bcd7f32d75f874ea8c703f5e4a0d2a9 |
|
BLAKE2b-256 | 307b033d714fa427a63fd47e7ab833884a98f65fe45de302c266661b99e44ae0 |