Is the mail applet working

6 replies [Last post]
kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013

Hi

I would be very grateful if someone could confirm if the mail applet is working, I used it a few years ago and it worked without any problems.

I have recently made some changes to my HAH setup and want to use the email applet again but now get an error when triggered, see below.

Any help would be much appreciated.

Kema...

xap-header

{

v=12

hop=1

uid=FF00E100

class=email

source=dbzoo.livebox.Mail

}

mail.error

{

text=Send mail failed with error code: 67

}

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Mail

I've never really used the mail app but I fired it up and using xFx viewer tried to send an email. This was the response:

 

xap-header
{
v=12
hop=1
uid=FF00E100
class=email
source=dbzoo.livebox.Mail
}
mail.error
{
text=Send mail failed with error code: 56
}

 

 

This is what I tried to send

 

xap-header
{
v=12
hop=1
uid=FF00D800
source=dbzoo.livebox.test
target=dbzoo.livebox.Mail
class=email
}
message
{
to=a********@hotmail.com
subject=How is your lamb?
text=I'll be around for dinner tonight at 6pm
}

kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013
Slightly different mail error code.

Hi Allan many thanks for responding, you have a different error code to me.

Hopefully someone else will get back to me with further information.

I guess the HAH is on the back burner this time of year.

I would be very interested to know how many people are still activley using the HAH platform in any form Pi, Beagle Bone, Live box.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
The return code you are

The return code you are getting are CURL return code you can map those numbers into some meaning from its man page:

https://curl.haxx.se/libcurl/c/libcurl-errors.html

It might well be that smtp server its using has change something preventing what use to work to now fail.  From the mail.ini file is is the URL that was used: server=smtp://smtp.gmail.com:587

From a little bit of research I would say that you can only use SSL/TLS communication now.

https://stackoverflow.com/questions/10523147/what-are-the-curl-smtp-command-line-arguments-to-support-gmail-tls-starttls-vs-s

As to whether this is a simple .ini file change I'm not sure - you might be lucky.

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Still going strong

As ever, Brett knows the detail re the inner workings of the HAH scripting.

Of course, my own HAH is still up & running (on the original Livebox platform) and working with temperature sensors to show how warm/cold it is in my basement/outside on a Joggler screen.

Uptime is around 2.5 years since the last reboot (and that was due to a glitch in our local mains supply). I should invest in an UPS.

Perhaps some 'trendier' ways to do this sort of thing these days. However, if it ain't broken ...

Also, it should be remembered that all the HAH fun began before the term 'Internet of Things' was even coined. 

Derek. 

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Yes, mine is also still

Yes, mine is also still running on the original platform (2 spares in the cupboard!) It still controls quite a few remote sockets and lights. IFTTT/twitter are still pretty useful for triggering various different events. Now with Alexa voice control making for an easy interface for SWMBO to control sockets, lights etc.

The one problem I have is that the cron daemon silently dies every now and again with no warning and no output to /var/log. It even appears in the ps list sometimes but is not actually doing anything. Not enough of a problem to stop me from using this excellent project, I eventually notice and restart the daemon.

kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013
Nice to know there are still a few of us using the HAH.

Nice to know there are still a few of us using the HAH.

I use my HAH on a daily basis to control my central heating, hot water, irrigation system (summer), pond pumps, lighting etc.

I am using the original live box and have 1 configured spare, 4 Jeenodes (2 spare), 13 temperature sensors, 29 RF devices configured, not all used now.

Bizarrely my email app has now started working with no errors.

 

Hardware Info