TRiXWooD Scripts viewtopic.php?f=23&t=12145&p=87422#p87422
Uses: Mac, OSX, Applescript
I have domoticz running on OSX and I use this for notification iMessage. I suggest you create a new appleid for your osx domoticz server. Login to it with the message app. Now you can use this account to send imessages (you can use your own account but it nicer not to)
notify.sh
Code: Select all
#!/bin/bash
osascript ~/Smarthome/domoticz/scripts/imessage.scpt "[email protected]" "Subject: $1"
osascript ~/Smarthome/domoticz/scripts/imessage.scpt "[email protected]" "$2"
Ofcourse you can always change it into one beep with
Code: Select all
#!/bin/bash
osascript ~/Smarthome/domoticz/scripts/imessage.scpt "+31063356235" "Subject: $1 $2"
Code: Select all
on run argv
tell application "Messages" to send (item 2 of argv) to buddy (item 1 of argv)
tell application "Messages" to send (item 3 of argv) to buddy (item 1 of argv)
end run
Signed TRiXWooD
Update
Ofcourse this is maybe better:
notify.sh
Code: Select all
#!/bin/bash
osascript ~/Smarthome/domoticz/scripts/imessage.scpt "$1" "Subject: $2"
osascript ~/Smarthome/domoticz/scripts/imessage.scpt "$1" "$3"
For config sake... rum...