Forum

Author Topic: Add Email Notification feature after finish process!  (Read 19301 times)

jan

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Add Email Notification feature after finish process!
« on: July 21, 2011, 05:37:51 PM »
Some batch processes take much time (50h+), and their exact process time is not easy to predict.

Therefore it may be useful to be able to fill in an email address to which a notification is sent when the batch process is finished (or crashed)?

This would be usefull if photoscan is running on a remote computer, and avoids the need to (re)check if the process is already finished or not.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: notification email after finished batch process?
« Reply #1 on: July 21, 2011, 06:06:55 PM »
Hello jan,

The next PhotoScan Pro update will support Python scripting, so one could include sending email line to the script (on UNIX OS it shouldn't be a problem I guess).
Another notification possibilities are not planned at the moment, but thank you for the suggestion.
Best regards,
Alexey Pasumansky,
Agisoft LLC

FoodMan

  • Sr. Member
  • ****
  • Posts: 477
    • View Profile
Re: notification email after finished batch process?
« Reply #2 on: August 23, 2011, 02:48:44 PM »
That'd be pretty useful ... 8)

f/

Kjellis85

  • Full Member
  • ***
  • Posts: 220
  • Archaeological field supervisor
    • View Profile
    • Contact information at University of Tromsø
notification using e-mail
« Reply #3 on: March 05, 2012, 02:40:16 PM »
I think this might have been discussed before, but I'll start this thread nevertheless. I was wondering if it is possible to create a e-mail notification system to alert when the model has finished or when it crashes. I have no programming capabilities whatsoever, so writing a python script is out of the question for me. If someone could or have written something like this I would very much like to try it. Another option is to build such a feature into the program itself, as I imagine that there are many like me that would like this feature.

Wishgranter

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
    • Museum of Historic Buildings
Re: notification using e-mail
« Reply #4 on: March 05, 2012, 11:50:56 PM »
for this is best the http://www.agisoft.ru/forum/index.php?board=11.0 adn sometimes the general forum that things get clear what is a feature request and what some technical issues....
----------------
www.mhb.sk

Kjellis85

  • Full Member
  • ***
  • Posts: 220
  • Archaeological field supervisor
    • View Profile
    • Contact information at University of Tromsø
Re: notification using e-mail
« Reply #5 on: March 06, 2012, 02:43:09 PM »
for this is best the http://www.agisoft.ru/forum/index.php?board=11.0 adn sometimes the general forum that things get clear what is a feature request and what some technical issues....

I don't mean to be rude, but I have a real hard time understanding what you are saying ???. Being bad at english is one thing, but you could at least use punctuation.

Since my question was both a feature request and a general question aimed at users of the software and forum, I placed it in the general section rather than the feature request section.

Wishgranter

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
    • Museum of Historic Buildings
Re: notification using e-mail
« Reply #6 on: March 06, 2012, 11:29:17 PM »
Yes, my eng is not so good, and afther 31 hours work behind me  caused to reply like that  :'( don?t take it personaly.......

and about the feature request it could be better that everyone now if some of ideas was not posted before and possible something like a pool of "features" that everyone can vote and developpers can get info what is hot and what not. something like a "thanx" or "like " button in that thread......

----------------
www.mhb.sk

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: notification using e-mail
« Reply #7 on: March 29, 2013, 07:22:15 PM »
Hello,

Sorry for getting back to this topic, just wanted to say that it's possible to send e-mail notifications using Python scripts (sptmlib module, for example).
Best regards,
Alexey Pasumansky,
Agisoft LLC

Patribus

  • Full Member
  • ***
  • Posts: 170
    • View Profile
E-Mail notification when process finishes.
« Reply #8 on: May 26, 2014, 04:23:44 PM »
Hello, for some projects I use batch processing which may take several days.

It would be helpful to have an e-mail sent when the process is finished.

Is such an integration possible?

Best regards
Patribus

Exhale

  • Full Member
  • ***
  • Posts: 141
    • View Profile
Re: notification using e-mail
« Reply #9 on: May 27, 2014, 12:35:22 AM »
Hi Kjellis85, 
Thx for the topic.

Alexey ,
i am also interested in sending e-mail notifications using Python scripts.
Does it take so much time for you to write a sample script?

Thx.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: notification using e-mail
« Reply #10 on: May 27, 2014, 12:05:32 PM »
Hello Exhale,

Once I've tried the following script, but haven't checked it lately, so I'm not sure if it works for non-gmail boxes. Also note that e-mail address and password should be input in the sample script body:

Code: [Select]
import PhotoScan
import smtplib

gmail_user = "email@gmail.com"
gmail_pwd = "password"
FROM = "email@gmail.com"
TO = ['test@agisoft.ru'] #must be a list
SUBJECT = "Testing sending using gmail"
TEXT = "Testing sending mail using gmail servers"

# Prepare actual message
message = """\From: %s\nTo: %s\nSubject: %s\n\n%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
try:
#server = smtplib.SMTP(SERVER)
server = smtplib.SMTP("smtp.gmail.com", 587) #or port 465 doesn't seem to work!
server.ehlo()
server.starttls()
server.login(gmail_user, gmail_pwd)
server.sendmail(FROM, TO, message)
#server.quit()
server.close()
print('successfully sent the mail')
except:
print( "failed to send mail")
Best regards,
Alexey Pasumansky,
Agisoft LLC

Exhale

  • Full Member
  • ***
  • Posts: 141
    • View Profile
Re: notification using e-mail
« Reply #11 on: May 27, 2014, 07:43:47 PM »
Hi Alexey,

I can confirm, it works very well with gmail. Thank you for your help indeed.

Max

  • Newbie
  • *
  • Posts: 3
    • View Profile
E-mail alerts when finished processing
« Reply #12 on: April 29, 2015, 04:03:30 PM »
Hi all,

I think an email alert that could be selected with a processing step would be very helpful. This could possibly even be implemented as an option in batch processing so that I could choose to send emails after every step, when one finishes, or when the whole batch finishes. Our processing workstation is not used for any other purpose and it would be nice to not have to check it throughout the day.

Thanks,
Max

Mohammed

  • Full Member
  • ***
  • Posts: 192
    • View Profile
Add Email Notification feature after finish process!
« Reply #13 on: November 21, 2016, 10:10:10 PM »
Dear Agisoft,

Due to the Huge time (with big projects) that Agisoft take in process (may be days or more) and i'm not every day at my office,
Is it possible to add a Notification feature, i mean when the photoscan end the process it send me an email.
I'm sure it will be very helpful to many people.

Thank you,
Mohamed

ThomasVD

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: E-mail alerts when finished processing
« Reply #14 on: September 29, 2017, 04:40:08 PM »
Hi all,

I think an email alert that could be selected with a processing step would be very helpful. This could possibly even be implemented as an option in batch processing so that I could choose to send emails after every step, when one finishes, or when the whole batch finishes. Our processing workstation is not used for any other purpose and it would be nice to not have to check it throughout the day.

Thanks,
Max

I'd like to second this, email alerts as an option within batch processing would be very helpful for us non-python wizards.

Edit: and given that this topic has over 6000 views I'd wager other people are also interested in this feature ;)