Agisoft Metashape

Agisoft Metashape => Feature Requests => Topic started by: jan on July 21, 2011, 05:37:51 PM

Title: Add Email Notification feature after finish process!
Post by: jan 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.
Title: Re: notification email after finished batch process?
Post by: Alexey Pasumansky 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.
Title: Re: notification email after finished batch process?
Post by: FoodMan on August 23, 2011, 02:48:44 PM
That'd be pretty useful ... 8)

f/
Title: notification using e-mail
Post by: Kjellis85 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.
Title: Re: notification using e-mail
Post by: Wishgranter 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....
Title: Re: notification using e-mail
Post by: Kjellis85 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.
Title: Re: notification using e-mail
Post by: Wishgranter 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......

Title: Re: notification using e-mail
Post by: Alexey Pasumansky 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).
Title: E-Mail notification when process finishes.
Post by: Patribus 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
Title: Re: notification using e-mail
Post by: Exhale 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.
Title: Re: notification using e-mail
Post by: Alexey Pasumansky 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")
Title: Re: notification using e-mail
Post by: Exhale 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.
Title: E-mail alerts when finished processing
Post by: Max 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
Title: Add Email Notification feature after finish process!
Post by: Mohammed 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
Title: Re: E-mail alerts when finished processing
Post by: ThomasVD 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 ;)
Title: End of Processing notifcations
Post by: BjFaeTorphins on December 24, 2017, 09:05:39 PM
I'm thinking it might be handy to receive an email when each processing step ends.  On long runs it would save having to check on progress.
Title: Re: Add Email Notification feature after finish process!
Post by: michalmoc on November 27, 2022, 01:54:11 PM
Any update on this ?