Posts

Showing posts with the label GeekTool

GeekTool: Geekweather2 auto-geolocation updated w/ city name

Image
Continued from:   http://tech.zsoldier.com/2014/11/geektool-geekweather2-w-auto-geo.html I briefly looked through the corelocation framework .  Looks like the CLGeocoder Class could return friendly names, but I've been playing w/ Python lately so took that route for now. Be that as it may, wrote a little python script to take the latitude and longitude results from locateme to have it return city name from Google mapping API's.  I also updated the geekweather2.sh script to accept "Names" that have underscores and/or spaces.  The python script needs work as I'm kind of guessing w/ the return I get from geopy . I'll look into it more just out of curiosity, but if you have a chance, would love for someone to update my gist to determine city more accurately. PreReqs: Install geopy module for python pip install geopy Below is my fork of geekweather2.sh: https://github.com/Zsoldier/GeekWeather2/blob/master/geekWeather2.sh Below is what th...

GeekTool: GeekWeather2 w/ auto geo-location...

Image
If you haven't downloaded geektool for the Mac, I would definitely recommend doing so for the 'tinkerers' out there.  I first saw it on LifeHacker and have been somewhat infatuated with it.  Here is what one of my mac's looks like: Click the image to see it full resolution. Since the bash command line outputs can be downloaded as geeklets  and are relatively easy, I'm going to focus on how to setup the GeekWeather2 geeklet.  In addition to setting that up, I'll also show you how I was able to get it to update the image based on my current location rather than statically set Longitude, Latitude parameters.  (Geeklet is simply another term for a widget specific to geektool.)  Continue through to the page break to learn more.