Code Monkey home page Code Monkey logo

pebble-remote-for-automate's Introduction

pebble-remote-for-automate

Simple list to trigger Llamalab's Automate flows from watch

Pebble watchapp: https://apps.rebble.io/en_US/application/5afda2da461a8d6af4000d7b

Setup:

  1. Download Llamalab's Automate Android app from the Play Store. It's similar to Tasker.
  2. Download the ff. Automate flows:
  • โŒš Pebble: Flow list generator = this flow reads all the available flows in your Automate app, and sends them to the Pebble watchapp.
    • by default, it only broadcasts flows with "pbv=1" in the description description
  • โŒš Pebble: Trigger flows = this flow listens for a button click from the Pebble watchapp, then starts the corresponding flow given the clicked flow ID.
  1. Download some sample flows:
  • Simple toggle - Turn on Flashlight = on click from Pebble watchapp, turn on phone's flashlight for 5 seconds.
  • Flow with choices - Select bus route and notify of arrival time = a sample flow with 2 bus route choices, 12A and 42. The flow description contains the comma-separated values as payload to be sent to the triggered flow. So if you choose KMB bus ETA > Options > 12A from the watch app, it will send 12A to the flow as payload. Currently, the flow will just print out from a dummy array web since the web services are no longer valid. So just replace the web request blocks with your own APIs. Specifying "is_mandatory_payload":0 will allow you to start the flow without any payloads.
payload="{\"choice_count\":2,\"choice_labels\":\"12A,42\",\"choice_payloads\":\"12A,42\",\"is_mandatory_payload\":1}"
  • Flow with choices and voice input (requires Pebble 2 HR) - Speak to watch & the phone talks back = a sample triggering flow which allows user to talk to the Pebble and pass the spoken speech as payload to the flow. This example will simply wait for a spoken "Boy", then trigger the phone to speak back I am steven muhaha which is option A. Specifying "is_textual_payload":1 will show a Voice option in the watch app.
payload="{\"choice_count\":3,\"choice_labels\":\"Boy,Girl,Luke\",\"choice_payloads\":\"A,B,C\",\"is_mandatory_payload\":1,\"is_textual_payload\":1}"
  1. After downloading the app and the flows, start the listing flow and the triggering flow. The listing flow will report to the pebble app the list of available flows that can be triggered. The triggering flow waits for button clicks from the pebble app. So both of the flows have to be kept running all the time. In the pebble watch app, on tap of the options, the triggering flow will reroute to the actual flow to be executed.

Notes/disclaimer:

  1. The free Automate app has a limit of 30 running blocks. So you need to adjust the flow if the setup doesn't work. I'm currently a premium Automate user which removes the limit.
  2. I only tested the Dictation functionality using the original Pebble services, but I have not tested the Dictation services in Rebble, so the watch app might fail when using voice.

pebble-remote-for-automate's People

Contributors

greenlover1991 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fazen

pebble-remote-for-automate's Issues

Need Help plz

I came here from the Pebble/Rebble Appstore, I don't have an email app on my phone so can't contact you thru their Store. My issue is that I cannot figure out how to use your app, it shows many Steves on my watch and abcd options but nothing works. Appstore description mentions needed flows or files of some sort but I can't find them anywhere. My phone is a Galaxy S4 running an AOSP-based version of Android 5.0.2, rooted.Thanks for your time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.