mattstarr / autosmoker

Code for Rasp Pi automated meat smoker and related components
1 stars 1 forks source link

script halting on meat at temp email alert #14

Closed mattstarr closed 10 years ago

mattstarr commented 10 years ago

Script halts on email alert (and several other circumstances -- some hard to reproduce). Likely, this will be solved/resolved with surrounding suspect code with try/excepts.

L-Bob-Rife commented 10 years ago

This may be an easier method for sending email. Check it out: http://www.raspberrypi.org/forums/viewtopic.php?f=36&t=32077

On Tue, Jul 8, 2014 at 7:57 PM, Matt Starr notifications@github.com wrote:

Script halts on email alert (and several other circumstances -- some hard to reproduce). Likely, this will be solved/resolved with surrounding suspect code with try/excepts.

— Reply to this email directly or view it on GitHub https://github.com/mattstarr/autosmoker/issues/14.

L-Bob-Rife commented 10 years ago

also: http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html

On Wed, Jul 9, 2014 at 4:21 PM, Sean May smaygc82@gmail.com wrote:

This may be an easier method for sending email. Check it out: http://www.raspberrypi.org/forums/viewtopic.php?f=36&t=32077

On Tue, Jul 8, 2014 at 7:57 PM, Matt Starr notifications@github.com wrote:

Script halts on email alert (and several other circumstances -- some hard to reproduce). Likely, this will be solved/resolved with surrounding suspect code with try/excepts.

— Reply to this email directly or view it on GitHub https://github.com/mattstarr/autosmoker/issues/14.

mattstarr commented 10 years ago

It had crossed my mind to run an smtp daemon and send from the device, but as mentioned in the above links, it is entirely possible that the email will be assumed to be spam and not get relayed. I believe the problems to be in one of two locations: 1) hanging on authentication/login/sending because of incorrect settings (easily remedied with some more debugging) or 2) something related to the events occurring during the process, not necessarily the sending of email. I intend to work on this over the next few hours (I've had other stuff come up over the past few days), but am open to exploring the use of an smtpd (I actually had already started reviewing that option, but am not 100% convinced that the script halting is due entirely to the method/use of the external smtp server -- though I will investigate that shortly).

mattstarr commented 10 years ago

I found the bug: It was not that the program had stopped running and that we found out on refreshing the page, but the opposite -- by demanding a page refresh before it has finished loading, it kills it. What I had assumed the bug was was incorrect, and all email issues should currently be properly handled. Closing this issue and reopening with correct title!