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
{ | |
"_id" : ObjectId("53f88003d09a526611992e12"), | |
"ap_mac" : "00-18-0A-XX-XX-XX", | |
"client_mac" : "00-0E-58-XX-XX-Xx", | |
"date" : ISODate("2014-07-03T23:00:00Z"), | |
"nas_id" : "WsZxntqLWTg0jXngVU2wXA", | |
"location_id" : 2087, | |
"duration" : 2564.3630000000003, | |
"count" : 13, | |
"mean" : 197.25869230769234, |
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
{ | |
"_id" : ObjectId("53b6e73588e37bb632497399"), | |
"__v" : 0, | |
"ap_mac" : "00-18-0A-XX-XX-XX", | |
"client_mac" : "20-7D-74-XX-XX-XX", | |
"created_at" : "1404495669580", | |
"day" : 5, | |
"hour" : 18, | |
"is_associated" : false, | |
"last_seen" : ISODate("2014-07-04T17:41:00.111Z"), |
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
We don't accept version three anymore. Get with the Poodle. | |
0.0244 (0.0051) S>C | |
--------------------------------------------------------------- | |
HTTP/1.1 200 OK | |
X-Powered-By: Express | |
Content-Type: text/plain | |
Content-Length: 2 | |
Date: Tue, 04 Nov 2014 16:46:19 GMT |
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
{ | |
"ln"=>"", | |
"ld"=>"{\"vn\":1,\"ma\":\"00:0F:7D:67:A4:40\",\"mc\":87,\"lt\":[{\"si\":\"VbDiDtEh6n5k0oHYbpCKoGlioIqSC+DWv/AR0IL9MwE=\",\"sm\":\"8C705A\",\"ap\":0,\"cn\":4,\"ot\":1417450140,\"ct\":1417450140,\"cf\":0,\"il\":0,\"ih\":551,\"sl\":-97,\"sh\":-82,\"so\":-83,\"sc\":-95},{\"si\":\"uEeGgagMsCrPiwo2CR8WWDAsCKyX/ynr/2XgaHzw714=\",\"sm\":\"AC220B\",\"ap\":0,\"cn\":4,\"ot\":1417450134,\"ct\":1417450134,\"cf\":0,\"il\":0,\"ih\":238,\"sl\":-93,\"sh\":-78,\"so\":-86,\"sc\":-85},{\"si\":\"2GL2AF5kyXahcVA589YQf3JIvhNz2yDo/xJ/sE0gvug=\",\"sm\":\"001302\",\"ap\":0,\"cn\":5,\"ot\":1417450145,\"ct\":1417450145,\"cf\":0,\"il\":0,\"ih\":60,\"sl\":-83,\"sh\":-60,\"so\":-64,\"sc\":-72},{\"si\":\"oSrj29UIjtCtVZ5sOH7kB7h+N0YiDHAN2XggDtoFO94=\",\"sm\":\"BCF5AC\",\"ap\":0,\"cn\":4,\"ot\":1417450143,\"ct\":1417450143,\"cf\":0,\"il\":0,\"ih\":301,\"sl\":-93,\"sh\":-75,\"so\":-93,\"sc\":-78},{\"si\":\"N99zpkrLHdl/GYlnJj4XSaxnxnI2Mqh3WEukkYUWbk4=\",\"sm\":\"3A9068\",\"ap\":0,\"cn\":1,\"ot\":1417450137,\"ct\":1417450137, |
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
[ | |
{ | |
"authenticated": true, | |
"authorized": true, | |
"capabilities": "2.4Ghz", | |
"channel": 11, | |
"client_mac": "90-72-40-59-D4-C5", | |
"description": "JCyK7Zwh0ON", | |
"device_name": "iPhone", | |
"firstseen": 1418856965, |
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
'use strict'; | |
var app = angular.module('ctLoginsApp.logins.services', ['ngResource']); | |
app.factory('Login', ['$resource', 'API_END_POINT', | |
function($resource, API_END_POINT){ | |
return $resource(API_END_POINT + '/logins', | |
{}, |
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
'use strict'; | |
var app = angular.module('ctLoginsApp.logins.directives', []); | |
app.directive('initialise', ['$routeParams', '$location', 'Login', function($routeParams, $location, Login) { | |
var link = function(scope,element,attrs) { | |
scope.loading = true; | |
var init = function(location_id, request_uri, apMac) { |
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
{ | |
"splash": { | |
"location_name": "Sh** got real", | |
"token": "87d12f7c-3d87-42ce-9ce5-45b0234c1555", | |
"announcement": null, | |
"logo_file_name": "https://d247kqobagyqjh.cloudfront.net/api/file/QPcfBDMQ4GIws26Bn63g", | |
"background_image_name": "", | |
"location_image_name": "", | |
"location_image_name_svg": null, | |
"header_image_name": null, |
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
var buildPage = function(data) { | |
var head = angular.element('head') | |
scope.custom_url = data.splash.custom_url; | |
scope.custom_css = data.splash.custom_css; | |
head.append($compile("<link ng-href='{{custom_url}}' rel='stylesheet' />")(scope)); | |
}; |
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
'use strict'; | |
var app = angular.module('ctLoginsApp.logins.controller', []); | |
app.controller('LoginsController', ['$rootScope', '$scope', '$routeParams', 'Login', | |
function($rootScope, $scope, $routeParams, Login) { | |
$scope.loading = true; | |
var init = function(request_uri, apMac) { |