TwoToneDetect New TwoToneDetect in the works - Python based

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
Version 69 Release Notes
- Added additional parameter to config.cfg to allow emails to be sent sequentially (individually) to each email in a separate message rather than as a group email.
- email_send_sequential = [“none”, “all”, or “Verizon”]
- When set to “none”, a single email is sent to the group.
- When set to “all”, individual emails are sent to all users.
- When set to “Verizon”, individual emails are sent to @vzwpix.com and @vtext.com addresses, and a single email is sent to all other users.​

I went live with v69 and this morning and had test pages done for every department. The Verizon choice on this did not work. When the test pages were done, the Verizon addresses did not go out as separate messages, they were included in the group messages for all users. I opened my config.cfg file and double checked it, it is set to "email_send_sequential = Verizon"


Marvin
 

pei006

Member
Joined
May 21, 2003
Messages
14
Redundant and V69

Problem running redundant feature in v69
I am running 2 instances on the same computer

if page received during "exclude emails" time frame
the redundant_tone.txt file is updated appropriately. ("successfully updated C:\Users\ABC\AppData\Roaming\TTD\redundant_tones.txt with ....")

if the page is received outside the excluded times then the
program goes directly to "setting mail server up" and the redundant_tones.txt file
does not get updated,
and then I get duplicate pages sent, one from each instance


Thank You
 

JH49

Member
Joined
Jun 22, 2016
Messages
13
I am getting the following error when trying to send a message via the Tones Editor for v69. The message does get to the recipient(s).
I seen there was a similar post and looked like it got fixed. Wondering if the update made it the Pi version.

Also I have email_send_sequential = None and it sends it multiple times in a group message.

I also wanna take the time to thank Andy for all the effort he put into TTD.

pi@ttd:~/TTD$ python TonesEditor8c.pyc
setting mail server up
set up mail server
starting TLS
done starting TLS
logging in
logged in
Traceback (most recent call last):
File "C:\Users\Knitt\Google Drive\Python\TTD.py", line 82, in mail
TypeError: cannot concatenate 'str' and 'NoneType' objects
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for tesing 3
setting mail server up
set up mail server
starting TLS
done starting TLS
logging in
logged in
Traceback (most recent call last):
File "C:\Users\Knitt\Google Drive\Python\TTD.py", line 82, in mail
TypeError: cannot concatenate 'str' and 'NoneType' objects
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 2 trying again in five seconds for tesing 3
setting mail server up
set up mail server
starting TLS
done starting TLS
logging in
logged in
Traceback (most recent call last):
File "C:\Users\Knitt\Google Drive\Python\TTD.py", line 82, in mail
TypeError: cannot concatenate 'str' and 'NoneType' objects
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 3 trying again in five seconds for tesing 3
max retries exceeded, failed to send email
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I am getting the following error when trying to send a message via the Tones Editor for v69. The message does get to the recipient(s).
I seen there was a similar post and looked like it got fixed. Wondering if the update made it the Pi version.

Good catch. I didn't include the updated TonesEditor8c.pyc file in the last zip file. I'll get that fixed tonight.

Andy
 

mhensley71x

Member
Joined
Jan 17, 2017
Messages
2
To send MMS to Verizon you need to use xxxx@vzwpix.com rather than xxxx@vtext.com

Andy

I tried using vzwpix.com, but they did not receive anything.

Prepaid phones can be tricky. If @vzwpix.com doesn't work, try @mypixmessages.com

Edit: have them take a photo with their smart phone then email it to you from the text app on their phone. Then see what email address you receive it from. Emailing it from their email app won't work.

Ok, I will try that. Thanks.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I went live with v69 and this morning and had test pages done for every department. The Verizon choice on this did not work. When the test pages were done, the Verizon addresses did not go out as separate messages, they were included in the group messages for all users. I opened my config.cfg file and double checked it, it is set to "email_send_sequential = Verizon"

if the page is received outside the excluded times then the program goes directly to "setting mail server up" and the redundant_tones.txt file does not get updated, and then I get duplicate pages sent, one from each instance

These should be fixed in this release.

I am getting the following error when trying to send a message via the Tones Editor for v69. The message does get to the recipient(s). I seen there was a similar post and looked like it got fixed. Wondering if the update made it the Pi version.

I checked this again, and I did have the changes incorporated into the TonesEditor .pyc file. Are you sure you had the latest version I posted? Grab the one from the link above to be sure.

Andy
 

KC1IMD

Member
Feed Provider
Joined
Feb 6, 2007
Messages
183
Location
Connecticut
I would like to second that earlier motion and would like to thank Andy as well. You have helped the fire service tremendously. Thank you for your continued dedication to this tremendous project.
 

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
These should be fixed in this release.
Andy

