Skip to content

Commit

Permalink
Switched to https connection with AWS server.
Browse files Browse the repository at this point in the history
  • Loading branch information
clodomir vianna da silva neto committed Apr 19, 2024
1 parent fce33be commit 1d88420
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const app = Vue.createApp( {
canvas2D.getContext('2d').clearRect(0, 0, canvas2D.width, canvas2D.height);

mountedApp.object_path.length = 0;
mountedApp.predicted_path.length = 0;

// Cleaning all interface output fields.
document.getElementById("latitude").value = '';
Expand Down
2 changes: 1 addition & 1 deletion components/Interface/ViewPanel/components/Map2DTab/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function updateMap(paths) {
lon = longitude/scale_fix;

canvas2D.getContext('2d').fillStyle = "rgba(255, 255, 255, 1)";
canvas2D.getContext('2d').fillRect(lon, lat, 2, 2);
canvas2D.getContext('2d').fillRect(lon, lat, 0.3, 0.3);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ app.component('specs-tab', {
tle_string(new_value, old_value){

this.feedTLEFields();
this.fetchSatbotInfo();
// this.fetchSatbotInfo();
this.fetchPredictedPath();
}

Expand Down Expand Up @@ -225,15 +225,14 @@ app.component('specs-tab', {
// console.log(encodeURI(tle_line2));

// Request computed orbit based on the TLE info.
API_URL = "http://ec2-34-222-130-73.us-west-2.compute.amazonaws.com/skyVue-php" + "?tle_line1=" + tle_line1 + "&tle_line2=" + tle_line2;
API_URL = "https://ec2-34-222-130-73.us-west-2.compute.amazonaws.com/skyVue-php/" + "?tle_line1=" + tle_line1 + "&tle_line2=" + tle_line2;
fetch(API_URL)
.then((response) => response.json())
.then((data) => {

console.log(data);
// console.log(data);

// mountedApp.predicted_path = data.path;
// console.log(mountedApp.predicted_path);
mountedApp.predicted_path = data;

});

Expand Down

0 comments on commit 1d88420

Please sign in to comment.