Tasker, autowear - check watch battery doesn't work for me - Tasker Tips & Tricks

Hello,
can anybody check this please? Something is wrong because task doesn't work for me.
I want to check my watch battery between 6.00 - 22.00 only if watch has battery below 60%.
Thank you so much.
Code:
Profile: Watch Battery
Time: Every 5m
Enter Task: Watch Battery
A1: Variable Set [
Name: %Watchbattery
To: %awmessage
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]
A2: If [ %Watchbattery < 60 & %TIME > 06.00 & %TIME < 22.00 ]
A3: AutoWear App [
Configuration: Execute Now: true
Trigger Event: true
Name: App
Command: <battery>
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A4: Wait [
MS: 250
Seconds: 0
Minutes: 0
Hours: 0
Days: 0 ]
A5: Notify [
Title: Watch Battery
Text: Watch Battery is %Watchbattery%
Icon: mw_hardware_watch
Number: 0
Priority: 3
LED Colour: Red
LED Rate: 0 Actions:(1) ]
A6: End If

Related

On/off sixaxis controller app

This profile starts and stop sixaxis controller app
When sixaxis is off it will start it
When is on it disable it in just one click
Required su and busybox
Can be combined with autonotification app
Sixaxis (2)
A1: Run Shell [ Command:su
ps | grep com.dancingpixelstudios.sixaxiscontroller | awk '{print $9}' Timeout (Seconds):20 Use Rootff Store Output In:%sixaxischeck Store Errors In: Store Result In: Continue Task After Errorn ]
A2: If [ %sixaxischeck Set | %sixaxischeck ~ com.dancingpixelstudios.sixaxiscontroller ]
A3: Run Shell [ Command:su
am stopservice com.dancingpixelstudios.sixaxiscontroller/.SixaxisService Timeout (Seconds):0 Use Rootff Store Output In: Store Errors In: Store Result In: ]
A4: AutoNotification Tiles [ Configuration:Tile: 2
Command: sixaxis
Label: DualShock3
Icon: android.resource://net.dinglisch.android.taskerm/hl_hardware_gamepad
State: 1 Timeout (Seconds):20 Continue Task After Errorn ]
A5: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A6: Run Shell [ Command:su
am force-stop com.dancingpixelstudios.sixaxiscontroller Timeout (Seconds):0 Use Rootff Store Output In: Store Errors In: Store Result In: ]
A7: Variable Clear [ Name:%sixaxischeck Pattern Matchingff ]
A8: Else
A9: [X] Run Shell [ Command:su
am startservice com.dancingpixelstudios.sixaxiscontroller/.SixaxisService
fi Timeout (Seconds):0 Use Rootff Store Output In: Store Errors In: Store Result In: ]
A10: Send Intent [ Action: Cat:None Mime Type: Data: Extra: Extra: Extra: Package:com.dancingpixelstudios.sixaxiscontroller Class:com.dancingpixelstudios.sixaxiscontroller.SixaxisService Target:Service ]
A11: Variable Clear [ Name:%sixaxischeck Pattern Matchingff ]
A12: AutoNotification Tiles [ Configuration:Tile: 2
Command: sixaxis
Label: DualShock3
Icon: android.resource://net.dinglisch.android.taskerm/hd_hardware_gamepad
State: 2 Timeout (Seconds):20 Continue Task After Errorn ]
A13: End If
A14: Stop [ With Errorff Task:Sixaxis ]

Goto loop minimizing navigation

I've setup a task that pulls values from a torque CSV and sends them to KWGT so that they can be displayed on the homescreen. The info needs to be live so I used a goto loop to pull updated info from the CSV every second. That part works well and the task starts and stops as desired.
The problem is that when the loop is running, I cannot get navigation to stay full screen. Maps works fine but as soon as I navigate, navigation is minimized to the small overlay box. Tapping the box to full screen only lasts the loop length before being minimized again. I've added wait time and can confirm that the issue is in sync with the loop length.
Other noticings:
- Torque screen flashes with every loop but stays connected and successfully logs to the log CSV
- The is an alarm icon that flickers in the notification bar with every loop.
Appreciate your thoughts and suggestions!
Code:
OBD Loop (19)
A1: Variable Set [ Name:%Odohold To:%Odometer Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff Max Rounding Digits:3 ] If [ %OBDLOG2 < %CELMiles ]
A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A3: Perform Task [ Name:Get OBD Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
A4: Variable Set [ Name:%Odometer To:%Odohold+%OBDLOG2 Recurse Variables:eek:ff Do Maths:eek:n Append:eek:ff Max Rounding Digits:10 ]
A5: Perform Task [ Name:KWGT Update Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
A6: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A7: Stop [ With Error:eek:ff Task: ] If [ %OBD ~ dis ]
A8: Goto [ Type:Action Number Number:3 Label: ] If [ %OBD ~ con ]
Get OBD (18)
A1: Run Shell [ Command:/system/xbin/tail -1 /storage/emulated/0/torqueLogs/trackLog.csv Timeout (Seconds):0 Use Root:eek:n Store Output In:%OBDLOG Store Errors In: Store Result In: ]
A2: Variable Split [ Name:%OBDLOG Splitter:, Delete Base:eek:ff ]
A3: Variable Set [ Name:%CELMiles To:%OBDLOG2 Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff Max Rounding Digits:3 ]

My variable profile isn't active but it is when I add it to a task?

I've been using Tasker for awhile but I'm not too tech savvy so I thought I had this right but it isn't working. I basically want the sound on my phone to mute when I turn off my earbuds in certain situations. 1 of the situations I want it to turn off is when I am at home, during the week, after 6pm. I made a variable with those 3 in it called Weekdays. So I set the exit variable task If the weekday variable is set to mute my phone. When I look at the actual variable profile right now it is red, which it should be because it is not past 6pm. But when I put the variable in the task it is showing green as if it is active. Am I doing something wrong?
Here is the Weekday variable I set up 1st.
Profile: Weekdays (102)
Restore: no
Day: Mon, Tue, Wed, Thu or Fri
Time: From 6:00PM Till 6:30AM
State: Variable Value [ %ParadiseTrail Set ]
Enter: Weekdays After 6 (101)
A1: Variable Set [ Name:%Weekdays To:1 Recurse Variablesff Do Mathsff Appendff Max Rounding Digits:3 ]
Exit: Anon (106)
A1: Variable Clear [ Name:%Weekdays Pattern Matchingff Local Variables Onlyff Clear All Variablesff ]
This is the earbud profile.
Profile: Sound On With (47)
State: BT Connected [ Name:MDR-XB950BT/TOZO-NC9 Address:10:4F:A8:63:47:41/54:B7:E5:62:07:65 ]
Enter: Sound On (67)
A1: If [ %VOLN = 0 ]
A2: Sound Mode [ Mode:Sound ]
A3: Notification Volume [ Level:7 Displayff Soundff ]
A4: Ringer Volume [ Level:7 Displayff Soundff ]
Exit: Sound Off After 6pm (99)
A1: If [ %Weekdays Set ]
A2: Sound Mode [ Mode:Mute ]
A3: Else If [ %ParadiseTrail Set & %DAYW eq Saturday | %DAYW eq Sunday ]
A4: Sound Mode [ Mode:Mute ]

YouTube Vanced AutoPlay after being disconnected (not paused) from car bluetooth

Hello,
I came across XDA in my various searches for Tasker and media related inquiries. I posted this originally on Reddit and got some replies and made some things happen but it seems I've hit a dead end. What I would like to do is have my YouTube Vanced auto restart playback when I am reconnected to my car. Depending on the sequence of things, at times, the application can be paused (with the play button visible in the mini-player) and other times it has a pause button displayed in the mini player and won't initiate playback after turning back on the car.
I've been able to follow this description left by a user on Reddit - which has allowed me to playback any "APM Policy Manager start and stop output". It works with the toast notification but alas if my car is turned off and I see the pause button and not the play button, it won't continue playback on connection. My car seems to send a disconnect message and therefore I see the pause button - my headphones seem to send a pause and therefore I see a play button on the mini-player if they are ever disconnected.
Initially we are acting on logcat messages - perhaps I thought about deciphering the difference between my car disconnect message and the headphone disconnect message but I am not sure. Here is the code to make this happen - anyone try the same thing?
XML:
Profile: LP-MEDIA-DETECT
Settings: Enforce: no Notification: no
Event: Logcat Entry [ Output Variables:* Component:APM_AudioPolicyManager Filter:startOutput() Grep Filter (Check Help):Off ]
Enter Task: media-DETECT
Settings: Run Both Together
A1: [X] Multiple Variables Set [
Names: %lp_media_apps
Variable Names Splitter: #
Values: youtube|maxmpz|newpipe|bbc.sound|kodi|mx|
Values Splitter: #
Max Rounding Digits: 3 ]
A2: Run Shell [
Command: dumpsys media_session
Timeout (Seconds): 0
Store Output In: %data
Use Global Namespace: On ]
A3: Variable Search Replace [
Variable: %data
Search: (?<=packages=).*?(?=\s)
Store Matches In Array: %app ]
A4: Stop [ ]
If [ %app1 !~R %lp_media_apps ]
A5: Variable Set [
Name: %LP_STATE
To: 1
Max Rounding Digits: 3 ]
A6: Variable Search Replace [
Variable: %app1
Search: .unlock
Replace Matches: On
Continue Task After Error:On ]
If [ %app1 ~R maxmpz ]
A7: Variable Set [
Name: %lp_media_app
To: %app1
Max Rounding Digits: 3 ]
If [ %app1 !~ (?i)%lp_media_app & %app1 ~R (?i)%lp_media_apps ]
A8: Flash [
Text: %app1
Tasker Layout: On
Background Colour: #FF000000 ]
EXIT
[MEDIA STOP] PROFILE it's the same profile name and other filter
Profile: LP-MEDIA-DETECT
Settings: Notification: no
Event: Logcat Entry [ Output Variables:* Component:APM_AudioPolicyManager Filter:stopOutput() Grep Filter (Check Help):Off ]
Enter Task: media-EXIT
Settings: Run Both Together
A1: Run Shell [
Command: dumpsys media_session
Timeout (Seconds): 0
Store Output In: %data
Use Global Namespace: On ]
A2: Variable Search Replace [
Variable: %data
Search: (?<=packages=).*?(?=\s)
Store Matches In Array: %app ]
A3: Stop [ ]
If [ %app1 !~R %lp_media_apps ]
A4: Variable Clear [
Name: %LP_STATE ]
A5: Stop [ ]
A6: [X] Flash [
Text: %app1
Continue Task Immediately: On
Dismiss On Click: On ]
Here is the Reddit link as well: YouTube Vanced - AutoPlay
I have had some success with making a task with Play (simulated) on %app1 etc... but %app1 can change to the display or .... LED cover if the screen is just opened on my phone... etc. I've even tried Open App, %app1, or YouTube Vanced... simulate play or toggle paused... no avail.
Can you intercept the bluetooth disconnect message in a logcat and block it? Or change it to something? Is Tasker the right tool for all automation ideas? I have tried MacroDroid, Automate... they seem more userfriendly but then I found myself left underwhelmed - perhaps my lack of experience and knowledge is the only factor.
Cheers,
Erik

Tasker + Autowear error

Hello!
Can someone help me figure out this error, please?
The error appears only when the task runs automatically. If I run it manually everything work without any errors.
Profile: Ticwatch Essential Mode
State: WiFi Connected [ Name:HomeNet]
State: BT Connected [ Name:TicWatch Pro 3 1210 Address:* ]
Enter Task: Ticwatch On Essential Mode
A1: Wait [
MS: 0
Seconds: 10
Minutes: 0
Hours: 0
Days: 0 ]
A2: AutoWear Input [
Configuration: Command: turnOn()
Action Timeout: 5
Run Now: true
Name: InputCommand
Timeout (Seconds): 20 ]
A3: Wait [
MS: 0
Seconds: 4
Minutes: 0
Hours: 0
Days: 0 ]
A4: AutoWear App [
Configuration: Execute Now: true
Trigger Event: true
Haptic Feedback: true
Name: App
Launch System App: Ticwatch Essential Mode
Timeout (Seconds): 60
Continue Task After Error:On ]
A5: Wait [
MS: 0
Seconds: 10
Minutes: 0
Hours: 0
Days: 0 ]
A6: Notify [
Title: Ticwatch
Text: Essential Mode is on
Icon: mw_hardware_watch
Number: 0
Priority: 1
LED Colour: Blue
LED Rate: 0
Category: super_tasker_notifications_created_by_me_the_developer ]

Categories

Resources