I installed the fix and had test pages done, the Verizon setting worked this time, each Verizon address had it's own email. But, when doing the page the dispatcher stacked all 4 tone sets together, TTD picked up the 1st, 2nd, and 4th set of tones, for some reason the 3rd set was skipped. I went to check the log file and there was not one created. I restarted TTD and had the dispatcher do a test page for the 1 missed set of tones and TTD picked it up and did create a log file. I'll watch to see if it happens again in the future.

marvin
 

KC1IMD

Member
Feed Provider
Joined
Feb 6, 2007
Messages
183
Location
Connecticut
I am running V69 and on the status screen I see that TTD received the call but it is not showing that it sent the email, which it did. Did I miss a config setting?
 

BigRedBox80

Member
Feed Provider
Joined
Apr 23, 2015
Messages
170
I am running V69 and on the status screen I see that TTD received the call but it is not showing that it sent the email, which it did. Did I miss a config setting?

Mine also.

Andy, a feature request if I could. When you drag to expand the TTD window, it doesn't actually expand the view, just changes the window size. Could you expand the log window when the program height is changed?
 

Attachments

  • 2017204015220.png
    2017204015220.png
    50 KB · Views: 261

BigRedBox80

Member
Feed Provider
Joined
Apr 23, 2015
Messages
170
The program deletes the WAV (uncompressed) file, but keeps the smaller mp3 and AMR files. If there is nothing in your /audio folder, that probably means that you don't have ffmpeg properly installed and the mp3 and amr files are never being created. In that case, the program sends the larger WAV file instead before deleting them.

Andy

So, I've got the ffmpeg in the folder, I see it pop up and convert but in my audio folder I still only have AMR and WAV. Any suggestions?

Code:
Waiting for Silence **LOCATION ID** 20:33:55 on 01/20/17
Done recording **LOCATION ID** 20:33:55 on 01/20/17
done writing WAV **LOCATION ID** 20:33:55 on 01/20/17
done converting to MP3 **LOCATION ID** 20:33:56 on 01/20/17
done converting to AMR **LOCATION ID** 20:33:58 on 01/20/17
 

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
Andy, a feature request if I could. When you drag to expand the TTD window, it doesn't actually expand the view, just changes the window size. Could you expand the log window when the program height is changed?

Also, could it remember the size and position on the screen after it has been moved to a different spot.

marvin
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I am running V69 and on the status screen I see that TTD received the call but it is not showing that it sent the email, which it did. Did I miss a config setting?

This should be fixed in the "69a" test version here.

Andy
 

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
This should be fixed in the "69a" test version here.

Andy

I can not get version 69a to run. I ran the debug and it said;
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Python27\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", line 270, in load_module
File "C:\Users\Knitt\Google Drive\Python\build\TwoToneDetect69a_debug\out00-PYZ.pyz\pkg_resources", line 48, in <module>
File "C:\Users\Knitt\Google Drive\Python\build\TwoToneDetect69a_debug\out00-PYZ.pyz\pkg_resources.extern", line 61, in load_module
ImportError: The 'six' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.

Thanks
Marvin
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I can not get version 69a to run. I ran the debug and it said;
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Python27\PyInstaller-2.1\PyInstaller\loader\pyi_importers.py", line 270, in load_module
File "C:\Users\Knitt\Google Drive\Python\build\TwoToneDetect69a_debug\out00-PYZ.pyz\pkg_resources", line 48, in <module>
File "C:\Users\Knitt\Google Drive\Python\build\TwoToneDetect69a_debug\out00-PYZ.pyz\pkg_resources.extern", line 61, in load_module
ImportError: The 'six' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.

Should be fixed now in the latest test build.

Andy, a feature request if I could. When you drag to expand the TTD window, it doesn't actually expand the view, just changes the window size. Could you expand the log window when the program height is changed?

Done, in the latest test version linked to above.

Also, could it remember the size and position on the screen after it has been moved to a different spot.

I'll add that to the list for a future release.

Andy
 

Westernbound

Member
Joined
Aug 11, 2014
Messages
35
Location
Dickens TX
I'm still having trouble getting v69a to run. I put it on my live machine and when I try to start the program I have to try 3 or 4 times before the program runs. It does not run on every execution of the program file. I went into doss and ran the debug version 5 times in a row and it worked all 5 times. I went back to my TTD program folder and tried to run v69a 3 times in a row and it did not open on those 3 tries. I went to my v68 folder and tried v68 and it opened first try. Went to my v69 folder and ran v69 and it opened first try. Went back again to my v69a folder and tried 3 times and it did not open. Each version folder is in the same directory.

I tried checking the log file, but there is not a log file for the times that the program does not successfully open. Also, I had copied my config.cfg and remote.cfg from v69 to v69a so the settings are the same in both versions. I removed my config.cfg and remote.cfg and put back the program originals and v69a still does not open on every execution of the program file. Not sure why I am having this issue.

This in running on Win7 pro 32 bit. The program seems to work every time on my Win10 pro 64 bit computer that I tested it on.

Marvin
 
Top