-
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.
- Loading branch information
Showing
13 changed files
with
122 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Date/Time,# Satellites,Horizontal DOP,Latitude,Longitude,Altitude,Course,Speed (kt/100),Speed (km/h),From Home (m) | ||
2017-06-23T14:43:02Z,6,130,47.166217,7.634873,493.30,38.94,,1.63,15.82 | ||
2017-06-23T14:43:02Z,6,130,47.166217,7.634873,493.30,38.94,,1.63,15.82 | ||
2017-06-23T18:48:35Z,6,190,47.166206,7.634968,501.90,112.17,,0.74,13.43 |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# IoTCatTracker | ||
|
||
This repository contains the 'Cat Tracker' project realised | ||
in the course Internet of Things (MTE7117) at the Bern University of Applied Sciences (BUAS) in the spring term 2017. | ||
|
||
This repository also contains a [short report](doc/report.pdf) | ||
and [slides for the oral presentation](doc/presentation.pdf). |
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
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,78 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | ||
<head> | ||
<title>IoTCatTracker – Visualiser</title> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta name="robots" content="index, follow" /> | ||
<meta name="author" content="Thomas Reto Strub" /> | ||
<meta name="description" content="Visualiser for the IoT cat tracker records" /> | ||
<meta name="keywords" content="Thomas, Reto, Strub, StrubT, strut1, Hersiwil, Solothurn, Switzerland, IoT, GPS, cat, tracker" /> | ||
<link rel="icon" type="image/x-icon" href="https://www.StrubT.ch/favicon.ico" /> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous" /> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/0b7364129d.css" /> | ||
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAWJgjmulnfAxIjUiWguoSY0DJXk89PFS8"></script> | ||
<script> | ||
function visualise(event) { | ||
|
||
var home = { lat: 47.166320, lng: 7.635007 }; | ||
|
||
var reader = new FileReader(); | ||
reader.onload = function () { | ||
var coordinates = [home]; | ||
var lines = reader.result.split(/[\r\n]+/); | ||
|
||
for (var line = 1; line < lines.length; line++) { | ||
var fields = lines[line].split(/,/); | ||
if (fields.length == 10) | ||
coordinates.push({ lat: parseFloat(fields[3]), lng: parseFloat(fields[4]) }); | ||
} | ||
coordinates.push(home); | ||
|
||
new google.maps.Polyline({ | ||
path: coordinates, | ||
geodesic: true, | ||
strokeColor: '#FF0000', | ||
strokeOpacity: 1.0, | ||
strokeWeight: 2 | ||
}).setMap(new google.maps.Map(document.getElementById('map'), { | ||
zoom: 17, | ||
center: home, | ||
mapTypeId: 'satellite' | ||
})); | ||
}; | ||
|
||
reader.readAsText(event.target.files[0]); | ||
} | ||
</script> | ||
</head> | ||
<body style="padding-top: 4rem;"> | ||
<header class="navbar navbar-toggleable-md navbar-inverse bg-inverse fixed-top"> | ||
<div class="container"> | ||
<h1 class="navbar-brand mb-0">IoTCatTracker – Visualiser</h1> | ||
</div> | ||
</header> | ||
<main class="container"> | ||
<section class="jumbotron"> | ||
<h2 class="display-4">Intro</h2> | ||
<p class="lead"> | ||
I realised the 'Cat Tracker' project in the course Internet of Things (MTE7117) at the Bern University of Applied Sciences (BUAS) in the spring term 2017. | ||
This website can be used to visualise the recorded GPS positions. | ||
</p> | ||
</section> | ||
<section class="mb-4"> | ||
<h2>Select File</h2> | ||
<p> | ||
<input type="file" id="file" accept=".csv" onchange="visualise(event)" /> | ||
</p> | ||
</section> | ||
<section class="mb-4"> | ||
<h2>Visualise GPS Positions</h2> | ||
<div id="map" style="width: 100%; height: 50rem;"> | ||
<em class="text-muted">select a file to generate the map</em> | ||
</div> | ||
</section> | ||
</main> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.