Author |
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: November 18 2006 at 22:19 | IP Logged
|
|
|
So I am trying to add some remote control via email. I've got a dedicated account for powerhome, set up as the only email account in Outlook (I don't use my powerhome machine for email).
I would like to support simple English commands things like "Heater On". I don't want to force any specific subject as most often this will be coming via an sms to email gateway. Each incoming email should generate a return email that would contain a response, and overall status. An email that did not parse (or was empty) would just return an overall status (Heater On, Lights Off, etc...)
So the question is how can I get the email to parse? ph_processemail won't work because it only gets emails that have "sendkeys", "formula", and "macro". I need something that will get all emails. Is this possible? Or will I need to do this outside of powerhome?
Thanks, Tony
|
Back to Top |
|
|
narc Groupie
Joined: November 21 2006 Location: United States
Online Status: Offline Posts: 49
|
Posted: November 21 2006 at 12:08 | IP Logged
|
|
|
...
Edited by narc - January 25 2007 at 21:39
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: November 21 2006 at 12:59 | IP Logged
|
|
|
Sounds good, but if I spend $1K I'm going to loose more than the meager WAF points I've finally started to build.
I don't need anything that fancy. I'll probably just end up using a set of Outlook rules or write a simple C program to parse incoming emails. I have complete access to the server so I could even skip the pop3 / mapi issues making it a pretty simple app...
I'm just amazed that PH can't handle it given that it has most of the support it needs. Dave, how about a set of powerHome functions. Something like:ph_getMailCount() - Returns a count of available messages
ph_getMailHeader(index) - returns sender, date, subject in local variables
ph_getMailBody(index) - returns text of mail body
ph_deleteMail(index) - deletes the mail at index Add a trigger for new mail received and you've got everything you need to do anything! Without the trigger polling would still work well enough. Com'on Dave - certainly you don't have enough features on your todo list.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 21 2006 at 13:46 | IP Logged
|
|
|
Tony...always trying to add more work for me . Actually, these items are already on the to-do list (was looking for them myself ), just down on priority.
However, like you said, Ive already got most of the infrastructure there so it shouldnt take great deal of effort. I'll see what I can do to get something for you in the next beta.
Dave.
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: November 27 2006 at 16:41 | IP Logged
|
|
|
Hmm, maybe you need to share the burden.
What's the status on the plugin interface?
As if you need more to keep you on your toes...
-Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: December 07 2006 at 13:32 | IP Logged
|
|
|
Tony,
You'll be happy to hear that the next version will have include version 1.1 of the PowerHome generic plugin SDK. There are currently two plugin interfaces planned (one specifically for controllers and one for general application use) and this one is the general application use one. Im sure that it will evolve over time but this should at least get people started.
Ive also gone ahead and written the first plugin which is the general email support plugin. Also included will be a VB 6 activex skeleton with all the necessary code to get started with writing plugins.
Dave.
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: December 08 2006 at 14:05 | IP Logged
|
|
|
Excellent!
Any rought idea on when we can expect the next version? I've got a couple apps that could probably be migrated to useful plugins...
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: December 08 2006 at 21:36 | IP Logged
|
|
|
Very soon I hope. A quick little roadmap.
First, PowerHome will displaying in the SmartHome pavilion at CES in January 2007. So Im working very hard to get a release version out before then.
So, in order to do that, the next version should have fixes for all previous reported problems, some last minute enhancements and support for the Elk M1G as a controller. Once this is out, I'll pause development and work feverishly on the new manual and documentation.
Any bugs reported will then be addressed and once the manual is done, we should have release version 1.4 of PowerHome.
So, in order to make my timeframe, I would expect the next version to be out in a couple of weeks.
Dave.
|
Back to Top |
|
|
theowl Groupie
Joined: February 24 2006 Location: United States
Online Status: Offline Posts: 59
|
Posted: February 02 2007 at 16:24 | IP Logged
|
|
|
I'm looking for something similar, except I just want to update the house status according to e-mail content.
From other visits to the forum, I recall something about controlling PH through the command line. So, a few scripts should be no problem.
I'm going to try to install an e-mail client capable of starting applications via mail filtering rules and have it fire the scripts for updates. Then, I can use the filters to fire any script upon any command I choose.
Just my small contribution.
Owl
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 02 2007 at 22:05 | IP Logged
|
|
|
Owl, PH can already act on inbound email.
|
Back to Top |
|
|
theowl Groupie
Joined: February 24 2006 Location: United States
Online Status: Offline Posts: 59
|
Posted: February 03 2007 at 00:58 | IP Logged
|
|
|
Did I miss something? I thought PH would only act on the e-mail if it was formated correctly? The e-mail I'm looking to trigger on is from an automation system that just sends short status e-mails in it's own format.
Owl
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 03 2007 at 09:43 | IP Logged
|
|
|
Well, that is correct. There's no way to change the email format from this automation system?
|
Back to Top |
|
|
theowl Groupie
Joined: February 24 2006 Location: United States
Online Status: Offline Posts: 59
|
Posted: February 03 2007 at 11:51 | IP Logged
|
|
|
Correct. I have no control over that automation system. So I used a program called PopTray to pole the server and run phwmcd with a x10setstats based on rules I set up. Best thing is, I don't have to monkey around with my existing e-mail set up.
Owl
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: December 05 2007 at 17:33 | IP Logged
|
|
|
Sorry to bring this back from the dead, but what ever happened to the "general email support plugin"? I finally got back to this and cannot find it anywhere.
Did it get released? Where?
Is anyone using it?
Thanks, Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: December 05 2007 at 20:27 | IP Logged
|
|
|
I think it comes with the latest version. There is emailpi.pbd and emailpi.reg in the plugin folder but no ocx.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: December 09 2007 at 12:24 | IP Logged
|
|
|
Tony,
TonyNo is correct, the plugin is in the Plugins folder (a PBD type plugin rather than an OCX) but I havent documented it yet. It's got a few problems that I need to work out.
I'll do some work on it and get the docs out and then post back here.
Dave.
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: December 10 2007 at 11:49 | IP Logged
|
|
|
Thanks Dave. This one's pretty important - this is the first actual request from the wife...
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: December 12 2007 at 19:47 | IP Logged
|
|
|
Moved to own thread. See Tool to interface with POP3 accounts
Edited by onhiatus - December 12 2007 at 19:58
|
Back to Top |
|
|