X10 Community Forum

📱🖥️PiX10Hub ( Always Evolving Open Source) => 💬General Discussion => 📝User created HG Scripts (programs) => Topic started by: Tuicemen on February 22, 2019, 08:29:12 AM

Title: 📧HG Smart E-mailer
Post by: Tuicemen on February 22, 2019, 08:29:12 AM
mike inspired me to create this which essentially gets rid of 95% of my email scripts. :)%
Thanks mike!
This adds the option to email the specified email addresses (yes you can specify as many as you like) when the module is switched on.
This works for all HG device types (Lights, Switches, Dimmers, Sensors, Door/Window, Sirens…..)
I've tested this with X10, Zwave, Philps Hue, WeMo, Virtal Devices, and Ha-Bridge configured devices. So virtually anything you wish to be informed of when turned on, opened or switches to a status of 1, is now just a few simple clicks to setup. ;)
Download and rename the attached txt file to E-mailer.zip and unzip then from HG Messaging and Social click actions and import program.
browse to the unzipped E-mailer folder and click on 1016-Smart_E-mailer.hgx to install it.
if you have any Ideas to expand on this programs possibilities feel free to suggest them or If your into coding add them your self.
However if you do modify please share your improvements or fixes.
Questions are never to dumb so ask away! ;)
Use at your own risk! I can't be responsible for you spamming your self or others! rofl
Note: The link for version 2 which includes more options can be found further down in this thread http://forums.x10.com/index.php?topic=30881.msg181710#msg181710 >!
Title: Re: HG Smart E-mailer
Post by: mike on February 22, 2019, 10:42:58 AM
looks great!  I unremarked your debug line as I want to see what it is trying to send (especially now since my send does not work).

but I have an issue... after importing it & enabling it, I have lost ability to go to my 9 of my 11 groups;  click on them and HG just hangs until I pick one of the 2 of 11 that DO open...

One of my fan modules is gone from both those working screens too;  just erased off the pages!...   AND that A16 module is gone from the x10 module list, and so my two schedulers (one to turn it on, the other to turn it off) do not show it any longer under modules...

Under config, the non opening groups hang also and do not open - like they do not exist any longer?

programs won't open to let me turn the emailer off...

most other config windows are locked also...

reboot of pi next...





Title: Re: HG Smart E-mailer
Post by: Tuicemen on February 22, 2019, 10:51:32 AM
The program does take a bit to load as it has to find all devices in HG and add the options to each device.
A reboot may help with that.
The debug just states what the program is attempting to send for a message it will not show you problems with your email.
Also not having the required program for solar time will cause the dusk dawn condition not to work.
I suspect everything else will work if the dusk dawn setting isn't selected.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 10, 2019, 08:02:51 PM
I've been thinking of adding some improvements to this.
Currently it sends a standard message of the Time and the module name that was turned on or opened, so I'm thinking of adding a custom message option which would over ride the default one if entered.
The custom message would be be preceded by the time the device was triggered.

I also had considered adding specific email recipients addresses for each, but I think that just adds more to setup for each modules emailer. ::)

Title: Get a Text when a module is turned on!
Post by: Tuicemen on March 10, 2019, 08:26:17 PM
Some may already know this, but for those that don't, this will send a text notification to your phone if the address is entered in the email options.
A SMS is just a simple e-mail using your phone number followed by your carriers @ info!
I posted a list of carrier address info some time ago which may have the info required.
http://forums.x10.com/index.php?topic=17747.msg115065#msg115065
Google may have a newer more up to date list of carriers sms info.
>!
Title: Re: HG Smart E-mailer
Post by: bkenobi on March 11, 2019, 11:37:25 AM
Email to SMS does work well and I've done that through HG in the past so it's definitely possible with Verizon at least.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 11, 2019, 12:05:11 PM
I've done it in the past with Rogers as well as Telus Mobility.
I can confirm it works with Telus Mobility in HG
 >!
Title: Re: HG Smart E-mailer
Post by: mike on March 11, 2019, 12:24:37 PM
Email to SMS does work well and I've done that through HG in the past so it's definitely possible with Verizon at least.

You need HG email working first though.  I still cannot get simple email to send from HG.  HG remembers one email account setting and won't change it on my pi's.  The account data is stored in some obscure location I have not yet found so I cannot delete it.
Title: Re: HG Smart E-mailer
Post by: bkenobi on March 11, 2019, 03:39:10 PM
If I remember correctly, Gene used Base64 encryption to store some sensitive data.  It's not security, but at least it keeps things from being directly searched for I suppose.  On the other hand, it means that you can't easily locate some things that I think should be exposed (scheduler events used to be done this way but may not any more).  I don't know where the settings for things are located anymore, but a lot of your config should be in the main HG folder.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 12, 2019, 10:50:33 AM
I've been playing over some scenarios in my head for using this.
I do see times when I may wish a text instead of a email or the other way around for a particular module turning on.

It might be best to have a optional recipient input field which would over ride the other email recipients listed saved.
Any thoughts on this?
Title: Re: HG Smart E-mailer
Post by: mike on March 12, 2019, 11:24:44 AM
You're doing wonderful things with this tuicemen.  I hope to be able to try your module update to include emailing soon!

bKenobi, thanks.  That makes sense and is surely it.  I have now been able to see the 'correct' email account settings (in base64 code) in systemconf.xml file, compared them to the non changing ones in my working HG pi file.  I copied them from the working pi file to non working pi - and still no send.  But at least they show correctly now in settings- Options.  Next to check log again for why it is still not sending...
Title: Re: HG Smart E-mailer
Post by: mike on March 12, 2019, 11:43:24 AM
I'm going to circle back soon and try your new email notification adder to modules!  My HG is emailing finally!  Yahoo!  Copying the account data over did not fix it after restarts and reboots.  BUT UPGRADING HG FROM STABLE.37 TO STABLE.39 DID FIX IT! 
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 12, 2019, 01:08:08 PM
I've not update this yet, thought I do have options I've commented on thus far running to test how well they'll perform.
I've also fixed the warnings about outdated code so going forward HG shouldn't have a issue.
I may add other options prior to the next release build if I or anyone else thinks of something useful. ;) ;)
 >!
Title: Re: HG Smart E-mailer
Post by: mike on March 14, 2019, 09:01:28 AM
If you want a tester send me a copy to install.  If not, post as soon as you can;  I will wait.  Thanks.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 14, 2019, 09:11:02 AM
Thanks Mike, I realy don't need any testers what I have now works!
I doubt I'll get anything posted till next week now, this is one reason why I asked for option suggestions.
I don't plan to continue adding to this once I've posted the next version and I've ran out of ideas. ::) :'
 >!
Title: Re: HG Smart E-mailer
Post by: mike on March 15, 2019, 08:29:26 AM
Just wanted to report back:  I imported your smart emailer last night, used it on all my door sensors with send if door opened.  Alarm set and I made it thru the night with no emails.  This morning, alarm turned off automatically as normal, then we went thru 2 of the doors:  I got emails each time!  GREAT!  THANK YOU!

Now I just need to see where you decide if the alarm is set or not;  without looking yet, I assume you watch the HG built in alarm arm.  Of course I am not using that as I use a module that sends HA-bridge command to send RF security ARM command to my SC1200.  I assume it will be easy to find that IF line and change it to look at my module instead.

EDIT:  just peeked.  So you use Arm.IsOn & Arm.IsOff...   I would like to use my arm module that sends habridge command instead...

As an aside, is there any reason to try to incorporate the HG security console instead/also?
Title: Re: HG Smart E-mailer
Post by: mike on March 17, 2019, 02:56:20 PM
I just thought of your dusk/dawn routine choice...  so I turned it on;  it thinks dusk begins at 2pm haha!  I neglected to put in lat/long.  ANYWAY, I suspect this choice will be sufficient to match up close enough to my use of turning on/off the ARM alarm.  THANKS again!  If it works tonight, I am sending you a nice donation my friend!
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 19, 2019, 02:13:07 PM
Now I just need to see where you decide if the alarm is set or not;  without looking yet, I assume you watch the HG built in alarm arm.  Of course I am not using that as I use a module that sends HA-bridge command to send RF security ARM command to my SC1200.  I assume it will be easy to find that IF line and change it to look at my module instead.

EDIT:  just peeked.  So you use Arm.IsOn & Arm.IsOff...   I would like to use my arm module that sends habridge command instead...

As an aside, is there any reason to try to incorporate the HG security console instead/also?
I use a HA-Bridge command to arm my ds7000 however I also have a script that when the arm signal is seen it arms the HG security.
This allows me to see the condition of my security system when not home, as well I can watch the condition of my security system to trigger other events. For example sending me snap shoots from all my IP cameras if my security system is tripped.
Or you could send only snap shots from a camera watching a door  if opened but only when your system is armed.
 There are lots more reasons to have the HG security module setup, but I can only think of one reason not to have it setup.
Title: Re: HG Smart E-mailer
Post by: mike on March 20, 2019, 09:32:46 AM

I also have a script that when the arm signal is seen it arms the HG security.

Sounds like good way to go.  Mind sharing your script?  I am thinking it is a little program?
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 20, 2019, 09:56:49 AM
the scripts are simple wizard scripts that arms and disarms the security system simular to these: http://forums.x10.com/index.php?topic=30855.msg180780#msg180780
instead of watching for the arm/disarm status I watch for the Raw RF.
If you used a Keyflob for setting up your Broadlink use it if you used the sh24 use its code.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 21, 2019, 08:33:51 AM
Here is version 2 that adds some extra optional custom message options which override other settings if used.
Use the same install directions as Originally posted.
Updated: to fix arm/disarm time sends
  >!
Title: Re: HG Smart E-mailer
Post by: mike on March 21, 2019, 10:11:44 AM
Thanks.  Is there an easy way to UPDATE the old one already installed?  Will IMPORT override and update or do I need to delete present and then import the new version?  I just don't want to loose the present settings on each of my DS10 switches...
Title: Re: HG Smart E-mailer
Post by: bkenobi on March 21, 2019, 11:00:32 AM
When you import a program, it will be given an ID.  That ID is how HG references things internally.  So, if you import a new version rather than updating the code, you will have to change the settings on your modules.  It is technically possible to modify the settings file from the command line/nano in order to redirect HG to use the new ID.  With your skill level, I would not recommend that.  Either copy/paste the code in your existing program or import the new module and set up the modules to use the new APP.
Title: Re: HG Smart E-mailer
Post by: mike on March 21, 2019, 11:15:31 AM
Thanks.  I am comfortable copy/paste the new code in place of the old. 
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 21, 2019, 12:09:35 PM
I had no issues just deleting the old version and then adding the new version all my settings remained.
Copy and pasting the code is probably just as easy, less can go wrong.
Title: Re: HG Smart E-mailer
Post by: mike on March 21, 2019, 02:01:57 PM
I thought changing the .hgx name would change the prog name but it did not;  so I have two now, my active one and the  new one.  I cc/pasted prog and startup over; it complained - you reverted back to the obsolete input instead of options lines I think.  But still should work...
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 21, 2019, 02:33:26 PM
In order to rename the program it must be done in HG after intalling.

I also tried removing (deleting) the old Smart E-mailer in another PI then installing the new one and settings were not maintained  ::) :'. it probably has something to do with what was installed last. ???
Cut & paste is the best option for a large setup.
Title: Re: HG Smart E-mailer
Post by: mike on March 21, 2019, 02:58:33 PM
I imported it, copied from it and pasted into my active Smart Emailer program, and never activated the new imported one - just used it to easily cut/paste.

Now none of X10 stuff works.   I tell you, if I can break it I will!

I tried restarting HG from maint menu, no change.  No x10 RF seen by HG. 

