Better Email plugin (Beta) Discussion

Posted on
Sat Jun 27, 2015 10:57 am
SpencerJRoberts offline
User avatar
Posts: 248
Joined: Dec 09, 2012
Location: Mountain View, CA

Re: Better Email plugin (Beta)

Finally tried this out and I'm getting errors on plugin startup before configuring, and after configuring as IMAP:

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 282, in runConcurrentThread
  File "plugin.py", line 268, in pollServers
  File "plugin.py", line 35, in poll
<type 'exceptions.KeyError'>: 'key serverName not found in dict'

Posted on
Sat Jun 27, 2015 11:07 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta)

SpencerJRoberts wrote:
Finally tried this out and I'm getting errors on plugin startup before configuring, and after configuring as IMAP:

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 282, in runConcurrentThread
  File "plugin.py", line 268, in pollServers
  File "plugin.py", line 35, in poll
<type 'exceptions.KeyError'>: 'key serverName not found in dict'


I think I quashed that bug a day or so ago. I'll post a new version shortly.

joe

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

Posted on
Sat Jun 27, 2015 11:48 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta)

Version 0.0.3 available now: https://dl.dropboxusercontent.com/u/756 ... Plugin.zip

Fixes bug above, plus adds some additional features. Specifically, you can disable the automatic polling schedule by entering 0 for the poll frequency. If you do that, set up your own Indigo schedules to poll servers as desired. Keep in mind that the plugin will attempt to send outgoing emails immediately. If the send fails for some reason, you'll need a polling schedule for the SMTP to attempt redelivery.

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

Posted on
Mon Jun 29, 2015 10:14 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta) Discussion

The current released version of the plugin (0.0.4) has some Event Triggers defined, but there's no code to implement them. I put in placeholders in Events.xml when I was first setting up the plugin, then didn't get around to writing the actual trigger code. Now I'm wondering if I should bother. For now, I've removed the event triggers from the next release.

Currently, you can trigger on any change to the device states, and use the various state conditions ("is equal", "contains", etc) to filter for the messages you want. That would seem to cover any trigger processing based on simple string searches. The only advantage I can think of to implementing specific trigger logic is if the plugin could use regex type expressions for more advanced pattern matching.

If you think that the regex type processing would be useful, please post an example of the type of matching you want to do. If there's data in the message you want to extract to variables based on the regex, show an example of that as well.

Thanks!

joe

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

Posted on
Tue Jun 30, 2015 8:25 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta) Discussion

I just posted version 0.0.5. It's got Event Triggers based on RegEx matching. The string that matches the regex pattern is saved to a state variable.

:D

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

Posted on
Wed Jul 01, 2015 9:37 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta)

Bollar wrote:
I can do iMessage notifications with a short AppleScript, but your plugin is more powerful and easier.


I did some research on iMessage this morning, and can find no public API for it. I found AppleScript samples for sending messages by using Messages.app, but nothing for capturing received messages. Does your AppleScript receive messages, or just send them?

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

Posted on
Wed Jul 01, 2015 9:30 pm
Bollar offline
Posts: 516
Joined: Aug 11, 2013

Re: Better Email plugin (Beta) Discussion

FlyingDiver wrote:
Bollar wrote:
I can do iMessage notifications with a short AppleScript, but your plugin is more powerful and easier.


I did some research on iMessage this morning, and can find no public API for it. I found AppleScript samples for sending messages by using Messages.app, but nothing for capturing received messages. Does your AppleScript receive messages, or just send them?


It just sends them. Would be cool to receive as well, but that use case isn't that strong for me.


Sent from my iPad using Tapatalk

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Wed Jul 01, 2015 9:35 pm
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta) Discussion

Better just stick to your AppleScript.


Sent from my iPad using Tapatalk

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

Posted on
Wed Jul 01, 2015 9:37 pm
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta) Discussion

You could send an SMS via email using my plugin. Most phone carriers provide a gateway.


Sent from my iPad using Tapatalk

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

Posted on
Sat Jul 04, 2015 6:54 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta) Discussion

Based on user bug report, I have released 0.0.6 which supports unicode (non-ascii) characters in all fields. More testing is needed on this feature as I don't use a language or keyboard that requires this support.

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

Posted on
Sun Jul 12, 2015 9:57 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Better Email plugin (Beta) Discussion

Version 1.0.0 released.

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

Who is online

Users browsing this forum: No registered users and 1 guest