Skip to content

unwiredlabs/location-magic

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Location Magic

A simple way to track *nix devices

How Location Magic locates your device

  • Scripts in this repo, when run on your device, search for nearby WiFi access points and send us their BSSIDs (physical address)
  • We then send this data to Unwired Labs' LocationAPI (https://unwiredlabs.com), a WiFi positioning service
  • We plot the location Unwired Labs returns on a map, here: https://locationmagic.org/locate

Installation Instructions for *nix devices

  • Get a token from the Location Magic website

  • Download the locationmagic.sh script from this repo

  • Copy it to /usr/local/bin directory

      $ cp locationmagic.sh /usr/local/bin/  
    
  • Make this script executable with chmod +x

      $ chmod +x /usr/local/bin/locationmagic.sh	
    
  • Install it to your crontab to make it run every hour

      $ crontab -e
      # Paste this there after replacing $platform with osx / linux and $token with your Location Magic token
      0 * * * * cd /usr/local/bin/ && ./locationmagic.sh -locate $platform $token
    
  • Run it the first time manually

  •    $ cd /usr/local/bin/ && ./locationmagic.sh -locate $platform $token
    
  • If all is well, you should be able to locate your device here: https://locationmagic.org/locate

About this repository

This repo contains install scripts used on the Location Magic website.

About

A simple way to track *unix devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages