Author |
|
Gadgets Senior Member
Joined: January 28 2008 Location: Canada
Online Status: Offline Posts: 178
|
Posted: February 09 2008 at 19:37 | IP Logged
|
|
|
Hey guys,
Seeing as I now have the email functions working perfectly with PH, and have it sending me confirmation, I'm wondering how complicated it is to have PH tell me WHAT command was triggered by the email when it sends back to me. Currently I just stuck in a generic message for myself, having the actual command that was sent would be great. Is that possible?
__________________ Friends, don't let friends install Norton Products
|
Back to Top |
|
|
Gadgets Senior Member
Joined: January 28 2008 Location: Canada
Online Status: Offline Posts: 178
|
Posted: February 11 2008 at 14:33 | IP Logged
|
|
|
wow.. did I stump everybody?
__________________ Friends, don't let friends install Norton Products
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 11 2008 at 19:20 | IP Logged
|
|
|
Seems like the easiest way would be to grab the TEMP variables that are populated from the trigger and use those in a message.
How were you getting email again?
|
Back to Top |
|
|
Gadgets Senior Member
Joined: January 28 2008 Location: Canada
Online Status: Offline Posts: 178
|
Posted: February 11 2008 at 20:48 | IP Logged
|
|
|
TonyNo wrote:
Seems like the easiest way would be to grab the TEMP variables that are populated from the trigger and use those in a message. |
|
|
Say whaa?? I have yet to get into figuring out how you guys make use of all those variables etc...
Quote:
How were you getting email again? |
|
|
Using the plugin, and OE currently
__________________ Friends, don't let friends install Norton Products
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 11 2008 at 22:15 | IP Logged
|
|
|
Sorry. A confirming question: Are you using the Generic Email plugin, or one of the built-in "process email" functions?
|
Back to Top |
|
|
Gadgets Senior Member
Joined: January 28 2008 Location: Canada
Online Status: Offline Posts: 178
|
Posted: February 12 2008 at 00:01 | IP Logged
|
|
|
TonyNo wrote:
Sorry. A confirming question: Are you using the Generic Email plugin, or one of the built-in "process email" functions? |
|
|
No problem, umm I am using the Generic Plugin
__________________ Friends, don't let friends install Norton Products
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 13 2008 at 22:44 | IP Logged
|
|
|
Well, I guess it doesn't matter. We need PH to tell us what it did.
Seems like Tony's VB app is the best shot.
Let's let Dave confirm that there are no TEMP variables populated (or anything else) when email control happens.
|
Back to Top |
|
|
Gadgets Senior Member
Joined: January 28 2008 Location: Canada
Online Status: Offline Posts: 178
|
Posted: February 14 2008 at 00:04 | IP Logged
|
|
|
TonyNo wrote:
Well, I guess it doesn't matter. We need PH to tell us what it did.
Seems like Tony's VB app is the best shot.
Let's let Dave confirm that there are no TEMP variables populated (or anything else) when email control happens. |
|
|
Ok.. I will await his godliness!
__________________ Friends, don't let friends install Norton Products
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: February 14 2008 at 15:37 | IP Logged
|
|
|
Hmmmm....I think there may be some confusion. The generic email plugin does not "process" incoming control email. It's simply a generic reader that can load all the messages and display individual messages and headers. Any email meant to "control" PowerHome would have to be written by the user as part of their email parse routines.
Now, if you're using the ph_processemailthread function...Ive looked at the sourcecode and Im not sure how this is even working (ok...I can see how it's working but Ive got a couple of bugs keeping it from it's full potential). In any case, there is no way currently to retrieve either through triggers or variables what formula was processed via a control email.
After looking over these functions, Im thinking I'll add to the to-do list an expansion of generic email plugin to include processing control email and the appropriate firing of triggers. This will eliminate the current phpe.exe standalone application (the plugins run in their own thread so no problem with hanging). It will also mean the removal of the ph_processemail and ph_processemailthread functions in favor of a ph_picmd function but the increase in versatitility should be well worth it.
Dave.
|
Back to Top |
|
|
Gadgets Senior Member
Joined: January 28 2008 Location: Canada
Online Status: Offline Posts: 178
|
Posted: February 14 2008 at 21:26 | IP Logged
|
|
|
"to-do" lists, never end do they Dave? Thanks for clearing that up.
Now back to my fight with the CID stuff.
__________________ Friends, don't let friends install Norton Products
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: February 16 2008 at 01:05 | IP Logged
|
|
|
You can send a control e-mail which starts a macro and mails you predefined "stuff", the thing is to use fixed e-mail addresses for that. The simplest thing is to send a systemstatus, a macro with all X10/Insteon-device status.
just e.g. send Macro Status{} and it could do the trick...
|
Back to Top |
|
|