Messages app plugin

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
petematheson
Posts: 847
Joined: Sun Sep 14, 2014 9:51 am
Location: Southampton, UK

Re: Messages app plugin

Post by petematheson »

It's from messages Image
gazally
Posts: 27
Joined: Mon Jan 18, 2016 7:13 pm
Location: Bigfoot country

Re: Messages app plugin

Post by gazally »

I can't get my Messages to put up that message no matter what I try. I even tried giving it a handler with an infinite loop and that hung Messages but no Wait message appeared.

Then I googled and found this, which is people having a similar problem with the Speak Events handler: http://apple.stackexchange.com/question ... o-yosemite

Does yours do the same thing if you change Messages to use the Speak Events applescript handler?
Seeker
Posts: 441
Joined: Mon Aug 05, 2013 5:08 am

Re: Messages app plugin

Post by Seeker »

gazally wrote:Seeker, are you sure you don't have a Mark as Read action hiding in a trigger somewhere? I notice I omitted a debugLog message in that action, which I'll remedy, but that's the only place in the code where message status gets sent to Read.

Pete, I haven't encountered a Wait prompt. Is it coming from Messages or Indigo?
i'm not sure I even have this setup properly. In my 'test device' for the plugin, i have it set to send using iMessage, and send/receive to myself (from the list of all contacts or whatever that is). I just want to send notifications to myself.

If I check 'send and receive messages from all senders', i get this:

Action Group messages plugin test
Messages Error sendMessage was given empty message, handle or service. Message cannot be sent.


what's the best setup to simply send a message to my own account? I guess the concept is to set up a device for every person?
gazally
Posts: 27
Joined: Mon Jan 18, 2016 7:13 pm
Location: Bigfoot country

Re: Messages app plugin

Post by gazally »

Both ways can work. You can set up one device per person if that makes your Indigo logic easier or you can use one device for everybody with "all senders" if you prefer. One way you are choosing who to respond to when you create the devices, and the other way if there's anyone you don't want Indigo to respond to then you have to put conditions in your triggers to handle that.

If you use "all senders" then you have to configure the Send Message action to choose who to send the message to or you'll get that error message you saw. One of the options there is to send back to the last person a message was received from.
petematheson
Posts: 847
Joined: Sun Sep 14, 2014 9:51 am
Location: Southampton, UK

Re: Messages app plugin

Post by petematheson »

Strange - after a restart and also setting messages to none, restarting, then setting the script back - all seems ok!
peteinau
Posts: 65
Joined: Sat Jan 10, 2015 5:02 pm

Re: Messages app plugin

Post by peteinau »

Hi,

I'm getting an error message in my log when I receive a message. I have a trigger that runs when the status is set to New, but when it tries to execute the read message function.

Messages Error receiveMessage called without message, handle or service name

But there isn't any way to specify which message, handle or device to read a message from. Is that what the error is?

Thanks,
Pete
gazally
Posts: 27
Joined: Mon Jan 18, 2016 7:13 pm
Location: Bigfoot country

Re: Messages app plugin

Post by gazally »

Hi Pete,
Instead of the Receive Message action, try Mark current message read. Receive message is for scripting only, and it's how the Messages app communicates with Indigo. At this point I'm thinking I should have called it something else because it's kind of confusing.
User avatar
mwoodage
Posts: 189
Joined: Fri Dec 19, 2014 8:35 am
Location: Devon UK

Re: Messages app plugin

Post by mwoodage »

Hi All,
Hopefully someone can help with a messages problem I have? Have a look at the image below, I keep getting an "E" in front of my email address or phone number. I know is a setting in the message account somewhere but i can't find it - any help would be appreciated as its causing an error in the messages app.




Thanks
Martin
Attachments
Messages.tiff
Messages.tiff (56.69 KiB) Viewed 7823 times
virgahyatt
Posts: 131
Joined: Sat Jan 11, 2014 12:50 am

Re: Messages app plugin

Post by virgahyatt »

Is there anyway to have it send a file/image? I know how to do it with applescript but it would easier to do it through the plugin.

Just for an example this is the script

set theAttachment1 to POSIX file" /Users/lil/pic.png"
tell application "Messages"
send theAttachment1 to buddy "+1 (xxx) x7 " of service "E:[email protected]"
end tell
jabeard3
Posts: 52
Joined: Fri Nov 30, 2012 1:12 pm

Re: Messages app plugin

Post by jabeard3 »

I have a trigger that has multiple actions.
Basically, if device state changes then I want to send an e-mail and send 3 distinct message events via the Messages plugin. In the log (if I enable debug) I can see that all 3 are being sent however only the last device in the list is receiving the message.
User avatar
aldera
Posts: 229
Joined: Tue Aug 30, 2016 11:30 am
Location: Michigan, USA

Re: Messages app plugin

Post by aldera »

Hello,

I installed your Messages App Plugin and set up a device to send messages to my iPhone. I created a test trigger whose action is to use this device to send a message to my iPhone. The message does get sent to my iPhone. However, there is no notification (vibration/sound) on my phone that the message has arrived because the message is received as already being read. I believe this is because the Messages App on my MacMini also receives the same message and thus marks it as read. Is there any workaround for this since not getting any kind of notification on the iPhone kind of defeats the purpose of sending a message that requires immediate action? Thanks.
peteinau
Posts: 65
Joined: Sat Jan 10, 2015 5:02 pm

Re: Messages app plugin

Post by peteinau »

I handle this by creating a new iCloud account on my mac server that I use to communicate. That way you separate the "House" account form your personal account. This will stop it being read.
User avatar
aldera
Posts: 229
Joined: Tue Aug 30, 2016 11:30 am
Location: Michigan, USA

Re: Messages app plugin

Post by aldera »

peteinau wrote:I handle this by creating a new iCloud account on my mac server that I use to communicate. That way you separate the "House" account form your personal account. This will stop it being read.
But if I create a new account on the MacMini, then all of my apps on that computer (calendar, notes, contacts, etc., ) will lose sync with my iPhone and MacBook Pro data, correct? This is my main computer that I use all the time at home.
petematheson
Posts: 847
Joined: Sun Sep 14, 2014 9:51 am
Location: Southampton, UK

Re: Messages app plugin

Post by petematheson »

In that case I'd suggest changing to something like pushover instead. I've just switched over to getting general notifications from pushover now. iMessages are reserved just for sending photos from cctv cameras etc


Sent from my iPhone using Tapatalk
virgahyatt
Posts: 131
Joined: Sat Jan 11, 2014 12:50 am

Re: Messages app plugin

Post by virgahyatt »

You can be logged into more than one iCloud account within the same user profile. Some features are not available are not available to the secondary account (i.e. iCloud Drive) but messages is available. Then when you setup the device you choose the other account to send it with.
Post Reply

Return to “User Plugins”