Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: PH Email Reply Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: February 09 2008 at 19:37 | IP Logged Quote Gadgets

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 View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: February 11 2008 at 14:33 | IP Logged Quote Gadgets

wow.. did I stump everybody?

__________________
Friends, don't let friends install Norton Products
Back to Top View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: February 11 2008 at 19:20 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: February 11 2008 at 20:48 | IP Logged Quote Gadgets

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 View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: February 11 2008 at 22:15 | IP Logged Quote TonyNo

Sorry. A confirming question: Are you using the Generic Email plugin, or one of the built-in "process email" functions?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: February 12 2008 at 00:01 | IP Logged Quote Gadgets

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 View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: February 13 2008 at 22:44 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: February 14 2008 at 00:04 | IP Logged Quote Gadgets

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 View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: February 14 2008 at 15:37 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
Gadgets
Senior Member
Senior Member
Avatar

Joined: January 28 2008
Location: Canada
Online Status: Offline
Posts: 178
Posted: February 14 2008 at 21:26 | IP Logged Quote Gadgets

"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 View Gadgets's Profile Search for other posts by Gadgets Visit Gadgets's Homepage
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: February 16 2008 at 01:05 | IP Logged Quote krommetje

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 View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum