[Mac] Core Services Location for Weather

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
darkscout Offline
Posting Freak
Posts: 2,145
Joined: Jul 2008
Reputation: 12
Post: #1
Snow leopard uses SkyHook to determine where your computer is. I forgot I set my Time Zone to automatically update, it's pretty cool to not have to worry about it.

Sample Code:
http://cocoawithlove.com/2009/09/whereis...ation.html

Rather than entering a zip code (and by default) you could set any of the 3 weather locations to "Where ever the heck my Mac is".

Great for those road warriors that travel a lot and often don't even know their zipcode. Plop down in a hotel room, fire up XBMC for some movies before the big meeting and check the weather.
-------
Scratch that. Looks like CoreLocation doesn't work in the command line. However. PreyProject has some nifty bash scripts for Linux, Windows and Mac that uses google geolocation tool.

http://github.com/tomas/prey-modules/tree/master/geo
(This post was last modified: 2010-06-12 08:03 by darkscout.)
find quote
GJones Offline
Fan
Posts: 438
Joined: Nov 2009
Reputation: 0
Post: #2
And sometimes you are between two weather stations, one of which is more distant but more indicative of the weather at your location. The one-time setup of a weather station seems fairly low-priority to me.
find quote