Search found 7 matches

by highspeedz
06 Aug 2016 03:23
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Re: Can door sensor trigger audio on Raspberry Pi

OK...changed (this.value = 255) to (this.value == 255) that fixed it. Thanks for the help!
by highspeedz
06 Aug 2016 01:17
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Re: Can door sensor trigger audio on Raspberry Pi

Not sure what I am doing wrong...when I use the code above...when I trigger the door sensor...the javascript gets in an infinite loop. It keeps executing over and over again...not sure what I am doing wrong.
by highspeedz
05 Aug 2016 16:33
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Re: Can door sensor trigger audio on Raspberry Pi

OK.,.thanks..I will try tonight when I am back at the razberry.. Another problem is that I didn't realize I just needed "/usr/bin/omxplayer" ... I put the whole command in there.
by highspeedz
05 Aug 2016 14:46
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Re: Can door sensor trigger audio on Raspberry Pi

I ended up doing this...which seems close..but no sound.. zway.devices[1].instances[0].commandClasses[32].data.level.bind(function() { if (this.value = 255) debugPrint("Executing trigger",this.value); system('"/usr/bin/omxplayer /opt/z-way-server/automation/siren.mp3"'); });
by highspeedz
05 Aug 2016 04:48
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Re: Can door sensor trigger audio on Raspberry Pi

Thanks for the response. I was able to get the sound to play from the command line. Can you show me the code you put in the "Load Custom Java Script" App.. Thanks.
by highspeedz
03 Aug 2016 23:52
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Re: Can door sensor trigger audio on Raspberry Pi

If no one knows an answer to the above question.. than perhaps another question would be what is a common thing to link the door sensor to. I am looking for an audible indication that the door has been opened.
by highspeedz
02 Aug 2016 05:08
Forum: RaZberry
Topic: Can door sensor trigger audio on Raspberry Pi
Replies: 10
Views: 33265

Can door sensor trigger audio on Raspberry Pi

Can I use the Z-Wave Smart Home software to trigger an audio sound on the pi itself. I am using razberry on the raspberry pi. Currently the door opening will trigger the doorbell, but I would like to have the pi itself make a sound. Can this be done from the GUI? If not, is there another way?