Rebooted pi...   looking like all back to working!  WHEW!
Title: Re: HG Smart E-mailer
Post by: mike on March 21, 2019, 03:02:25 PM
Curious:  why is there a choice to enable emailings?  All my  sensors have it unchecked now after cc/paste.  I had checked them AND dusk/dawn.  Now only duck/dawn is checked.  Does this mean they will not send email anymore?

Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 21, 2019, 03:10:23 PM
The enable emailing check box tells the program to run when the module is switched on. If unchecked emails will not be sent. All other check boxes and text inputs are optional.
You must go to settings then smart e-mailer to set a universal email address to send to if you only have the enable emailing checked. The option tab also should appear in the summary screen (bottom left) if program is enabled.
Title: Re: HG Smart E-mailer
Post by: mike on March 21, 2019, 04:23:23 PM
the scripts are simple wizard scripts that arms and disarms the security system simular to these: http://forums.x10.com/index.php?topic=30855.msg180780#msg180780
instead of watching for the arm/disarm status I watch for the Raw RF.
If you used a Keyflob for setting up your Broadlink use it if you used the sh24 use its code.

Wow my Canadian friend.  In the last couple weeks you have taken my HG to new levels, to which I can hardly keep up.

I now have emails when security things are triggers (little FYI - I get 2-3-4-5 emails when it happens - but at least it happens so I am tickled pink!)

I now have the HG internal security thing arming and disarming from my x10 remotes so I can eliminate the 30-50 minute dawn times it emails me AFTER I turn off the SC1200 (we must open doors 30-50 minutes BEFORE dawn to feed the animals).

This HG alarm seems to open the doors to triggering from OTHER than x10 devices also!  I am a big fan of Wyzecam.com cameras.  I am in their alpha and beta program and thus testing door sensors & IR motion sensors that work with their $ 20.00 wifi/internet/1080p/pan-tilt motion detecting cameras.  These can be accessed thru cell phone, IFFT.  And RTSP is coming soon to add them to my wired and other wifi DVR cameras on HD drives and BlueIris.  I can see a day when all this can be incorporated into HG...

Go have a beer/wine/adult-beverage on me my friend.  I will pay for it via paypal soon!

Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 21, 2019, 06:01:53 PM
Glad to see you enjoy the Smart E-mailer program and it is working well for you. :)%
I created it so you can trigger e-mails from virtually any device configured in HG even virtual devices (not just security sensors).
With a little creativity I'm sure you can get your emails down two just one per event.
I've been playing with Wemo devices and the HG code for those devices using this emailer. Originally it was triggering every status update check but no longer so I suspect other device code may also need some tweaking to prevent false email alerts.

The custom recipient and message options allows you to send more personal emails or texts messages to different devices from different module "On" event trips.
I'm sure other Options may present themselves down the road for this but I currently have no plans for a version 3.
 >!
Title: Re: HG Smart E-mailer
Post by: bkenobi on March 22, 2019, 10:51:33 AM
Taking nothing away from Tiuicemen's emailer, but the reason it works is because Gene spent a good chunk of the last few years developing HG with no job and no charge for the code (it's open source).  If anyone deserves gratitude, I'd highly recommend at least thanking the creator of the HA software that Tuicemen's script works within.  Writing a script is somewhat time consuming for a non-coder, so the emailer is not insignificant but it only works because the backbone is there to let it function with all of the hardware around it.

 >!
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 22, 2019, 10:56:00 AM
Taking nothing away from Tiuicemen's emailer, but the reason it works is because Gene spent a good chunk of the last few years developing HG with no job and no charge for the code (it's open source).  If anyone deserves gratitude, I'd highly recommend at least thanking the creator of the HA software that Tuicemen's script works within.  Writing a script is somewhat time consuming for a non-coder, so the emailer is not insignificant but it only works because the backbone is there to let it function with all of the hardware around it.

 >!
I agree,  Gene deserves credit for creating the backbone for which all the script (programs) are handled!
Title: Re: HG Smart E-mailer
Post by: mike on March 24, 2019, 10:51:19 AM
Tuicemen, I think I have seen you have commented a couple times you think the SH624 is more secure than the KR10A keyfob?  Isn't that backwards?  keyfob is only 24bit code while SH624 is 32bit, no?
Title: Re: HG Smart E-mailer
Post by: mike on March 24, 2019, 10:56:25 AM
I have added OR to trigger on arm/disarm scripts (programs) so different devices can be used depending on where I am.  Also one matches my HAbridge send that is on timer for automatic arm/disarm.  Altho my HAbridge arm/disarm is 100% reliable with the SC1200 alarm console, the disarm script seems less than consistent.  It seems no matter which remote I use to send disarm signal, HG sees the raw rf data fine, but the script either does not run or the HG security module ignores the disarm command.  Time will tell if it is just random missing of disarm command or if it really is inconsistent.  I will know if disarm does not 'take' as then I will get door open emails every hour from all my sensors during the day!
Title: Re: HG Smart E-mailer
Post by: mike on March 24, 2019, 11:27:49 AM
I believe the SmartEmail.Arm & SmartEmail.DisArm may not be working as expected.  dusk to dawn on and off checkmark enables emails or disables if not night, but email is sent everytime whether I check either arm or disarmed choice or not.  Ie., the only time emails are NOT sent is if dusk/dawn checked and it is daytime;  all other times email is sent no matter the condition of the HG security module.  Of course if enable email is not checked no email is sent also.

I will turn on your debug comments later and test some more to see which routine(s) are setting Sendmail = true;
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 24, 2019, 12:36:00 PM
Tuicemen, I think I have seen you have commented a couple times you think the SH624 is more secure than the KR10A keyfob?  Isn't that backwards?  keyfob is only 24bit code while SH624 is 32bit, no?
I may have stated that though I don't remember ::) :' the SH624 doesn't show up in HG as a security remote like the KR10A does so only a SH624 that is configured in HG will work for HG unlike the KR10A.
Currently once you have a Kr10A setup in HG any KR10A is seen by HG as the configured Keyflob so they aren't as secure in a HG setup. I've raised this issue with Gene on GitHub and it is marked as a enhancement. Current HG code technically removes any security the KR10A has. Even if your using the Broadlink to transmit a learned KR10A it is seen as a Keyflob.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 24, 2019, 12:43:45 PM
I believe the SmartEmail.Arm & SmartEmail.DisArm may not be working as expected.  dusk to dawn on and off checkmark enables emails or disables if not night, but email is sent everytime whether I check either arm or disarmed choice or not.  Ie., the only time emails are NOT sent is if dusk/dawn checked and it is daytime;  all other times email is sent no matter the condition of the HG security module.  Of course if enable email is not checked no email is sent also.

I will turn on your debug comments later and test some more to see which routine(s) are setting Sendmail = true;
It has been a number of HG versions ago that this was written and tested. I don't use any special setting at my city place but do at my off grid place (I believe it is running 1.2-stable.34) the newest 1.3-beta.3 may have some issues with dusk dawn as my Open Weather program which has replaced WU in HG is way off.
I don't believe I changed the order conditions were looked at with the latest smart e-mailer build but as Soon as I get time I'll play with the settings again to be sure they are working correctly.
Title: Re: HG Smart E-mailer
Post by: mike on March 24, 2019, 03:32:40 PM
Yes, I too confirmed all kr10a units work on same code.  Yes, I confirmed SH624 (less secure 24bit encoding) does NOT show up in HG as a device.  I put kr10 device OR raw.rf from my sh624 as arm/disarm units for more ease of use for me.

dusk/dawn work swell here at my lat/long on stable.39.  Changing to new beta 1,2,or3 is more cplex than just pushing an update button so I am not going there until it becomes easy again.

I will uncover your comment lines to try to see why dusk/dawn & arm/disarm do not work here as expected. 
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 24, 2019, 08:57:42 PM
I had a chance to have a quick look at the code and do some quick tests. I do see the same issues as you mike, not sure why it worked prior but not now. In any case I'll play with a bit and get it worked out looks like it is  ignoring an else statement ??? so I'll redo with else if statements and nail down the ifs with more details to watch for before tripping the email.
 >!
