Trigger emails Variable info

Posted on
Sun Jun 26, 2016 9:25 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Trigger emails Variable info

Ok I'm trying to get Indigo to email me every time the temp in the house changes... The trigger part is easy, but I'm at a dead stop with trying to get either the device state OR the value of a variable into the body of an email.

It seems like this should be a piece of cake, but so far none of the plugins I've looked at can do this. Is there an EASY way to insert variable values into an email?

Posted on
Mon Jun 27, 2016 12:01 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Trigger emails Variable info

Hand you looked at the Better Email plugin?

viewtopic.php?f=177&t=14340

Peter


Sent from my iPhone using Tapatalk

Posted on
Mon Jun 27, 2016 7:29 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Trigger emails Variable info

Actually, I did look at this plugin... I did download it, and create a SMTP device, but honestly didn't get much farther.

THEN I remembered.. that I had done this before... This is all I need for this project.

Code: Select all
theVar1 = indigo.variables[889842390]
theSubject = "Indigo Variables"
theBody = "Temp is %s\n" % (theVar1.value)
indigo.server.sendEmailTo("jjlt@xys.com", subject=theSubject, body=theBody)

Posted on
Mon Jun 27, 2016 9:32 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Trigger emails Variable info

BetterEmail does that without having to create the script, but if you've got it working no need to go further.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron