pebble glance

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

pebble glance

Post by rsegoly » 27 Apr 2015 08:31

This from pebble app called glance
Can it be used as trigger to flow?
To populate the face use the Intent uk.co.finebyte.pebbleglance.TASKERSEND with a String Extra in the format msg:ToGoOnLine1:Line2:Line3
When the face initialises it sends the Intent uk.co.finebyte.pebbleglance.TASKERINIT
When the face stops it sends the Intent uk.co.finebyte.pebbleglance.TASKERSTOP
When a button is pressed it sends the Intent uk.co.finebyte.pebbleglance.TASKERKEY with the Extra key sent to TASKERTOP, TASKERMID and TASKERBOT as you would expect
When a button is long pressed it sends the Intent uk.co.finebyte.pebbleglance.TASKERKEY with the Extra key sent to TASKERLTOP, TASKERLMID and TASKERLBOT as you would expect
Use uk.co.finebyte.pebbleglance.TASKERVIBE to make the pebble vibrate
Use

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: pebble glance

Post by Martin » 27 Apr 2015 18:53

Hi,

It sounds like uk.co.finebyte.pebbleglance.TASKERSEND etc. could be broadcast intents that are received by Pebble Glance.
You can send a broadcast from Automagic to Pebble Glance with action Send Broadcast. Set field Action to uk.co.finebyte.pebbleglance.TASKERSEND and field Extras to

Code: Select all

putString("msg", "ToGoOnLine1:Line2:Line3");
You should be able to receive the broadcast intents sent by Pebble Glance with a trigger General Broadcast and by setting field Action to one of the values like uk.co.finebyte.pebbleglance.TASKERINIT. This only works when the developers of Pebble Glance don't limit the target of the intent to Tasker but send the intent to all apps on the phone.
Reading the extra and assigning the value to a variable in Automagic could be done with following script in field Access Intent Extras:

Code: Select all

key = getString("key");
Regards,
Martin

Post Reply