Title: Re: HG Smart E-mailer
Post by: mike on March 25, 2019, 09:13:52 AM
Thanks, you got it!  Enjoy  a case of your favorite beer (or wine) on me (sent via paypal).

Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 25, 2019, 10:46:26 AM
Thanks, you got it!  Enjoy  a case of your favorite beer (or wine) on me (sent via paypal).
That realy wasn't necessary! But thank you!

I'll wait till you &/or I can test after dusk to be sure I nailed that part down too, before I update the link for others. ;)
Title: Re: HG Smart E-mailer
Post by: dhouston on March 25, 2019, 02:59:55 PM
Tuicemen, I think I have seen you have commented a couple times you think the SH624 is more secure than the KR10A keyfob?  Isn't that backwards?  keyfob is only 24bit code while SH624 is 32bit, no?
While it has been several years since I did hands-on testing of various X10 RF devices, IIRC, both standard and security RF devices send 32 bits. The only difference is detailed in my X-10 RF Protocol article at https://www.laser.com/dhouston/rf.html (https://www.laser.com/dhouston/rf.html)
Quote
X-10 security transmitters use a similar protocol but only one nybble of the first two bytes are bitwise complementary while the last two bytes follow the same pattern as standard X-10 RF codes.
The complementary bytes (or nybbles) are used for error checking but neither code is more secure than the other.

All RF codes (even if encrypted) are basically insecure as all a bad guy need do is capture the code and then replay it as is being done by the latest car thieves. The only RF codes that are reasonably secure are the rolling codes used with garage door remotes.
Title: Re: HG Smart E-mailer
Post by: mike on March 25, 2019, 03:18:49 PM
Hi dhouston,  glad to hear from you!

The keyfob actually sends 32 bits while the SH624 sends only 24bit code I am pretty sure.  Must be true as I read it on the internet once.   :)

But in HG it shows that code sent & it is indeed longer with the keyfox - another 2 bytes...

Anyway, we actually USE that car thief scheme to duplicate and resend the security codes with a cool little mpnkey see-monkey-do device called a Broadlink RM+ box:  gives HG non & security RF sending capability.   If a bad guy is sophisticated enough to do that at my house he deserves what he gets, whether that is my stuff, an AR-15 full of lead, Glock 45 lead, or dog bites.  My insurance swears to me they will replace any stuff he gets.
Title: Re: HG Smart E-mailer
Post by: bkenobi on March 25, 2019, 04:46:10 PM
All RF codes (even if encrypted) are basically insecure as all a bad guy need do is capture the code and then replay it as is being done by the latest car thieves. The only RF codes that are reasonably secure are the rolling codes used with garage door remotes.

I've read that it's possible to defeat rolling codes too if someone is dedicated enough to build a jammer that can save the first code sent and require the operator to send a second one.  The first is saved for later use by the criminal since the door never heard it thus making it still a valid signal.
Title: Re: HG Smart E-mailer
Post by: Tuicemen on March 27, 2019, 06:40:10 AM
The smart emailer was just updated to fix issues with sending times for armed/disarmed see post #20 for the link. ;)
http://forums.x10.com/index.php?topic=30881.msg181710#msg181710
@mike this is the version you were testing so no need for you to update.
 >!
Title: Re: HG Smart E-mailer
Post by: mike on April 03, 2019, 10:27:42 AM
Just wanted to report back that the smart emailer is working wonderfully!  I have it set to only send email when security device triggered AND alarm is ARMED.

Yesterday when I left my office I bumped my TEST DS10 sitting on my desk, opening it...  it is a module in HG for testing but not in my actual X10 alarm.

Promptly after the alarm was armed last night, and every hour on the hour thereafter, I was sent an email stating the TEST DS10 door was open!  Until the alarm disarmed this morning and the hourly emails stopped.

