public
Last active

  • Download Gist
tasker_recipe.md
Markdown
  1. Create a project named Say the time and navigate to it.
  2. Create a task Say the time:
    1. Action: Variable Split
      1. Name: %TIME
      2. Splitter: . (a dot)
    2. Action: Say
      1. Text: %TIME1 %TIME2
      2. Stream: Media
  3. Create a task [Say the time] Screen on:
    1. Action: Variable Set
      1. Name: %ScreenOnTime
      2. To: %TIMEMS
  4. Create a task [Say the time] Set time variables:
    1. Action: Variable Set
      1. Name: %TimePassed
      2. To: %ScreenOffTime-%ScreenOnTime
      3. If: %ScreenOffTime > %ScreenOnTime
    2. Action: Variable Set
      1. Name: %TimeThreshold
      2. To: 2000
    3. Action: Variable Set
      1. Name: %TimePassedCheck
      2. To: 1
      3. If: %TimePassed < %TimeThreshold
    4. Action: Variable Set
      1. Name: %TimePassedCheck
      2. To: 0
      3. If: %TimePassed > %TimeThreshold
  5. Create a task [Say the time] Screen off:
    1. Action: Variable Set
      1. Name: %ScreenOffTime
      2. To: %TIMEMS
    2. Action: Perform Task
      1. Name: [Say the time] Set time variables
    3. Action: Perform Task
      1. Name: Say the time
      2. If: %TimePassedCheck = 1
  6. Create a profile:
    1. State: Headset Plugged
    2. Event: Display On
    3. Enter task: [Say the time] Screen on
  7. Create a profile:
    1. State: Headset Plugged
    2. Event: Display Off
    3. Enter task: [Say the time] Screen off

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.