turnrye / inservice

MIT License
0 stars 0 forks source link

Get toneout info from safalert #1

Open turnrye opened 7 years ago

turnrye commented 7 years ago

Right now safalert sends emails with the following:

Delivered-To: ryan.e.t@gmail.com Received: by 10.237.52.97 with SMTP id w88csp8842571qtd; Thu, 5 Jan 2017 17:24:33 -0800 (PST) X-Received: by 10.28.86.131 with SMTP id k125mr709177wmb.89.1483665873731; Thu, 05 Jan 2017 17:24:33 -0800 (PST) Return-Path: bartonpager+caf_=ryan.e.t=gmail.com@gmail.com Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com. [2a00:1450:400c:c09::22c]) by mx.google.com with ESMTPS id n5si61963700wje.171.2017.01.05.17.24.33 for ryan.e.t@gmail.com (version=TLS12 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2017 17:24:33 -0800 (PST) Received-SPF: pass (google.com: domain of bartonpager+caf=ryan.e.t=gmail.com@gmail.com designates 2a00:1450:400c:c09::22c as permitted sender) client-ip=2a00:1450:400c:c09::22c; Authentication-Results: mx.google.com; dkim=pass header.i=@safalert.net; dkim=pass header.i=@sendgrid.info; spf=pass (google.com: domain of bartonpager+caf=ryan.e.t=gmail.com@gmail.com designates 2a00:1450:400c:c09::22c as permitted sender) smtp.mailfrom=bartonpager+caf=ryan.e.t=gmail.com@gmail.com Received: by mail-wm0-x22c.google.com with SMTP id a197so70wmd.0 for ryan.e.t@gmail.com; Thu, 05 Jan 2017 17:24:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:delivered-to:dkim-signature:dkim-signature :mime-version:from:to:reply-to:subject:message-id:date; bh=fPdf6rzggxPy4b/dJ/SoB9NTynAMUaxwYoSWcXsr754=; b=o6QeAJvqg/dgUXtIC8E1leUQcyJS3xvUBk1kWxKn6BcbtlzELwq83m5hspUkYzpKBu JJDlUbaiuwsESLwE+1cplSfMO5SFxKTo6ds+BUN8zUIp4pwsgWycY+tyMvy01u1CBvPi OFUW6tWQzccGBoayKyW4yrL3z2IoSelELdEGegAaCiz89VhdenAULB4TbPAFxBZ5C50n zwg2doJryn0AqD/LmOP16O0QcCvN0YBpPpaNN4rQbxbLBHITvuiOdnPu0vFdmYmjdWXR o9SY+o+GGwn+ULXAw9+YOu8P0i+YQXD5v9ZY2Ilu3/rHNMdHxLdmJvCmaHsW2okfi11w sloQ== X-Gm-Message-State: AIkVDXJj1yI8PIvpm/mfO7XaM7yGcpSnbhaXOdufXCW8yqVB0TR8Cev08ODVQ9VxjBzziduRz/mVi9IisR9FnMB1pa+h+A0= X-Received: by 10.28.24.74 with SMTP id 71mr748115wmy.74.1483665873420; Thu, 05 Jan 2017 17:24:33 -0800 (PST) X-Forwarded-To: ryan.e.t@gmail.com X-Forwarded-For: bartonpager@gmail.com ryan.e.t@gmail.com Delivered-To: bartonpager@gmail.com Received: by 10.80.153.17 with SMTP id k17csp8512396edb; Thu, 5 Jan 2017 17:24:31 -0800 (PST) X-Received: by 10.99.168.69 with SMTP id i5mr139266629pgp.10.1483665871710; Thu, 05 Jan 2017 17:24:31 -0800 (PST) Return-Path: alerts@safalert.net Received: from o2.ems.safalert.net (o2.ems.safalert.net. [167.89.64.187]) by mx.google.com with ESMTPS id g1si77695782plb.278.2017.01.05.17.24.31 for bartonpager@gmail.com (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2017 17:24:31 -0800 (PST) Received-SPF: pass (google.com: domain of alerts@safalert.net designates 167.89.64.187 as permitted sender) client-ip=167.89.64.187; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=safalert.net; h=mime-version:content-type:from:to:reply-to:subject; s=smtpapi; bh=KEvi5sCnrGly+XelPFYrroMikpc=; b=LB6YpzcggsLZ1oDYvkbbQMTRfL/Tx N5LseVaMKbrieLwXzsHqZl+EsAkk1fOEgrRkC4O8H9NaW475z5dScZRnQ2mbYx7G ViZ8YgubBI52h0/oEGbY6UAh8CJgeU2ieugPHC0j8L5fgU6MMSKLxEYwbLVUBl50 9svjLyFtzh++PY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=mime-version:content-type:from:to:reply-to:subject:x-feedback-id; s=smtpapi; bh=KEvi5sCnrGly+XelPFYrroMikpc=; b=M4unjqad9xzuiVHCqC tYtTevgwIo/HP5S3ggSfc5nK5wUo0fbsRGJHBCUTLJGM6dYSiCI+aDdURv40/0+0 PRyC93+nJqPZZqVPuwB7durqMaICMJRQ1RsysTRAo3OScY0ooqqDRd9hQagi8UKp tJbZo9EW9NbgVO4ZgExa1seoU= Received: by filter0030p1las1.sendgrid.net with SMTP id filter0030p1las1-30120-586EF1CE-16 2017-01-06 01:24:30.659143998 +0000 UTC Received: from localhost (ec2-52-37-19-41.us-west-2.compute.amazonaws.com [52.37.19.41]) by ismtpd0004p1sjc2.sendgrid.net (SG) with ESMTP id xE0I_Q_zSuGE3Apw3Ocf-w for bartonpager@gmail.com; Fri, 06 Jan 2017 01:24:30.473 +0000 (UTC) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_be78f63b17a33b6d0a8babb7f026cc22" From: alerts@safalert.net To: bartonpager@gmail.com Reply-To: alerts@safalert.net Subject: 200 ALERT Message-ID: xE0I_Q_zSuGE3Apw3Ocf-w@ismtpd0004p1sjc2.sendgrid.net Date: Fri, 06 Jan 2017 01:24:30 +0000 (UTC) X-SG-EID: 8tNxmV0jzzPzE6W5j+Ajsmp1hGpqL4seICdxkQ6Z9n7h8dGMKaopovKSTQJ3YHhWO8usgsnALVhTiA Ggz+APsUH2j6P9Ri4CLfqFWM3n0Fs+3ZJ+PHHaw5nx7NDdjJHSuG4r4sE8OWDtLoXvi3caJNlqZAVH I4MXZsDrP1ML27DBvGKDLXsGzakSY+0KXiizVgb9ZbaIzLksLtsmMVdikw== X-Feedback-ID: 1815244:XFQPzWYtzfHIfKdZ5CxHvIOd4eBDvE5K6hG6v4EgLAY=:XFQPzWYtzfHIfKdZ5CxHvIOd4eBDvE5K6hG6v4EgLAY=:SG

--=_be78f63b17a33b6d0a8babb7f026cc22 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1

Dispatch Time: 2017-01-05 07:24:08 PM CDT Sent By SafAlert --=_be78f63b17a33b6d0a8babb7f026cc22 Content-Transfer-Encoding: base64 Content-Type: audio/mpeg; name=Dispatch_01-06-2017_1923-37.mp3 Content-Disposition: attachment; filename=Dispatch_01-06-2017_1923-37.mp3; size=90720

--=_be78f63b17a33b6d0a8babb7f026cc22--

Ideally we'd be able to directly integrate with them so that we can get the alerts directly (no e-mail required), but maybe the integration will require e-mail. Either way, through this we should get the time of the event, the type of event, and the recording.

turnrye commented 7 years ago

I e-mailed safalert asking for API docs; they don't have any information on an API published online.