User Tools

Site Tools


mqtt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mqtt [2018-04-04 23:16] timmqtt [2018-04-17 21:42] – [Sound] cazagen
Line 3: Line 3:
 Hostname: mqtt.hacklab\\ Hostname: mqtt.hacklab\\
 Port: 1883 Port: 1883
 +
 +===== Warning =====
 +
 +  * Do not use the MQTT network for evil.
 +  * Do not annoy other lab users (especially with sound or lighting).
 +  * Do not be the reason for new rules.
  
 ===== Quick Example ===== ===== Quick Example =====
Line 89: Line 95:
  
 ^ Topic ^ Payload ^ Notes ^ ^ Topic ^ Payload ^ Notes ^
-| display/rhapsody/submessage | {"id": "<uniq-ref>", "message": "text..."} | Optional attributes: colour: red/yellow/green, priority: 1-100 (low values will be shown first, default=10) |+| display/rhapsody/submessage | {"id": "<uniq-ref>", "message": "text..."} | Optional attributes: colour: red/yellow/green, priority: 1-100 (low values will be shown first, default=10). Max length 169 chars, 170+ crashes the script. |
 | display/rhapsody/raw | raw data | Send raw messages to Rhapsody display (not recommended) | | display/rhapsody/raw | raw data | Send raw messages to Rhapsody display (not recommended) |
 | display/rhapsody/reset | | Reset the Rhapsody display (only required if the display is corrupted) | | display/rhapsody/reset | | Reset the Rhapsody display (only required if the display is corrupted) |
Line 133: Line 139:
  
 ^ Topic ^ Payload ^ Notes ^ ^ Topic ^ Payload ^ Notes ^
-| sound/g1/play | filename | Sound files must be installed on [[squawk]] | +| sound/[room]/play | filename | Sound files must be installed on [[squawk]] | 
-| sound/g1/speak | text | | +| sound/[room]/speak | text | | 
-| sound/g1/announce | text | |+| sound/[room]/announce | text | | 
 +| sound/kill | empty message | Kills any playing sound |  
 + 
 +Replace [room] with one of g1, g2, g8, g11, or all
  
 Sound effects get annoying **fast**. Don't say we didn't warn you. Sound effects get annoying **fast**. Don't say we didn't warn you.
mqtt.txt · Last modified: 2024-06-10 21:32 by cazagen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki