added motion detection

This commit is contained in:
Martin Donnelly 2018-11-04 13:42:38 +00:00
parent bb0d027bc6
commit 4d2e0e97e0
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
const CACHE_VERSION = { 'version': '0.0.973' };
const CACHE_VERSION = { 'version': '0.0.974' };
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
const RUNTIME = 'runtime';

View File

@ -122,7 +122,7 @@ const LocationModel = Backbone.Model.extend({
};
const updatelocationthrottled = _.throttle(updateLocation, 120000);
const updateMotionhrottled = _.throttle(updateLocation, 15000);
const updateMotionhrottled = _.throttle(updateMotion, 15000);
geolocation.on('change', function (position) {
console.log('Location update');