SWEET!

Title: Re: 📧HG Smart E-mailer
Post by: mike on April 07, 2019, 03:27:44 PM
Now that I had HG stop talking to my HAbridge, and not wanting to loose everything since only  my old non mart-email backups worked again, I updated to latest HG version and got HG talking to HA again, and smart email installed and most parameters manual put back in.  2 hours.  Only thing not working now is:  smart emailer.  Yes, it calls itself properly when sensor seen, but fails - due to JKutil not populating dusk/dawn info.   I tried 3 other API keys i have, not seem to work properly;  Looks like all times are London, UK.  I cannot seem to make an API key to show my location. 

Any clues where I should look next?
Title: Re: 📧HG Smart E-mailer
Post by: Tuicemen on April 09, 2019, 01:36:23 PM
Configure/Settings/JKutil-Solar Altitude/options set your latitude and longitude
Title: Re: 📧HG Smart E-mailer
Post by: mike on April 09, 2019, 02:52:22 PM
Configure/Settings/JKutil-Solar Altitude/options set your latitude and longitude

I do recall setting those in the past...  but there is noplace to set them now!  the options does not offer place to enter them.  I assumed having them entered on HG maint page should be sufficient but obviously not.

I assume your smart emailer is looking for verification long/lat numbers are entered in jkutil and not seeing them is reason it is failing to run. 

the default ones in jkutil somewhere are sufficient to give UTC values for all the parameters.  Not sure why smart email is not happy with these Greenland values...
Title: Re: 📧HG Smart E-mailer
Post by: Tuicemen on April 09, 2019, 03:05:45 PM
Remember you need JKutil-Solar Altitude not JKutil-OpenWeather Data there is a difference
Title: Re: 📧HG Smart E-mailer
Post by: mike on April 09, 2019, 03:18:56 PM
hahaha!  Time for me to use your head knocker!    http://forums.x10.com/Smileys/default/headbanging.gif

You probably solved it!   Yes, I am now the proud owner of Openwheather data one, NOT solar!

HG newest version update replaced it unbeknownst to me!   Was interesting to watch the latest HG installer/updater work:  it DELETED most of my programs then INSTALLED them later again.  Guess Gene's list did not keep track that I had solar and instead put back openwheather one!

THANKS yet again!
Title: Re: 📧HG Smart E-mailer
Post by: mike on April 09, 2019, 03:26:15 PM
Can't find where I downloaded JKutil-solar Altitude from...
Title: Re: 📧HG Smart E-mailer
Post by: Tuicemen on April 09, 2019, 03:29:56 PM
 configure/maintenance/Package manager
then scroll down to weather and environment click on Solar Altitude then install package
Title: Re: 📧HG Smart E-mailer
Post by: mike on April 10, 2019, 08:52:04 AM
Thanks again.  That fixed it.  I am now on ver v1.3-beta.2 and all is back to working.
Title: Re: 📧HG Smart E-mailer
Post by: mike on April 10, 2019, 12:12:24 PM
haha...  That fixed YOUR smart emailer program, it did not fix actually sending email.  Your program says "email sent" but no email arrives.  I have a quick email tester program, it says no email sent.  My gmail account shows no email  sent either.  I have re-entered email parameters into HG email program (from screen shot of WORKING HG) and it still does not work.  So it appears this new HG fw update has broken the email send capability at least for now.   I have not had time yet to go to the log to see if it gives any clue why.  maybe tomorrow will have time...
Title: Re: 📧HG Smart E-mailer
Post by: Tuicemen on April 10, 2019, 12:54:09 PM
It is possible the beta HG messed with your settings I know I totally lost all my settings at my off grid place.
One RPi here got totally screwed while the other updated with out any issues. B:(
Title: Re: 📧HG Smart E-mailer
Post by: mike on April 11, 2019, 09:40:45 AM
not lost; they were still populated with my correct values.  I am afraid it is again a case of HG ignoring the entered data if not a totally fresh install.  I have not had time to go look at the log yet to confirm...