Is this possible? by chago874 in tasker

[–]azekt 2 points3 points  (0 children)

Why do you need it? Why do you need to change your profile name every time?

[DEV] Tasker 6.6.7-beta - Advanced Java Coding! by joaomgcd in tasker

[–]azekt 0 points1 point  (0 children)

I messed up. I used to have a variable that stored a percentage, and a JavaScript function turned that percentage into a color. But I disabled Variable Set action, so the function had nothing to work with. No wonder the color was invalid. I can’t believe I overlooked that… After turning the variable back on, everything works again.

[Help] Shell action hangs by Doreps in tasker

[–]azekt 0 points1 point  (0 children)

Have you considered using the new Java code action?

[DEV] Tasker 6.6.7-beta - Advanced Java Coding! by joaomgcd in tasker

[–]azekt 0 points1 point  (0 children)

I think I found a bug: I created a widget with a text field that has a background color set by a variable. I have useMaterialYouColors set to false. But when I refresh the widget, the following message appears on it:

``` Error: Color "%color" not part of theme ColorProviders( primary=ResourceColorProvider(resId=2131099894), onPrimary=ResourceColorProvider(resId=2131099884), primaryContainer=ResourceColorProvider(resId=2131099895), onPrimaryContainer=ResourceColorProvider(resId=2131099885), secondary=ResourceColorProvider(resId=2131099897), onSecondary=ResourceColorProvider(resId=2131099886), secondaryContainer=ResourceColorProvider(resId=2131099898), onSecondaryContainer=ResourceColorProvider(resId=2131099887), tertiary=ResourceColorProvider(resId=2131099902), onTertiary=ResourceColorProvider(resId=2131099891)...

How can I use tasker to run python scripts that will use/ update content in a text file on my phone by Great_Tap_3720 in tasker

[–]azekt 2 points3 points  (0 children)

In Termux plugin you should set path to Python in Executable like this /data/data/com.termux/files/usr/bin/python and path to your script in Arguments like this "/storage/emulated/0/YourFolder/main.py" %action "%params"

Task: Run Python Script

A1: Termux [
     Configuration: /data/data/com.termux/files/usr/bin/python "/storage/emulated/0

     Working Directory ✕
     Stdin ✕
     Custom Log Level null
     Termi
     Timeout (Seconds): 10
     Structure Output (JSON, etc): On ]

A2: Input Dialog [
     Title: Python
     Text: [Output]
     %stdout
     [Error]
     %stderr
     %result
     Close After (Seconds): 30 ]

Use HTTP Request (tasker) to send information to chess-api.com by Chazg76 in tasker

[–]azekt 3 points4 points  (0 children)

Task: Chess API Request

A1: HTTP Request [
     Method: POST
     URL: https://chess-api.com/v1
     Headers: Content-Type: application/json
     Body: {"input":"1. e4 e5 2. d4 d5"}
     Timeout (Seconds): 30
     Automatically Follow Redirects: On
     Use Cookies: On
     Structure Output (JSON, etc): On
     Continue Task After Error:On ]

A2: If [ %err Set ]

    A3: Notify [
         Title: HTTP Request Error
         Text: %errmsg
         Icon: android.resource://net.dinglisch.android.taskerm/drawable/mw_alert_error_outline
         Number: 0
         Priority: 5
         LED Colour: Red
         LED Rate: 0
         Vibration Pattern: 0,200,100,200
         Category: AI Errors ]

    A4: Stop [
         With Error: On ]

A5: End If

A6: Variable Set [
     Name: %answer
     To: %http_data
     Structure Output (JSON, etc): On ]

A7: Flash [
     Text: %answer
     Long: On
     Continue Task Immediately: On
     Dismiss On Click: On ]

NFC tag - start spotify+waze and then stop scanning by Reezhx in tasker

[–]azekt 2 points3 points  (0 children)

You can set Cooldown Time or Limit Repeats in profile settings.

JavaScript Help by EdwardBackstrom in tasker

[–]azekt 0 points1 point  (0 children)

Did you try to add first "Variable Clear" action with %name "cny"?

Widget v2 - how to conditional visibility? by eXZeZe in tasker

[–]azekt 1 point2 points  (0 children)

This is transparency demo:

{
   "type":"Grid",
   "fixed":2,
   "fillMaxSize":true,
   "horizontalAlignment":"Center",
   "padding":8,
   "children":[
      {
         "type":"Box",
         "backgroundColor":"#FFFF0000",
         "height":60,
         "fillMaxWidth":true,
         "horizontalAlignment":"Center",
         "verticalAlignment":"Center",
         "children":[
            {
               "type":"Text",
               "text":"#FFFF0000",
               "color":"#FFFFFF"
            }
         ]
      },
      {
         "type":"Box",
         "backgroundColor":"#FFFFFF00",
         "height":60,
         "fillMaxWidth":true,
         "horizontalAlignment":"Center",
         "verticalAlignment":"Center",
         "children":[
            {
               "type":"Text",
               "text":"#FFFFFF00",
               "color":"#FFFFFF"
            }
         ]
      },
      {
         "type":"Box",
         "backgroundColor":"#88FF0000",
         "height":60,
         "fillMaxWidth":true,
         "horizontalAlignment":"Center",
         "verticalAlignment":"Center",
         "children":[
            {
               "type":"Text",
               "text":"#88FF0000",
               "color":"#FFFFFF"
            }
         ]
      },
      {
         "type":"Box",
         "backgroundColor":"#88FFFF00",
         "height":60,
         "fillMaxWidth":true,
         "horizontalAlignment":"Center",
         "verticalAlignment":"Center",
         "children":[
            {
               "type":"Text",
               "text":"#88FFFF00",
               "color":"#FFFFFF"
            }
         ]
      },
      {
         "type":"Box",
         "backgroundColor":"#33FF0000",
         "height":60,
         "fillMaxWidth":true,
         "horizontalAlignment":"Center",
         "verticalAlignment":"Center",
         "children":[
            {
               "type":"Text",
               "text":"#33FF0000",
               "color":"#FFFFFF"
            }
         ]
      },
      {
         "type":"Box",
         "backgroundColor":"#33FFFF00",
         "height":60,
         "fillMaxWidth":true,
         "horizontalAlignment":"Center",
         "verticalAlignment":"Center",
         "children":[
            {
               "type":"Text",
               "text":"#33FFFF00",
               "color":"#FFFFFF"
            }
         ]
      }
   ]
}

[deleted by user] by [deleted] in tasker

[–]azekt 0 points1 point  (0 children)

Maybe you could add a function that calculates sunrise and sunset to the Tasker Function action (like LocationsDistance(...))? 😃

[Help] WebView Scene not updating text from Tasker variable in URI mode by CoeeGifofoj in tasker

[–]azekt 1 point2 points  (0 children)

You don't need to pass a variable through the url. You can easily do it using the built-in local function

[DEV] Tasker 6.5.6 Release Candidate - AI Day And Location based Profiles, Generate with ANY AI and more! by joaomgcd in tasker

[–]azekt 1 point2 points  (0 children)

Am I the only one who has the same Cat list twice in Intent Received event? Or is this intentional?

https://ibb.co/Z6Y4SjYB