forked from dterweij/autorx2mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added direction arrow * Moved all configurable variables to config.php (rename config.example.php) so a new git pull/download wont overwrite your settings next times :-)
- Loading branch information
Showing
6 changed files
with
146 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
// ######################## TURN OFF ALL ERRORS ############################# | ||
ini_set('error_reporting', -1); | ||
ini_set('display_errors', 0); | ||
// Your QTH | ||
$mylat = 52.789566; | ||
$mylon = 6.124827; | ||
// Sonde | ||
$_nearbysonde = 10; // Mark a nearby sonde with a color, Range in KM | ||
// Database | ||
$dbhost = "192.168.0.91"; // Host | ||
$dbuser = "autorx"; // User | ||
$dbpass = "f6vrpyqwjxaogW7J"; // Password | ||
$dbdb = "autorx"; // Database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
function arrowdirection($deg) { | ||
$style = '-moz-transform: rotate(' . $deg . 'deg); -webkit-transform: rotate(' . $deg . 'deg); -o-transform: rotate(' . $deg . 'deg); -ms-transform: rotate(' . $deg . 'deg); transform: rotate(' . $deg . 'deg); }'; | ||
return $style; | ||
} | ||
|
||
function _bearing($lat1, $lon1, $lat2, $lon2) { | ||
$bearing = (rad2deg(atan2(sin(deg2rad($lon2) - deg2rad($lon1)) * cos(deg2rad($lat2)), cos(deg2rad($lat1)) * sin(deg2rad($lat2)) - sin(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($lon2) - deg2rad($lon1)))) + 360) % 360; | ||
return $bearing; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters