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'
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.
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.
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.
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?
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.
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.