Better Email plugin (Beta) Discussion

User avatar
SpencerJRoberts
Posts: 256
Joined: Sun Dec 09, 2012 12:07 pm
Location: Mountain View, CA

Re: Better Email plugin (Beta)

Post by SpencerJRoberts »

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'
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta)

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta)

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta) Discussion

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta) Discussion

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta)

Post by FlyingDiver »

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
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

Re: Better Email plugin (Beta) Discussion

Post by Bollar »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta) Discussion

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta) Discussion

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta) Discussion

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin (Beta) Discussion

Post by FlyingDiver »

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

Return to “Better Email”