User Tools

Site Tools


squawk

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
squawk [2016-12-11 21:18] robsquawk [2023-11-25 23:45] (current) – Added playlist command jaso55555
Line 12: Line 12:
 <code> <code>
 mosquitto_pub -h mqtt -t 'sound/g1/play' -m canttouchthis.mp3 mosquitto_pub -h mqtt -t 'sound/g1/play' -m canttouchthis.mp3
 +</code>
 +Play a list of sound files with no gap:
 +<code>
 +mosquitto_pub -h mqtt -t 'sound/g1/playlist' -m "long_long_man/long.mp3,long_long_man/loooong.mp3,long_long_man/maaaan.mp3"
 </code> </code>
 Text-to-speech message (with a subtle notification bong): Text-to-speech message (with a subtle notification bong):
Line 184: Line 188:
         speak(msg.payload)         speak(msg.payload)
  
-    if msg.topic == 'display/doorbot/intercom': +    if msg.topic == 'access/entrance/request': 
-        if msg.payload == '1' and status == 'closed':+        if status == 'closed':
             play('doorbell.mp3')             play('doorbell.mp3')
  
squawk.txt · Last modified: 2023-11-25 23:45 by jaso55555

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki