motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.87k stars 900 forks source link

motion eye os to play an mp3/ wav file #2627

Closed Hazzoid closed 3 years ago

Hazzoid commented 3 years ago

Hi

I don't have any coding knowledge but I am currently setting up some raspberry pi's as cctv camera's and I am wanting the one at the door to play a small mp3/ wav file when it detects motion and i was wondering how I would go about this.

cheers Hazzoid

starbasessd commented 3 years ago

It would have to be anything but a PiZero (No audio output) You could use aplay triggered by the Run A Command function in Motion Notification I have not tried it personally, but it is intriguing... I may post something later if I can find some time to test...

On Tue, Jan 5, 2021 at 4:29 AM Hazzoid notifications@github.com wrote:

Hi

I don't have any coding knowledge but I am currently setting up some raspberry pi's as cctv camera's and I am wanting the one at the door to play a small mp3/ wav file when it detects motion and i was wondering how I would go about this.

cheers Hazzoid

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/2627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHLB327FMG6QLMTJNF3SYLLYVANCNFSM4VUWFZFA .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

What hardware are you using? Pi2, 3, 3b+, 4? Which version of motionEyeOS are you using?

On Tue, Jan 5, 2021 at 8:51 AM Kevin Shumaker kevin.shumaker@gmail.com wrote:

It would have to be anything but a PiZero (No audio output) You could use aplay triggered by the Run A Command function in Motion Notification I have not tried it personally, but it is intriguing... I may post something later if I can find some time to test...

On Tue, Jan 5, 2021 at 4:29 AM Hazzoid notifications@github.com wrote:

Hi

I don't have any coding knowledge but I am currently setting up some raspberry pi's as cctv camera's and I am wanting the one at the door to play a small mp3/ wav file when it detects motion and i was wondering how I would go about this.

cheers Hazzoid

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/2627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHLB327FMG6QLMTJNF3SYLLYVANCNFSM4VUWFZFA .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

I built a Pi3B+ with dev20201026 on a 4GB SDCard (no intention of recording to it) I copied a wav file (doorbell.wav) to /boot, along with my wpa_supplicant.conf file and ssh.txt file before 1st boot I inserted and booted to it I then set up 3 network IP cameras. In Motion Detection, set the cameras the same as my production Camera Hub for detection in Motion Notification, I enabled Run A Command and entered: aplay -D hw:0,0 /boot/doorbell.wav and saved (BTW, it's wav because it appears there are no mp3 codecs available by default in motionEyeOS) Now, when it detects motion, it plays the sound through the headphone jack (there isn't any HDMI attached) At this time I don't have an extra monitor with sound to test with.

On Tue, Jan 5, 2021 at 8:58 AM Kevin Shumaker kevin.shumaker@gmail.com wrote:

What hardware are you using? Pi2, 3, 3b+, 4? Which version of motionEyeOS are you using?

On Tue, Jan 5, 2021 at 8:51 AM Kevin Shumaker kevin.shumaker@gmail.com wrote:

It would have to be anything but a PiZero (No audio output) You could use aplay triggered by the Run A Command function in Motion Notification I have not tried it personally, but it is intriguing... I may post something later if I can find some time to test...

On Tue, Jan 5, 2021 at 4:29 AM Hazzoid notifications@github.com wrote:

Hi

I don't have any coding knowledge but I am currently setting up some raspberry pi's as cctv camera's and I am wanting the one at the door to play a small mp3/ wav file when it detects motion and i was wondering how I would go about this.

cheers Hazzoid

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/2627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHLB327FMG6QLMTJNF3SYLLYVANCNFSM4VUWFZFA .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

Hazzoid commented 3 years ago

I am currently using a pi 3

starbasessd commented 3 years ago

Same image.

On Tue, Jan 5, 2021 at 7:54 PM Hazzoid notifications@github.com wrote:

I am currently using a pi 3

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/2627#issuecomment-754994427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZTUHPEGOEUP2I4YSTMXOTSYOYC7ANCNFSM4VUWFZFA .

-- Thanks

Kevin Shumaker

Personal Tech Support https://kevinshumaker.wixsite.com/thethirdlevel

N38° 19' 56.52" W85° 45' 8.56"

Semper Gumby “Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA Ethics are what we do when no one else is looking. Quis custodiet ipsos custodes? “There is no end to the good you can do if you don’t care who gets the credit.” - C Powell You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

starbasessd commented 3 years ago

No response in >30 days. If you are still having issues, please open a new issue.