Skip to content

Instantly share code, notes, and snippets.

@Zsoldier
Created June 29, 2016 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zsoldier/c2f365b10e296e09fc3cd683943e175e to your computer and use it in GitHub Desktop.
Save Zsoldier/c2f365b10e296e09fc3cd683943e175e to your computer and use it in GitHub Desktop.
Bash script that can be used in GeekTool to generate geekweather2 geeklet image that is placed in /tmp/ directory. This particular version utilizes a python script to return city friendly name since.
LAT="$(~/Dropbox/LocateMe/LocateMe -f "{LAT}")"
LON="$(~/Dropbox/LocateMe/LocateMe -f "{LON}")"
city=$(python ~/Dropbox/GeekTool/cityLocator.py $LAT $LON)
~/Dropbox/GeekTool/Geekweather2.sh -A $LAT -O $LON -n $city -u UK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment