From f396c0f0e44f70ad6b41ef7ba04c385a61bb6c3f Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 10 Feb 2016 07:52:16 +0100 Subject: [PATCH] fix comment --- contrib/faces/.gitignore | 2 ++ contrib/faces/gravatar2card.sh | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 contrib/faces/.gitignore diff --git a/contrib/faces/.gitignore b/contrib/faces/.gitignore new file mode 100644 index 0000000..88cc107 --- /dev/null +++ b/contrib/faces/.gitignore @@ -0,0 +1,2 @@ +*.jpg +*.png diff --git a/contrib/faces/gravatar2card.sh b/contrib/faces/gravatar2card.sh index 9eaae4e..9b951ec 100755 --- a/contrib/faces/gravatar2card.sh +++ b/contrib/faces/gravatar2card.sh @@ -2,18 +2,18 @@ # gravatar2card.sh (Feb 2017) by Jan-Piet Mens # Usage: gravatar2card email "full name" # -# Calculate email hash and obtain a 40x40 PNG from Gravatar. -# to BASE64. Create a JSON payload to be published to -# owntracks/username/device/info +# Calculate email hash and obtain a 40x40 PNG from Gravatar +# and convert image to BASE64. Create a JSON payload to be published +# retained to owntracks/username/device/info # # You probably want to do this: # # gravatar2card.sh email-address "Jane Jolie" > card.json -# mosquitto_pub -t owntracks/jane/phone -f card.json +# mosquitto_pub -t owntracks/jane/phone -r -f card.json # # Note: the two commands cannot be piplelined (mosquitto_pub -l) # because of a bug in mosquitto_pub: https://bugs.eclipse.org/bugs/show_bug.cgi?id=478917 -# If you have a newish version it should work fine. +# If you have a newer version it should work fine. [ $# -ne 2 ] && { echo "Usage: $0 email full-name" >&2; exit 2; }