Skip to content

Commit

Permalink
add location analysis to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Aug 9, 2018
1 parent 7af2402 commit 50a2f2b
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
71 changes: 69 additions & 2 deletions server/main/templates/analysis.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
{{ range .Locations }}
{{ template "header" . }}
<!-- Left Panel -->
<!-- Right Panel -->
<div id="right-panel" class="right-panel">
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>Accuracy analysis</h1>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-right">
<li class="active" style="text-transform:none;">{{ .Family }}</li>
</ol>
</div>
</div>
</div>
</div>
<div class="content mt-3">
{{ with .Message }}
<div class="col-sm-12">
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{.}}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>
{{ end }} {{ with .ErrorMessage }}
<div class="col-sm-12">
<div class="alert alert-danger alert-dismissible fade show" role="alert">
{{.}}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>
{{ end }}
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-sm-12">
<h4 class="card-title mb-0">About</h4>
</div>
<div class="col-sm-12">
<p>These graphs show the raw RSSI value (X-axis) and the probability (Y-axis) for each location for the top 10 most important access points. The most important access points have the most variance across the location set, thus are the most distinguishing.</p>
<p>If you see two graphs with very similar patterns, then likely those two locations are too close together to be able to distinguish them correctly.</p>
</div>
</div></div></div></div>

{{ range .Locations }}
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<div class="row">
<img src="/view/location_analysis/{{$.Family}}/{{.}}">
{{end}}
</div></div></div></div>
{{end}}

</div>
<!-- .content -->
</div>
<!-- /#right-panel -->
{{ template "footer" . }}

4 changes: 4 additions & 0 deletions server/main/templates/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
<a href="/view/dashboard/{{.Family}}">
<i class="menu-icon fas fa-tachometer-alt fa-lg"></i>Dashboard </a>
</li>
<li>
<a href="/view/analysis/{{.Family}}" target="_blank">
<i class="menu-icon fa fa-chart-bar fa-lg"></i>Location analysis </a>
</li>
<li>
<a href="https://www.internalpositioning.com/doc/tracking_your_phone.md" target="_blank">
<i class="menu-icon fa fa-book fa-lg"></i>Getting started </a>
Expand Down

0 comments on commit 50a2f2b

Please sign in to comment.