Thanks Mark, your rewrite works well, and I've checked it into SVN.

- David

On 22/05/18 22:25, Mark Jessop wrote:
Here's a quick update to that script: https://gist.github.com/darksidelemm/e8c2b1d30810c9ac0e2cc9c91ae85d6d

- Python 2 & 3 compatible.
- Command line options for setting SMTP settings.
- Less arcane python2 print syntax. (I didn't even realise that >>sys.stderr was a thing in Python 2) - Has a rate limit option, so you don't get spammed with emails (I'm guessing there was a rate limit within FreeDV for this, but anyway...)

I'm sure I could do better, but it's 10PM and I should be getting ready for bed ;-)

73
Mark VK5QI

On Tue, May 22, 2018 at 6:09 PM, Tomas Härdin <tjop...@acc.umu.se <mailto:tjop...@acc.umu.se>> wrote:

    Nice! But I think this

         # Create a TCP/IP socket

    should say UDP/IP :)

    /Tomas

    tis 2018-05-22 klockan 17:18 +0930 skrev David Rowe:
     > I've prototyped this feature in SVN rev 3618, UDP options are on
     > Tools-Options, and I have it sending me Gmail when FreeDV gets sync
     > using this simple Python script:
     >
     >
    https://svn.code.sf.net/p/freetel/code/freedv-dev/src/send_email_on_s 
<https://svn.code.sf.net/p/freetel/code/freedv-dev/src/send_email_on_s>
     > ync.py
     >
     > Works quite well .. gmail comes thru in a few seconds.  Some extra
     > features might be to add the decoded audio as a wave file attachment,
     > or
     > the off air txt field that people often put their callsign in.
     >
     >  From tomorrow I'll have this running on 7.177MHz so I can monitor
     > for
     > incoming FreeDV traffic.
     >
     > - David
     >
     > On 17/05/18 01:17, Curt, WE7U wrote:
     > > On Wed, 16 May 2018, David Rowe wrote:
     > >
     > > > I'm working on a simple way to alert me when someone is calling
     > > > on
     > > > 7.177MHz on 700D, but I am away from the radio.
     > > >
     > > > As a first step I'll make FreeDV send a message to a UDP socket
     > > > on
     > > > localhost when it detects sync, I can then write a Linux script
     > > > to msg
     > > > me somehow.
     > >
     > > +1.
     > >
     > > My favorite would be a "mailx" call from a UDP receiver Perl
     > > script, but
     > > people can use darned-near ANY language to do a UDP receiver and do
     > > what
     > > they want. Nice!
     > >
     >
     > -------------------------------------------------------------------
     > -----------
     > Check out the vibrant tech community on one of the world's most
     > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
     > _______________________________________________
     > Freetel-codec2 mailing list
     > Freetel-codec2@lists.sourceforge.net
    <mailto:Freetel-codec2@lists.sourceforge.net>
     > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
    <https://lists.sourceforge.net/lists/listinfo/freetel-codec2>

    
------------------------------------------------------------------------------
    Check out the vibrant tech community on one of the world's most
    engaging tech sites, Slashdot.org! http://sdm.link/slashdot
    _______________________________________________
    Freetel-codec2 mailing list
    Freetel-codec2@lists.sourceforge.net
    <mailto:Freetel-codec2@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/freetel-codec2
    <https://lists.sourceforge.net/lists/listinfo/freetel-codec2>




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to