iMessage Indigo Plugin [New Plugin]

Posted on
Sat Nov 03, 2018 2:55 pm
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

iMessage Indigo Plugin [New Plugin]

petematheson wrote:
Thanks for this - Have installed tonight and had a bit of a play.

Unless I'm missing something, this seems a more complicated version of the Messages plugin that already exists, albeit hasn't been updated in 3 years.

I can create devices for each Buddy, and I can pick which buddy to send/receive from in an action.
I've entered the Buddy numbers in the plugin config, but after which - why do I need to re-enter these buddy numbers in each action?

Things that would be on my want list :)
    Create Device for each Buddy - So you don't have to type the number manually each time
    Create Device for each Group Text - To text groups of people :)
    Send combined Text & Image in single action - Use this to send 'Motion detected on Driveway & Send Image


I think read the instructions come to mind! Pretty much does all that (minus group message)

The older messages plugin does not work on High Sierra and Mojave and above - because of the lack of applehandler.

I think the use of this ‘less complicated’ plugin has lead you down a device route which isn’t needed. Can read the ‘more complicated’ bit a few ways!

No devices needed, and shouldn’t have any devices (if there is a left over device definition in this beta I’ll remove now). You don’t need to create any devices. If you have they’re ignored.

Probably read the first post: But can repeat
Create a Messages Plugin Trigger action for whatever command.
If you select use last BuddyHandle will not need to type in buddy and command/reply will go to whatever allowed buddies sent the command.
In the action of this Trigger - create actions (note the plural) - send reply use last buddy, and then Indigo action to run.

I decided to use indigo triggers and resulting trigger actions - as essentially better than anything a plugin could do and more configurable, plus familiar.

Coming back to your list.
1.
- does this just not with devices; use last handle
(devices add a lot of overhead without actually adding anything)
2. Group messaging isn’t likely to be possible - I have spent some time with the sql database and joining various data rows. This adds time and complexity to the regularly run query which concerns me. But regardless I can get the group chat handle as a seperate sql query without problem. But messages does not give the group id with received messages. So can send a group message if you know this handle which have working - but no way to automatically continue a group conversation. So really looks like no go.
3.
Within trigger action - two actions
1. Send iMsg reply
2. Send iMsg picture.
It needs to be sent this way regardless - and whilst could have a ‘combined’ action - would just be the above anyway.

Glenn

Posted on
Mon Nov 05, 2018 2:55 am
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iMessage Indigo Plugin [New Plugin]

Indigo iMessage Plugin
Release 0.1.0


Image

Changes:
- Major change to parsing of received messages - better support for multiple incoming messages from multiple buddies at same time. (Multiples streams of conversation)
- Correctly ignores duplicate messages
- Multiple messaging buddies occuring at same time dealt with correctly
- Confirmation Question replies Y/N etc. can occur after other messages sent, provided within timeout set
eg. after question received, can send other iMsg commands, get more information before replying Yes/No equivalent

- If same message from same buddy sent within 120 seconds also ignored
- Ignores everything except last message within 5 seconds - if wrong resend quickly and will act on that most recent message
- As requested Buddies selectable as list following entering into pluginConfig allowed Buddies

- few bug fixes, multiple logging changes

https://github.com/Ghawken/iMessagePlugin/releases/

Posted on
Mon Nov 05, 2018 3:59 am
siclark offline
Posts: 891
Joined: Jun 13, 2017
Location: UK

Re: iMessage Indigo Plugin [New Plugin]

Hi,

This looks awesome, and finally getting a chance to play. However I can only add Indigo 7.2 to full disk access, not the server or the pluginhost. How to I do that? Hoping I am not the only one struggling here, and I am pretty sure I didnt miss the detail on that. I tried dragging from the activity monitor, which is only place I Can see those processes, but that didnt seem to work.

Cheers

Simon

Posted on
Mon Nov 05, 2018 4:27 am
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iMessage Indigo Plugin [New Plugin]

Try the perceptive automation directory.
Click the show logs button and then go a couple up to find the apps
Will update details when back at Mac

Edit:

/Library/Application Support/Perceptive Automation/Indigo 7 (or 7.2)
IndigoPluginHost.app
IndigoServer.app
Both located there to drag and drop into Security & Privacy Full Disk Access
Last edited by GlennNZ on Mon Nov 05, 2018 4:53 am, edited 1 time in total.

Posted on
Mon Nov 05, 2018 4:40 am
petematheson offline
Posts: 738
Joined: Sep 14, 2014
Location: Southampton, UK

Re: iMessage Indigo Plugin [New Plugin]

You need to find those under the Library / Application Support / Perceptive Automation folders on OSX.

Posted on
Mon Nov 05, 2018 4:41 am
petematheson offline
Posts: 738
Joined: Sep 14, 2014
Location: Southampton, UK

Re: iMessage Indigo Plugin [New Plugin]

Thanks Glenn, I did RTFM but obviously missed something! Will check again tonight :)

Posted on
Mon Nov 05, 2018 5:06 am
siclark offline
Posts: 891
Joined: Jun 13, 2017
Location: UK

Re: iMessage Indigo Plugin [New Plugin]

Cheers guys... pretty sure I RTFM as well, but eventually found answer through a carbon clone article on mac9to5, was just about to put info back here for everyone else.

Open up the Full Disk Access in System Preferences, go to below location in Finder and click and drag the IndigoServer and IndigoPluginHost across to the list of programs under Full Disk Access, they should then be added.

/Macintosh SSHD/Library/Application Support/Perceptive Automation/Indigo 7.2

You can click later, rather than restart, and just restart the plugin, no need to restart the Indigo server.

