User Tools

Site Tools


amqp_messages

This is an old revision of the document!


AMQP Messages

Python example, running on kay:

import sys
sys.path.insert(0, "/srv/hacksense/lib")

import hacksense

conn = hacksense.AMQPTopic()

topic = "topic.name.here"
headers = {"example": 123}
body = "test test test"

conn.publish(topic, headers, body)

Rhapsody Display

A message can be added to the rotation with:

topic = "rhapsody.submessage"
headers = {"submessage_id": "uniqueid_2542868234761", "colour": "yellow"}
body = "Hello World"

submessage_id should be a unique reference for your message. If you send a later message with the same ID, it will be replaced instead of being added to the rotation.

colour is optional and may be red, yellow or green.

Messages will stay in rotation for approximately 10 minutes, so long-term messages should be resent regularly (using the same submessage_id each time).

amqp_messages.1397507589.txt.gz ยท Last modified: 2015-10-05 15:55 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki