TwoToneDetect New TwoToneDetect in the works - Python based

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
In v70 using the ftp in the config file, do you still need to set the post email command in the tones config to send to the the audio to the ftp server? I just set it up and haven't had any audio upload to the ftp.

Sent from my SM-T550 using Tapatalk
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
In v70 using the ftp in the config file, do you still need to set the post email command in the tones config to send to the the audio to the ftp server? I just set it up and haven't had any audio upload to the ftp.

Sent from my SM-T550 using Tapatalk

No, it is all done in the program file. If your upload isn’t getting there, you likely don’t have something quite right in the path.

Did you restart TTD? It needs to reread the configuration.
 

ajalbarano

Member
Joined
Sep 26, 2009
Messages
63
Location
Duncansville, PA
Hmmm...No, I haven't seen that before. I've been running Pushbullet notifications from a Pi for a month or two now with no issues. Keep me posted.



Andy



Andy,

Sorry for bugging you again. I contacted pushbullet and they haven’t returned my email. I wondering 2 things:
1. I have a channel for every fire station. Do you think this could be causing this?

2. Would you recommend pushover over pushbullet?

Thanks Andy!!

AJ


Sent from my iPhone using Tapatalk
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
Andy,

Sorry for bugging you again. I contacted pushbullet and they haven’t returned my email. I wondering 2 things:
1. I have a channel for every fire station. Do you think this could be causing this?

2. Would you recommend pushover over pushbullet?

1] I have 17 channels on pushbullet and have not had an issue.
2] It's pretty convoluted on getting the group key IMO. Getting the app_token is pretty straightforward. I'd like to see if you can get it working as I had an issue with it keep giving me an SSL error.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
Andy

2. Would you recommend pushover over pushbullet?


Sent from my iPhone using Tapatalk

I have successfully tried them both and have settled on pushover as my preferred app. The number of departments that you are serving shouldn’t make a difference.

I found pushover to be a little more intuitive (neither is particularly easy to set up) and to have a much better set of features. (With pushover, you can even set a high priority alert that will repeat until the subscriber acknowledges it.)

Right now, I am testing Andy’s TTD installer for the pi. It is sending pushovers fine but I am getting an error on pushbullet that i am trying to figure out.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
Is anyone having problems with the URL not working on Pushover? The file is uploading correctly to the FTP server however the link for the mp3 in the message is showing a URL of

https://client.pushover.net/recordings/TESTPAGE_2018_01_01_18_38_45.mp3

instead of

http://ucfa.org/recordings/TESTPAGE_2018_01_01_18_38_45.mp3

Mine is working fine. How are you firing off pushover? A script or using the integrated TTDv70? Have you ever gotten it to work successfully?

Are you sure that you are uploading? When I follow the second link in your post I get "file not found".
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Is anyone having problems with the URL not working on Pushover? The file is uploading correctly to the FTP server however the link for the mp3 in the message is showing a URL of

https://client.pushover.net/recordings/TESTPAGE_2018_01_01_18_38_45.mp3

instead of

http://ucfa.org/recordings/TESTPAGE_2018_01_01_18_38_45.mp3

What do you have the Hyperlink Prefix set to in the Edit Config Menu? This is what will be used for the Pushoever notification hyperlink. I know this isn't very clear, I want to make some changes to that and make it more intuitive.

Andy
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
By using the V70 feature. I get the alerts but the MP3 will not play. Yes I'm sure it's uploading. That link was just an example.

What does your hyperlink prefix look like? In config.cfg


What goes in the Hyperlink Prefix box is everything that precedes the .mp3 file name at the server. for example mine is:

http://ttd.nfshost.com/Montague_Fire_EMS_2018_01_01_21_06_01.mp3

You should be able to combine the prefix and the file name, put it in a web browser and make it play.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    10.6 KB · Views: 208
Last edited:

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
tones upload before starting TTD

I got tired of uploading my tones file every five minutes by opening FileZilla and etc... so here's a batch file for ya. It will only upload your file if it is newer than the file on your server.

You may have to change PROGRA~1 to PROGRA~2 depending on your architecture.

Code:
c:\PROGRA~1\winscp\winscp.com /command "open ftp://aintgona:giveitout@example.com/web/twotone.example.org/public_html/ttd" "put -neweronly -preservetime tones7.cfg.enc" "exit"

Now, make it even better and upload your new tones file before starting TTD... because we all forget to do that. This also starts TTD at high priority. Just remove /HIGH if you want it to run at normal priority.

Code:
c:\PROGRA~1\winscp\winscp.com /command "open ftp://aintgona:giveitout@example.com/web/twotone.example.org/public_html/ttd" "put -neweronly -preservetime tones7.cfg.enc" "exit"
timeout 3 /nobreak
start "" /HIGH /D "C:\Users\you\TTD70" "C:\Users\you\TTD70\TTD70.exe"

But what if you want to run FileZilla and look at a GUI? Try this batch file:

Code:
start "" /D "C:\Users\you\TTD70" "C:\Program Files\FileZilla FTP Client\filezilla.exe" --local="C:\Users\you\TTD70" ftp://aintgonna:giveitout2@example.com:21/web/twotone.example.org/public_html/ttd
exit
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I got tired of uploading my tones file every five minutes by opening FileZilla and etc...
[/code]

If you make the change to Pushover or Pushbullet, you won’t need to maintain your list of numbers and addresses in tones.cfg.
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
If you make the change to Pushover or Pushbullet, you won’t need to maintain your list of numbers and addresses in tones.cfg.
Many people can only get the sms and not the mms / email without going outside. Push* might or might not work.

Another issue is that some of them can't install an app even with video instructions, because they can't start the video. True story.

Sent from my SM-G930V using Tapatalk
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
Does anyone recognize this error?

Traceback (most recent call last):

File "TwoToneDetect70.py", line 598, in alert

IndexError: list index out of range

Traceback (most recent call last):

File "TwoToneDetect70.py", line 614, in alert

UnboundLocalError: local variable 'lowtime' referenced before assignment

Sent from my SM-G920V using Tapatalk
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Does anyone recognize this error?

Traceback (most recent call last):

File "TwoToneDetect70.py", line 598, in alert

IndexError: list index out of range

Traceback (most recent call last):

File "TwoToneDetect70.py", line 614, in alert

UnboundLocalError: local variable 'lowtime' referenced before assignment

Sent from my SM-G920V using Tapatalk

It's related to the feature that excludes sending emails during certain time periods. I would guess that you may have an exclude from or exclude to time entered in an incorrect format in tones.cfg?

Andy
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
It's related to the feature that excludes sending emails during certain time periods. I would guess that you may have an exclude from or exclude to time entered in an incorrect format in tones.cfg?

Andy
Thanks Andy.

Sent from my SM-T550 using Tapatalk
 
Top