Read my post on how to setup commands on your Mac to control your home automation platform from the command line - http://ift.tt/2jHexBN
via Tumblr http://ift.tt/2jmZqPo
Read my post on how to setup commands on your Mac to control your home automation platform from the command line - http://ift.tt/2jHexBN
tell application "Messages" send "$MSG" to buddy "$IFT" of service "SMS" end tell
#!/bin/bash | |
# | |
# ifttt - Send a text message to my IFTTT phone channel with a tag that | |
# triggers a corresponding Harmony activity. | |
# | |
# My IFTTT Phone Channel number | |
# (Replace ########## with your IFTTT phone number) | |
IFT="##########" | |
MSG= | |
usage() { | |
printf "\nUsage: ifttt [lights | appletv | bluray | tv | off] [on | off]" | |
printf "\n\tFirst argument required. Second argument optional, default on" | |
printf "\n\nExample invocations:" | |
printf "\n\tTurn all lights on" | |
printf "\n\t\tifttt lights on -or- ifttt lights" | |
printf "\n\tTurn all lights off" | |
printf "\n\t\tifttt lights off" | |
printf "\n\tTurn Apple TV on" | |
printf "\n\t\tifttt appletv on -or- ifttt appletv" | |
printf "\n\tTurn Apple TV off" | |
printf "\n\t\tifttt appletv off" | |
printf "\n\tTurn Blu-Ray player on" | |
printf "\n\t\tifttt bluray on -or- ifttt bluray" | |
printf "\n\tTurn Blu-Ray player off" | |
printf "\n\t\tifttt bluray off" | |
printf "\n\tTurn TV on" | |
printf "\n\t\tifttt tv on -or- ifttt tv" | |
printf "\n\tTurn TV off" | |
printf "\n\t\tifttt tv off\n" | |
exit 1 | |
} | |
[ "$1" ] || usage | |
[ "$1" = "-u" ] && usage | |
inst=`type -p osascript` | |
[ "$inst" ] || { | |
echo "AppleScript is not supported on this platform." | |
echo "Unable to send text message via command line." | |
usage | |
} | |
# Convert arguments to lower case | |
activity=`echo "$1" | tr '[:upper:]' '[:lower:]'` | |
action=`echo "$2" | tr '[:upper:]' '[:lower:]'` | |
[ "$activity" = "lights" ] && { | |
[ "$action" = "on" ] && MSG="#LightsOn" | |
[ "$action" = "off" ] && MSG="#LightsOff" | |
[ "$action" = "spin" ] && MSG="#Spin" | |
[ "$action" ] || MSG="#LightsOn" | |
} | |
[ "$activity" = "appletv" ] && { | |
[ "$action" = "on" ] && MSG="#AppleTV" | |
[ "$action" = "off" ] && MSG="#AppleOff" | |
[ "$action" ] || MSG="#AppleTV" | |
} | |
[ "$activity" = "bluray" ] && { | |
[ "$action" = "on" ] && MSG="#Bluray" | |
[ "$action" = "off" ] && MSG="#BlurayOff" | |
[ "$action" ] || MSG="#Bluray" | |
} | |
[ "$activity" = "tv" ] && { | |
[ "$action" = "on" ] && MSG="#WatchTV" | |
[ "$action" = "off" ] && MSG="#Off" | |
[ "$action" ] || MSG="#WatchTV" | |
} | |
[ "$activity" = "off" ] && { | |
MSG="#Goodnight" | |
} | |
[ "$MSG" ] || usage | |
osascript << EOT | |
tell application "Messages" | |
send "$MSG" to buddy "$IFT" of service "SMS" | |
end tell | |
EOT | |
[ "$activity" = "off" ] && { | |
sleep 5 | |
MSG="#Bedtime" | |
osascript << EOT | |
tell application "Messages" | |
send "$MSG" to buddy "$IFT" of service "SMS" | |
end tell | |
EOT | |
} |
#!/bin/bash ifttt tv $*
What’s the best Muse album? “The Resistance” includes “MK Ultra”, “I Belong To You”, and the Exogenesis symphony. It’s my favorite and displays Muse as both the Queen and the George Gershwin of our time. Thanks Muse! #muse #queen #gershwin #theresistance #exogenesis #mkultra http://ift.tt/2jvNbin
What’s the best Muse album? “The Resistance” includes “MK Ultra”, “I Belong To You”, and the Exogenesis symphony. It’s my favorite and displays Muse as both the Queen and the George Gershwin of our time. Thanks Muse! #muse #queen #gershwin #theresistance #exogenesis #mkultra (at Casa de Recuerdo)
In June of 2016 The Traveling Wilburys released a really fine vinyl box set. The linen-cloth box cover itself is exquisite and contains both Wilbury albums on 180 gram vinyl, a bonus LP with extended mixes, a 12x12 14 page booklet, a 36x12 poster, 6 4x6 sepia postcards, and liner notes. The bonus LP tracks are:
“Handle With Care (Extended Version)”
“Like a Ship”
“Maxine”
“End of the Line (Extended Version)”
“Nobody’s Child”
“Not Alone Anymore (Remix)”
“Runaway”
There is also a CD/DVD box set which I also have but this vinyl box is super sweet. http://a.co/33X2Yap
Thanks Wilburys!
#travelingwilburys #vinyl #bobdylan #jefflynne #georgeharrison #tompetty #royorbison #boxset http://ift.tt/2jpxEkE
In June of 2016 The Traveling Wilburys released a really fine vinyl box set. The linen-cloth box cover itself is exquisite and contains both Wilbury albums on 180 gram vinyl, a bonus LP with extended mixes, a 12x12 14 page booklet, a 36x12 poster, 6 4x6 sepia postcards, and liner notes. The bonus LP tracks are:
“Handle With Care (Extended Version)”
“Like a Ship”
“Maxine”
“End of the Line (Extended Version)”
“Nobody’s Child”
“Not Alone Anymore (Remix)”
“Runaway”
There is also a CD/DVD box set which I also have but this vinyl box is super sweet. http://a.co/33X2Yap
Thanks Wilburys!
#travelingwilburys #vinyl #bobdylan #jefflynne #georgeharrison #tompetty #royorbison #boxset (at Casa de Recuerdo)
The 150 gram double LP 45 rpm vinyl pressing of the 2013 masterpiece “…Like Clockwork” by Queens of the Stone Age is an excellent example of why vinyl is a superior medium. I dare anybody to listen to this on vinyl (with a good turntable, cartridge, amp, and speakers) and compare that to any other medium. Also, it’s just a super fantastic album. Nowhere in the description on Amazon or the album cover or the records does it say 45 rpm so you just gotta know that little detail. It’s an important little detail as properly mastered 45 rpm vinyl offers even greater audio reproduction as the stylus is able to read a greater detail of wiggles in the grooves.
Thanks QotSA! http://a.co/5eYEwTJ #qotsa #vinyl #45rpm #likeclockwork http://ift.tt/2jnTRiA
The 150 gram double LP 45 rpm vinyl pressing of the 2013 masterpiece “…Like Clockwork” by Queens of the Stone Age is an excellent example of why vinyl is a superior medium. I dare anybody to listen to this on vinyl (with a good turntable, cartridge, amp, and speakers) and compare that to any other medium. Also, it’s just a super fantastic album. Nowhere in the description on Amazon or the album cover or the records does it say 45 rpm so you just gotta know that little detail. It’s an important little detail as properly mastered 45 rpm vinyl offers even greater audio reproduction as the stylus is able to read a greater detail of wiggles in the grooves.
Thanks QotSA! http://a.co/5eYEwTJ #qotsa #vinyl #45rpm #likeclockwork (at Casa de Recuerdo)