projects:tracker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:tracker [2008/08/28 01:10] – Added usage instructions for the tracker. natrium42 | projects:tracker [2011/07/26 02:50] (current) – [Usage] natrium42 | ||
---|---|---|---|
Line 7: | Line 7: | ||
==== Download ==== | ==== Download ==== | ||
+ | [[http:// | ||
+ | |||
[[http:// | [[http:// | ||
Line 25: | Line 27: | ||
`gps_heading` double NOT NULL default ' | `gps_heading` double NOT NULL default ' | ||
`gps_speed` double NOT NULL default ' | `gps_speed` double NOT NULL default ' | ||
+ | `picture` varchar(32) NOT NULL default '', | ||
PRIMARY KEY (`position_id`) | PRIMARY KEY (`position_id`) | ||
) ENGINE=MyISAM | ) ENGINE=MyISAM | ||
</ | </ | ||
- | *Copy all files to a folder on your server. | + | * Copy all files to a folder on your server. |
- | *Edit config.php | + | * Edit config.php |
- | * Google maps requires an API Key for each domain, sign up for one at [[http:// | + | * Google maps requires an API Key for each domain, sign up for one at [[http:// |
- | ==== Usage ==== | + | ==== Customization |
+ | * Modify the Twitter section in index.php: you can remove it or put your own user name | ||
+ | * Modify the Mibbit IRC section in index.php: you can remove it or put your own IRC channel into it | ||
+ | * Modify the ustream section in index.php to enable live video feed | ||
+ | * If you don't need picture down-link, remove header div from index.php | ||
+ | ==== Usage ==== | ||
- | === Updates via Email === | + | === Updates via HTTP GET or POST === |
- | Send email to track@domain.com of the format: | + | To send an update via HTTP, send a GET or POST request to http:// |
- | N: | + | |
- | It's also possible to omit " | + | |
- | N: | + | |
- | Note: Altitude is in meters, heading is in degrees, speed is in km/h, time format is hhmmss. | + | |
- | + | ||
- | === Updates via HTTP GET === | + | |
- | To send an update via HTTP, send a GET request to http:// | + | |
vehicle=halo | vehicle=halo | ||
time=233720 | time=233720 | ||
Line 56: | Line 57: | ||
http:// | http:// | ||
The best way is to use //curl// instead. | The best way is to use //curl// instead. | ||
+ | |||
+ | Note: Altitude is in meters, heading is in degrees, speed is in km/h, time format is hhmmss. Decimal lat/lon can be used, because the tracker auto-recognizes the format. | ||
+ | |||
+ | === Updates via Email === | ||
+ | Send email to track@domain.com of the format: | ||
+ | N: | ||
+ | It's also possible to omit " | ||
+ | N: | ||
+ | Note: Altitude is in meters, heading is in degrees, speed is in km/h, time format is hhmmss. | ||
=== Live Pictures === | === Live Pictures === | ||
- | 1. Upload picture using //curl//: | + | 1. Upload picture using // |
curl -F userfile=@picture.jpg -F password=yourpass -F MAX_FILE_SIZE=1000000 http:// | curl -F userfile=@picture.jpg -F password=yourpass -F MAX_FILE_SIZE=1000000 http:// | ||
2. Send HTTP GET request as above but with additional //picture// variable: | 2. Send HTTP GET request as above but with additional //picture// variable: | ||
Line 65: | Line 75: | ||
http:// | http:// | ||
Note that this is used as "meta data" for the picture only and is ignored as a location for the tracking map. | Note that this is used as "meta data" for the picture only and is ignored as a location for the tracking map. | ||
+ | |||
+ | === Administration === | ||
+ | Admin interface is available in http:// | ||
+ | |||
+ | === Change Log === | ||
+ | |||
+ | 0.2 (2009-01-24) | ||
+ | |||
+ | * Added picture down-link option | ||
+ | |||
+ | 0.1 (2008-08-02) | ||
+ | |||
+ | * Initial revision |
projects/tracker.1219885817.txt.gz · Last modified: 2008/08/28 01:10 by natrium42