djangmx
handles communications between django and AMX via UDP
udp_to_amx(amx_ip, amx_rx_port, message):
amx_ip: (string)
IP address of the AMX master you're sending the message to.
amx_rx_port: (integer default 10002)
UDP port the AMX master will be listening on. This module does not listen for responses on this port.
message: (string)
Message to send to the AMX master
amx_to_django_listener(server_ip, server_rx_port, django_ip, django_port):
server_ip: (string)
IP address of the server that will be handling communications from AMX to django.
server_rx_port: (integer default 10004)
Port the server will listen on. "ACK\r" will be sent to AMX when messages are received.
django_ip: (string)
IP address of the django server. This may or may not be the same as server_ip
django_port: (integer default 8000)
Port that django's http server is running on. This must not match server_rx_port.
If an AMX master sends a message with 'get_id' in it, the listener created by amx_to_django_listener() will http GET to: http://django_ip:django_port/equipment/get_id/ip of the master that sent the message
The django server will be configured to use udp_to_amx() to send the django IDs of all registered equipment associated with that AMX master.
The AMX program assigns these IDs to the device structures in its programs, and these IDs will then be used in all status updates from the AMX master.
The header used by AMX in these status updates is ':::' The delimiter is '' with a '' on the end.
Example status update of a projector: :::35672TrueWarming UpOnline1244~
The value and expected order of each parameter~ is handled in the AMX program and parsing within your django project.
Status messages from AMX can be strung together, as long as each message begins with :::
The listener created by amx_to_django_listener() will separate the messages and http GET them to:
http://django_ip:django_port/equipment/amx_fb/message
Handling of this message will be done in your django project.
Metadata
Release files for djangmx 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djangmx-0.0.6.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djangmx-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / djangmx-0.0.6.tar.gz
| Download URL | djangmx-0.0.6.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96166645a3846c13101f219759150dceaca514d6b9ff04788003e547af09c49e
|
|
BLAKE2b-256 checksum How to use checksums |
0db6f3afc0672630f5cbc1963e71461e3a2b905201247cbf73bdfe9cba1141e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
|
Release files / djangmx-0.0.6-py3-none-any.whl
| Download URL | djangmx-0.0.6-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65674ce21fb82b42a4483fe3095940df5710953d045b5cacdac29b9d188411f4
|
|
BLAKE2b-256 checksum How to use checksums |
0cbc3fb13d8742e2d05fb2c21d4315309fa31a04a9af16329e15a88604b444af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
|