Open movo-doo opened 1 month ago
This is an interesting idea. I can definitely see the utility in this. There are definitely a few implications for this. I'd lean towards some more general mechanism for user alerting.)
Is there a comparable feature in other astronomy software?
Also, for a different type of notification, see #101 . (Although this was more for some of the startup sounds.)
Any seasoned coders here able to put this in action. Perhaps the settings page can have a txt message notification Y/N option as well(defaulted to No and only able to be changed to Yes if config file has appropriate entrys defined...
Proof of concept to send a txt message to email address set in the schedule screen or config file (could be default) and changeable in the schedule page. Example Events that could trigger the txt message could be start of an imaging session with Target Name in the Subject line as well as duration and light pollution filter y or n Another event could be the end of the event when it occurs. This could be simply a proof of concept to get things going. I know I was able to do this in visual basic code with the following SNIPPET
' Set your sender email address oSmtp.FromAddr = "kennethmascola@gmail.com"
' Add recipient email address oSmtp.AddRecipientEx "my cell phone number including area code@msg.my cellular service provider(eg verizon).com", 0 oSmtp.Subject = Stock_Symbol + " Current Price" oSmtp.BodyText = S oSmtp.ServerAddr = "smtp.my internet provider server address.ca" oSmtp.ConnectType = ConnectTryTLS
' I did not require username nor password for my service providers to send message to my cell... worked like a charm ' User and password for ESMTP authentication, if your server doesn't require ' User authentication, please remove the following codes. ' oSmtp.UserName = "test@emailarchitect.net" ' oSmtp.PassWord = "testpassword"
a similar example in python is at this location. https://github.com/acamso/demos/blob/master/_email/send_txt_msg.py