Posted on
Mon Nov 05, 2018 5:12 am
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

iMessage Indigo Plugin [New Plugin]

petematheson wrote:
Thanks Glenn, I did RTFM but obviously missed something! Will check again tonight :)


Great!
Let us know how you go with 0.1.0 ..
Edit: 0.1.1!
Last edited by GlennNZ on Tue Nov 06, 2018 3:03 am, edited 1 time in total.

Posted on
Tue Nov 06, 2018 1:35 am
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iMessage Indigo Plugin [New Plugin]

Indigo iMessage Plugin
Release 0.1.1


Image

Changes 0.1.1:

- Add Action to send msg and File combined (as requested)
- Auto hide Buddy Handle field if using 'use last buddy'
- Bug fix for resetting last command - wasn't correctly resetting last command after 120seconds
- Typo fix

Changes 0.1.0
- Major change to parsing of received messages - better support for multiple incoming messages from multiple buddies at same time. (Multiples streams of conversation)
- Correctly ignores duplicate messages
- Multiple messaging buddies occuring at same time dealt with correctly
- Confirmation Question replies Y/N etc. can occur after other messages sent, provided within timeout set
eg. after question received, can send other iMsg commands, get more information before replying Yes/No equivalent

- If same message from same buddy sent within 120 seconds also ignored
- Ignores everything except last message within 5 seconds - if wrong resend quickly and will act on that most recent message
- As requested Buddies selectable as list following entering into pluginConfig allowed Buddies

- few bug fixes, multiple logging changes

https://github.com/Ghawken/iMessagePlugin/releases/

Posted on
Tue Nov 06, 2018 10:33 am
jay (support) offline
Site Admin
User avatar
Posts: 15543
Joined: Mar 19, 2008
Location: Austin, Texas

Re: iMessage Indigo Plugin [New Plugin]

Published to the Store. Glenn, let me know if you want a subforum for it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Nov 06, 2018 2:14 pm
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: iMessage Indigo Plugin [New Plugin]

jay (support) wrote:
Published to the Store. Glenn, let me know if you want a subforum for it.

Thanks Jay! A subforum would be great and if you could do the same for the Tesla Powerwall one that would be ideal.
I’ll get on and update and point to pluginstore for further releases
(& enable unused update checking)
Glenn

Posted on
Tue Nov 06, 2018 3:20 pm
jltnol offline
Posts: 399
Joined: Oct 15, 2013

Re: iMessage Indigo Plugin [New Plugin]

Hey there.. Just installed this plugin, and actually got it to work, although I didn't do any real thorough testing.

But not I keep getting this error over and over in the log:

iMessage Plugin Error Exception connecting to database....
Traceback (most recent call last):
File "plugin.py", line 225, in connectsql
self.connection = sqlite3.connect(filename)
OperationalError: unable to open database file


I thought this was kind kind of SQL logger error, so disabled that plug, but the error message continues...

Posted on
Tue Nov 06, 2018 3:30 pm
jay (support) offline
Site Admin
User avatar
Posts: 15543
Joined: Mar 19, 2008
Location: Austin, Texas

Re: iMessage Indigo Plugin [New Plugin]

GlennNZ wrote:
jay (support) wrote:
Published to the Store. Glenn, let me know if you want a subforum for it.

Thanks Jay! A subforum would be great and if you could do the same for the Tesla Powerwall one that would be ideal.
I’ll get on and update and point to pluginstore for further releases
(& enable unused update checking)
Glenn


Done. I moved the two threads into their respective forum as well.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Nov 06, 2018 3:49 pm
siclark offline
Posts: 891
Joined: Jun 13, 2017
Location: UK

Re: iMessage Indigo Plugin [New Plugin]

jltnol wrote:
Hey there.. Just installed this plugin, and actually got it to work, although I didn't do any real thorough testing.

But not I keep getting this error over and over in the log:

iMessage Plugin Error Exception connecting to database....
Traceback (most recent call last):
File "plugin.py", line 225, in connectsql
self.connection = sqlite3.connect(filename)
OperationalError: unable to open database file


I thought this was kind kind of SQL logger error, so disabled that plug, but the error message continues...


Hi. Wrong database, the error is not anything to do with SQL logger but the messages db.
You need to do this.

siclark wrote:
Cheers guys... pretty sure I RTFM as well, but eventually found answer through a carbon clone article on mac9to5, was just about to put info back here for everyone else.

Open up the Full Disk Access in System Preferences, go to below location in Finder and click and drag the IndigoServer and IndigoPluginHost across to the list of programs under Full Disk Access, they should then be added.

/Macintosh SSHD/Library/Application Support/Perceptive Automation/Indigo 7.2

You can click later, rather than restart, and just restart the plugin, no need to restart the Indigo server.

Posted on
Tue Nov 06, 2018 3:49 pm
GlennNZ offline
Posts: 600
Joined: Dec 07, 2014
Location: Central Coast, Australia

iMessage Indigo Plugin [New Plugin]

jltnol wrote:
Hey there.. Just installed this plugin, and actually got it to work, although I didn't do any real thorough testing.

But not I keep getting this error over and over in the log:

iMessage Plugin Error Exception connecting to database....
Traceback (most recent call last):
File "plugin.py", line 225, in connectsql
self.connection = sqlite3.connect(filename)
OperationalError: unable to open database file


I thought this was kind kind of SQL logger error, so disabled that plug, but the error message continues...


Would seem an access issue to the iMessage database.

Likely you haven’t allowed “full disk access” as per the first post?

Edit: siclark - think we answered at same time!
Will also update the error reporting with this to more useful instructions

Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 1 guest