From 7d8e77871f487cfc22dc05f5abf2677ab193fce2 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Sun, 12 Aug 2018 18:30:30 -0600 Subject: [PATCH] Bugfix. Default status is not_home, previously assumed to be away. --- www/where/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/where/index.php b/www/where/index.php index 0b3e25e..bd84faf 100644 --- a/www/where/index.php +++ b/www/where/index.php @@ -61,7 +61,7 @@ function updateLocation() { $.getJSON('?data', function(data) { - $('h1').html((data.state == 'away') ? 'Nobody Knows' : 'At ' + data.state.replace(/^\w/, c => c.toUpperCase())); + $('h1').html((data.state == 'not_home') ? 'Nobody Knows' : 'At ' + data.state.replace(/^\w/, c => c.toUpperCase())); var locLive = new google.maps.LatLng(data.attributes.latitude, data.attributes.longitude); map.setCenter(locLive); })