Email Script Help

Started by mike, February 18, 2019, 08:30:43 PM

Previous topic - Next topic

Tuicemen

I'm not sure you want a email for every open close event, maybe just an open event?
I've been playing with this code a bit as I feel it may be of use for some things and expanded on.
I can get this to send emails to any device in HG that has the option selected, including Door/Window sensors.
However I get 3 or 4 emails at a time so I still need to tweak it a bit.
Please Read Topic:
General Forum Etiquette
Before you post!

mike

I do not want it to email every door open or close;  I have a test DS10 on my desktop to use as tester.  When finished it will be triggered by TAMPER (I think this reports quicker than door open & causes SC1200 to trigger alarm even if activity monitor does not show door open.  Anyway, it will be triggered by TAMPER *AND* ARMED.

Tuicemen

OK, I understand but I'm not sure the Tamper reports quicker then an open.
However I've never played with that enough to be sure.
Please Read Topic:
General Forum Etiquette
Before you post!

mike

How does one know if email is functioning in HG?  my log shows ZERO comment with the word email, my email address, my smtp server, anything!  yet under programs-social there is the email thing with green light on it.

I do not think it is working

Tuicemen

Does my program work and send a email if you enter the info?
Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

Since your using a pre-release PiX10Hub version and if you haven't done a update/upgrade when installed or even since installing that beta, that could be your issue.
Please Read Topic:
General Forum Etiquette
Before you post!

mike

IIRC updating to stable.37 a week ago did update and upgrade as part of it...   

I just found both yours and my email programs red circle;  they need to be disabled and then enabled again!  then they went yellow!  and i am back to them going green for .2 sec when widget pushed.  No email tho and no code in the log.

but but but!  THANKS!  since it slowed down today I replaced my SD card with last backup...  it is old stable v1 572!!!

so tomorrow I will update to the new version put up tonight!  that will get upgrade/update again.

gosh, so easy to go backwards!

mike

I also just found that both your and my startup code in the hgx is gone!  probably an old HG version bug... 

Tuicemen

Quote from: mike on February 19, 2019, 08:15:11 PM
IIRC updating to stable.37 a week ago did update and upgrade as part of it...   
But your still using a beta PiX10Hub image
Please Read Topic:
General Forum Etiquette
Before you post!

mike

Quote from: Tuicemen on February 19, 2019, 08:18:35 PM
Quote from: mike on February 19, 2019, 08:15:11 PM
IIRC updating to stable.37 a week ago did update and upgrade as part of it...   
But your still using a beta PiX10Hub image

But other than you changing directories around, how is my older beginning image not as good as what you promote today?  I believe we both use the same programs with the same updates?

Tuicemen

There were other things done with the initial boot besides moving directories for HG.
Do you know what beta or RC test your running?
Beta versions usually contain bugs which can affect other things.
It is not good practice to try and run a Beta build for regular use.
Please Read Topic:
General Forum Etiquette
Before you post!

mike

I agree running beta programs when newer stable versions are available is not wise.  But I do not believe I am running any beta programs.  My HG is upto date with latest Gene build.  Doing his automatic update in HG maintenance page includes update and upgrade so all raspberry pi programs are also updated at the same time.  My HAbridge is a non beta working version that does its job flawlessly so I see no reason to change its version.  You added the start screen menu when opening a putty window;  that does not bother me as I know how to tab to finish and close it when I want to talk to the pi.

What am I missing?

Tuicemen

Sound like your running Beta 2.
If you feel the image is work for you, I 'll not try to explain all the image differences.
However if programs are not located where the author designated them to be many things possibly will not work as coded.
Please Read Topic:
General Forum Etiquette
Before you post!

mike


bkenobi

the update/upgrade has nothing to do with a HG update.  You need to run an ssh session and run the update/upgrade commands.  HG may be updated but the reason email stops working is the certificates mono uses becoming out of date.  Update/upgrade will resolve this.  It will happen around every 2-3 months.

SMF spam blocked by CleanTalk