Skip to main content

handles communication between AMX masters and django

Project description

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.

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

djangmx-0.0.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

djangmx-0.0.6-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file djangmx-0.0.6.tar.gz.

File metadata

  • Download URL: djangmx-0.0.6.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for djangmx-0.0.6.tar.gz
Algorithm Hash digest
SHA256 96166645a3846c13101f219759150dceaca514d6b9ff04788003e547af09c49e
MD5 79e2bd554a47eb6243e361bc2075f478
BLAKE2b-256 0db6f3afc0672630f5cbc1963e71461e3a2b905201247cbf73bdfe9cba1141e5

See more details on using hashes here.

File details

Details for the file djangmx-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: djangmx-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for djangmx-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 65674ce21fb82b42a4483fe3095940df5710953d045b5cacdac29b9d188411f4
MD5 051a17ca4fde77dd18ccb13a34ae4761
BLAKE2b-256 0cbc3fb13d8742e2d05fb2c21d4315309fa31a04a9af16329e15a88604b444af

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