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
Last revisionBoth sides next revision
squawk [2016-10-11 16:13] – [Audio Alerts (squawk)] robsquawk [2017-01-10 21:01] – [/home/pi/squawk.py] tim
Line 23: Line 23:
  
 **Theory:** You could direct sound two only two rooms at once by playing the left or right channel only. By default mpg123 is called with the -m option to ensure that the output is mono and thus the same sound comes out every speaker. **Theory:** You could direct sound two only two rooms at once by playing the left or right channel only. By default mpg123 is called with the -m option to ensure that the output is mono and thus the same sound comes out every speaker.
 +
 +===== Adding new sounds =====
 +
 +Use the web file browser at http://squawk.hacklab:8080/.
  
 ===== Raspbian ===== ===== Raspbian =====
Line 180: Line 184:
         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