can't get imassage plugin to trigger event

Posted on
Mon Jan 09, 2023 5:54 pm
techmyhome offline
Posts: 3
Joined: Jan 02, 2023

can't get imassage plugin to trigger event

I am trying to trigger can event with a received text "on" and "off" but only get this in log no trigger



iMessage Plugin Debug newlist after checking audio file:[('+1305number, None)]
iMessage Plugin Debug newlist after checking audio file:[('+1305number', None)]

Posted on
Mon Jan 09, 2023 6:00 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: can't get imassage plugin to trigger event

Hi

That’s not enough logging to make sense of what is going on.

Can you send and receive commands
Does the plug-in connect to iMessage database and startup okay
Have you given it the required security permissions as per the documentation

Thanks


Sent from my iPhone using Tapatalk

Posted on
Fri Feb 10, 2023 8:48 am
techmyhome offline
Posts: 3
Joined: Jan 02, 2023

Re: can't get imassage plugin to trigger event

Sorry, it took me so long to reply, but I could not log back in finally was able to. Here's more information on my situation. Appreciate your help.
The plug-in seems to communicate with the iMessage, but returns none as the received text.

iMessage Plugin Debug newlist after checking audio file:[('+1305986XXXX', None)]
iMessage Plugin Debug newlist after checking audio file:[('+1305986XXXX', None)]
iMessage Plugin Debug newlist after checking audio file:[('+1305986XXXX', None)]
iMessage Plugin Debug newlist after checking audio file:[('+1305986XXXX', None)]


iMessage Plugin Debug sql_fetchmessages: Not empty return:[('+1305986XXXX', None, 0)]
iMessage Plugin Debug newlist after checking audio file:[('+1305986XXXX', None)]
iMessage Plugin Debug Flatten Messages first:
iMessage Plugin Debug ['+1305986XXXX', None]
iMessage Plugin Debug Then convert to Dict:
iMessage Plugin Debug Coverted Dict:
iMessage Plugin Debug {'+1305986XXXX': None}
iMessage Plugin Debug parse messages() method called.
iMessage Plugin Debug Message Received: Message Info:{'+1305986XXXX': None}
iMessage Plugin Debug Checking messages: Received: Buddy :+1305986XXXX Received Message:None
iMessage Plugin Debug Buddies Current now equals:('+1305986XXXX',)
iMessage Plugin Debug Message Received - but buddyhandle not allowed; Handled received equals:+1305986XXXX
iMessage Plugin Debug Allowed Buddies Equal:305986XXXX,3059867196,7867193006,3059861592
iMessage Plugin Debug Deleting this message, continuing with others parsing
iMessage Plugin Debug SELF.lastcommand PRIOR equals:{}
iMessage Plugin Debug self.lastcommand equals:{}
iMessage Plugin Debug sql_fetchmessages: Not empty return:[('+1305986XXXX', None, 0)]
iMessage Plugin Debug newlist after checking audio file:[('+1305986XXXX', None)]
iMessage Plugin Debug Flatten Messages first:
iMessage Plugin Debug ['+1305986XXXX', None]
iMessage Plugin Debug Then convert to Dict:
iMessage Plugin Debug Coverted Dict:
iMessage Plugin Debug {'+1305986XXXX': None}
iMessage Plugin Debug parse messages() method called.
iMessage Plugin Debug Message Received: Message Info:{'+1305986XXXX': None}
iMessage Plugin Debug Checking messages: Received: Buddy :+1305986XXXX Received Message:None
iMessage Plugin Debug Buddies Current now equals:('+1305986XXXX',)
iMessage Plugin Debug Message Received - but buddyhandle not allowed; Handled received equals:+1305986XXXX
iMessage Plugin Debug Allowed Buddies Equal:305986XXXX,3059867196,7867193006,3059861592
iMessage Plugin Debug Deleting this message, continuing with others parsing
iMessage Plugin Debug SELF.lastcommand PRIOR equals:{}
iMessage Plugin Debug self.lastcommand equals:{}
Attachments
Image 2-10-23 at 8.42 AM.JPEG
Image 2-10-23 at 8.42 AM.JPEG (36.18 KiB) Viewed 1363 times
Image 2-10-23 at 8.44 AM.JPEG
Image 2-10-23 at 8.44 AM.JPEG (92.55 KiB) Viewed 1363 times
Image 2-10-23 at 8.51 AM.JPEG
Image 2-10-23 at 8.51 AM.JPEG (87.26 KiB) Viewed 1363 times

Posted on
Fri Feb 10, 2023 11:07 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: can't get imassage plugin to trigger event

Hi
You are correct - it seems that the message received is none.

Also seems like your Buddies are not correct?
Needs to match completely - there is the Plugin Config setting "Show Buddy Handle in log"
Enabled this - send a message - and the buddy handle displayed should go into the allowed Buddies section.

If that is all sorted (or already sorted and misread)
Then back to the None for the message..

The details here are a SQL query against the iMsg DB, there is not much else to it.

Few thoughts:
Group messages won't work - make sure is single recipient (Indigo Plugin iMsg account ideally)
Check not multiple entries for same Buddy in chat window - if in doubt delete them from iMsg window Hx
iMsg needs to be open in the background
Really short messages to trigger on perhaps aren't ideal - see the question/answer example/AGs (wouldn't explain why None for message)
Unlikely to be security aspects - as seems to be accessing the SQL iMsg Database

Posted on
Thu Mar 02, 2023 7:14 am
techmyhome offline
Posts: 3
Joined: Jan 02, 2023

Re: can't get imassage plugin to trigger event

I added the +1 to the phone number in the buddies list.
but still not working.

I add a apple ID to the buddies list and that worked

if I text using the apple ID it works but phone numbers do not

please help

Posted on
Thu Mar 02, 2023 2:12 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: can't get imassage plugin to trigger event

As mentioned above

Go into pluginConfig
Turn on “Show Buddy handle in Log”
Send a message
See what the log tells you the correct BuddyHandle is - use that.

This will tell you what iMessage expects for that buddy. It’s the BuddyHandle - it may appleID or phone numbers - for that user.

Glenn


Sent from my iPad using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests