device.modeOfTransport.on('changed', function(signal) { if (signal.previous === 'driving' && signal.current !== 'driving') { device.notifications.createNotification(car is parked here: ('
+ signal.location.latitude + ', ' + signal.location.longitude + ')' ).show(); } });
JavaScript may not be the best way to talk to your minions. Wolfram Alpha’s natural language seems more appropriate. But now I shall never need to look for my car again. It is likely someone has already written the JavaSript code for you to tell your minion what you need.
No comments:
Post a Comment