Location information

Not applicable

Does anyone have an extension attribute or other means of extracting an OS X or iOS device's location at that moment? And if so, is there an easy way to integrate something like a Google Map with that info into your JSS?

-- -- -- -- -- -- -- -- -- --
Dave Simon
Director, Media Engineering and Operations

T +1.415.808.3594 | F +1.415.808.3535 | C +1.617.908.5043
600 Harrison St • San Francisco, CA • 94107

PRN | media where & when it matters

4 REPLIES 4

jminko
New Contributor

Looking for this too! any ideas?

rockpapergoat
Contributor III

here's a blog post about setting up a custom fact for this type of data:

http://puppetlabs.com/blog/facter-part-3-caching-and-ttl/

you can integrate facter with casper to get the same results.

jminko
New Contributor

Rockpapergoat, u Rock.

I didn't check that link out yet but just knowing something is out there is great news!

How would I integrate into Casper?

rockpapergoat
Contributor III

i would probably just start using facter and custom facts to use as extension attributes. that's what i'm planning, at least.

if you want, you could do something like this in lieu of using facter.

https://gist.github.com/1854372

to use that, be sure to install the rest-client ruby gem first. you don't need to require facter at all, since it's not really used. the example depends on the gem, network access, and will return a result suitable for use as an extension attribute -- in this case, the "city" attribute based on geoIP lookup.