blink1 icon indicating copy to clipboard operation
blink1 copied to clipboard

Add Skype status in Blink1Control

Open todbot opened this issue 11 years ago • 0 comments

Skype presence indicators should be possible to add to Blink1Control.

Enable this ability by going into Skype Preferences / Privacy and enable "Show my Status on the Web": skype-presence-enable

Now one can fetch the the presence status via URL with http://mystatus.skype.com/username.txt or http://mystatus.skype.com/username.xml where "username" is your url-encoded Skype username. This should be part of Blink1Control natively, but a quick hack would be a custom "Tool" script that did something like:

#!/bin/sh
#
# Get Skype presence indicator, return based on it
#
username=$1

if [ -z "$username" ] ; then 
  echo "usage: $0 skypeusername";  exit 1;
fi

skype_url="http://mystatus.skype.com/${username}.txt"
val=`curl -s "${skype_url}"`

if [ "$val" = "Offline" ] ; then
    echo "#000000";
elif [ "$val" = "Online" ] ; then
    echo "#00FF00";
elif [ "$val" = "Away" ] ; then
    echo "#FFFF00";
elif [ "$val" = "Do Not Disturb" ] ; then
    echo "#FF0000";
else
    echo "#000000";
fi

This hacky tool has been checked into blink1/mac/scripts: https://github.com/todbot/blink1/blob/master/mac/scripts/skype-presence.sh

todbot avatar Nov 07 '14 03:11 todbot