I can't seem to get the post email command (I'm switching from email to Twilio to send the messages) to kick off when I detect tones. the emails go out properly and the alert_command gets kicked off. I copied a bit of the tones.cfg file below. Am I doing something wrong with the variables?
Thanks.
Atone = 903.5 ;A tone frequency in Hz^M
Btone = 726.4 ;B tone frequency in Hz^M
Atonelength = .6 ;Lseconds) that must be seen to generate an alert^M
Btonelength = .6 ;Lollowing the A tone in order to generate an alert^M
Description = PFire ;Tone set description^M
text_Emails = 5@mms.att.net ;Echment upon tone detection. Separate with commas^M
mp3_Emails = iehl@ymail.com ;Emaimp3 attachment to. Separate with commas^M
amr_Emails = pde@googlegroups.com
record_delay = 2.5 ;Optiwait to record after a valid tone set is detected^M
ignore_after = 60 ;Optieconds to ignore tone set after a valid set is detected. ^M
alert_command = /home/pi/TTD/Pi/checkW2W.py
post_email_command = /home/pi/TTD/Pi/twilioTest.py [d] [amr]
Try:
alert_command =python /home/pi/TTD/Pi/checkW2W.py
post_email_command = python /home/pi/TTD/Pi/twilioTest.py [d] [amr]