zaphod Posted April 21, 2008 Share Posted April 21, 2008 I want my C4 system to send me an email when the temperature is above a certain threshold. I have figured out how to do this but how do I include in my email the current temperature. How do I set up an email template to contain a variable and how do I get that variable into the email? The examples I have seen seem to have static emails that always contain the exact same text. How do I send an email that says something like "The current temperature is "(Insert Temperature)Right now my code looks like this:? If the Main hall->Control4 Wireless Thermostat Temperature is > 24> Email Notification to 'recipient@recipient.com' with subject as :'Temperature Warning'Would this code just send an email when the temperature changes? That appears to be the case that this event is triggered when the temperature and changes and is > 24. Note that this is celsius (of course). Link to comment Share on other sites More sharing options...
neil12011 Posted April 21, 2008 Share Posted April 21, 2008 I don't believe the email templates are dynamic...it pretty much is a notification only, not a "current status" type thing...It would take a few templates to accomplish what you are trying to do. Link to comment Share on other sites More sharing options...
wingzz Posted April 21, 2008 Share Posted April 21, 2008 you could do one email for each degree Link to comment Share on other sites More sharing options...
zaphod Posted April 22, 2008 Author Share Posted April 22, 2008 That's not very elegant - kind of the brute force method of programming. Link to comment Share on other sites More sharing options...
mrpugh Posted April 23, 2008 Share Posted April 23, 2008 It may not be very elegant, but it's really not capable of doing it any other way. Can I be really nosey and ask why you want to know the temperature? Link to comment Share on other sites More sharing options...
K&J Posted April 23, 2008 Share Posted April 23, 2008 I want my C4 system to send me an email when the temperature is above a certain threshold. I have figured out how to do this but how do I include in my email the current temperature. How do I set up an email template to contain a variable and how do I get that variable into the email? The examples I have seen seem to have static emails that always contain the exact same text. How do I send an email that says something like "The current temperature is "(Insert Temperature)Right now my code looks like this:? If the Main hall->Control4 Wireless Thermostat Temperature is > 24> Email Notification to 'recipient@recipient.com' with subject as :'Temperature Warning'Would this code just send an email when the temperature changes? That appears to be the case that this event is triggered when the temperature and changes and is > 24. Note that this is celsius (of course).I'm sure your Dealer can assist you with your situation.. Link to comment Share on other sites More sharing options...
slemay Posted April 24, 2008 Share Posted April 24, 2008 zaphod - your current program in your example would get ONE email... the moment the temperature goes about 24 - you'd get an email - but it would NOT generate it for each degree... as others have already suggested, you'd have to create an email for each degree - and that would be a lot of work, not to mention messy. Sorry - but that is really the best answer. Link to comment Share on other sites More sharing options...
zaphod Posted May 1, 2008 Author Share Posted May 1, 2008 It may not be very elegant, but it's really not capable of doing it any other way. Can I be really nosey and ask why you want to know the temperature?Right now I am just playing with this so it is not a big deal. But one reason to want to know the temperature is if I decide to put a temperature sensor of some sort in my wine cellar. My wine cellar is kept at 57F. If it goes to 58F that is not a big deal. If it goes to 75F I would want to know about it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.