@@ -201,31 +201,6 @@ var loadComplete = function(e) {
201201 $ ( '#loading .complete' ) . stop ( true , true ) . animate ( { width : 200 } , { complete : trackerInit } ) ;
202202} ;
203203
204- var hysplit = { } ;
205- var hysplit_data = { } ;
206- var refresh_hysplit = function ( ) {
207- $ . getJSON ( "//spacenear.us/tracker/datanew.php?type=hysplit&format=json" , function ( data ) {
208- var refresh = false ;
209-
210- for ( var k in data ) {
211- if ( k in hysplit_data ) {
212- // if the jobid is the same, skip to next one
213- if ( hysplit_data [ k ] . jobid == data [ k ] . jobid ) continue ;
214-
215- // otherwise update the url
216- hysplit_data [ k ] = data [ k ] ;
217- hysplit [ k ] . setUrl ( hysplit_data [ k ] . url_kmz ) ;
218- } else {
219- hysplit_data [ k ] = data [ k ] ;
220- hysplit [ k ] = new google . maps . KmlLayer ( { url : hysplit_data [ k ] . url_kmz , preserveViewport :true } ) ;
221- refresh = true ;
222- }
223- }
224-
225- if ( refresh ) refreshUI ( ) ;
226- } ) ;
227- } ;
228-
229204// loads the tracker interface
230205function trackerInit ( ) {
231206 $ ( '#loading,#settingsbox,#aboutbox,#chasebox' ) . hide ( ) ; // welcome screen
@@ -240,10 +215,6 @@ function trackerInit() {
240215 $ . getScript ( "js/init_plot.js" , function ( ) { checkSize ( ) ; if ( ! map ) load ( ) ; } ) ;
241216 if ( wvar . graph ) $ ( '#telemetry_graph' ) . attr ( 'style' , '' ) ;
242217
243- // fetch hysplit jobs
244- // setInterval(refresh_hysplit, 60 * 1000);
245- // refresh_hysplit();
246-
247218 return ;
248219 }
249220 if ( ! map ) load ( ) ;
@@ -480,7 +451,7 @@ var updateTimebox = function(date) {
480451} ;
481452
482453var format_time_friendly = function ( start , end ) {
483- var dt = Math . floor ( ( end - start ) / 1000 ) ;
454+ var dt = Math . floor ( ( end - start ) / 1000 ) ; ;
484455 if ( dt < 0 ) return null ;
485456
486457 if ( dt < 60 ) return dt + 's' ;
@@ -566,23 +537,6 @@ $(window).ready(function() {
566537 // expand graph on startup, if nessary
567538 if ( wvar . graph_expanded ) $ ( '#telemetry_graph .graph_label' ) . click ( ) ;
568539
569- // hysplit button
570- $ ( "#main" ) . on ( 'click' , '.row .data .vbutton.hysplit' , function ( event ) {
571- event . stopPropagation ( ) ;
572-
573- var elm = $ ( this ) ;
574- var name = elm . attr ( 'data-vcallsign' ) ;
575-
576- if ( elm . hasClass ( "active" ) ) {
577- elm . removeClass ( 'active' ) ;
578- map . removeLayer ( hysplit [ name ] ) ;
579- }
580- else {
581- elm . addClass ( 'active' ) ;
582- map . addLayer ( hysplit [ name ] ) ;
583- }
584- } ) ;
585-
586540 $ ( "#main" ) . on ( 'click' , '.row .data .vbutton.path' , function ( event ) {
587541 event . stopPropagation ( ) ;
588542
@@ -721,7 +675,7 @@ $(window).ready(function() {
721675 field . attr ( 'disabled' , 'disabled' ) ;
722676 e . removeClass ( 'off' ) . addClass ( 'on' ) ;
723677
724- // push listener doc to habitat
678+ // push listener doc to SondeHub
725679 // this gets a station on the map, under the car marker
726680 // im still not sure its nessesary
727681 if ( ! CHASE_listenerSent ) {
@@ -730,7 +684,7 @@ $(window).ready(function() {
730684 CHASE_listenerSent = true ;
731685 }
732686 }
733- // if already have a position push it to habitat
687+ // if already have a position push it to SondeHub
734688 if ( GPS_ts ) {
735689 ChaseCar . updatePosition ( callsign , { coords : { latitude : GPS_lat , longitude : GPS_lon , altitude : GPS_alt , speed : GPS_speed } } ) ;
736690 }
0 commit comments