Skip to content

Commit 156d222

Browse files
authored
Merge pull request projecthorus#48 from projecthorus/testing
Push testing to master
2 parents 6b0529a + af7abed commit 156d222

File tree

5 files changed

+72
-221
lines changed

5 files changed

+72
-221
lines changed

css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Habitat Mobile Tracker
1+
/* SondeHub Mobile Tracker
22
* Main style sheet
33
*
44
*/

img/sondehub_logo.png

1.41 KB
Loading

js/app.js

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -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
230205
function 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

482453
var 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
}

js/chasecar.lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* Habitat ChaseCar lib
2-
* Uploads geolocation for chase cars to habitat
1+
/* SondeHub ChaseCar lib
2+
* Uploads geolocation for chase cars to SondeHub
33
*
44
* Author: Rossen Gerogiev
55
* Requires: jQuery

0 commit comments

Comments
 (0)