r/TaskerFiles • • Jun 05 '14

Task [Task] Trigger action only if x amount of time has passed since last time triggered.

4 Upvotes

Description

[Task] Trigger action only if x amount of time has passed since last time triggered.

Usage

I have a Car Scene that shows the current weather. Every time I show the scene, I use this task through a [perform task] action to only re-fetch the weather if 30 minutes has passed since the last time I fetched it. If you have the need, you can use it for other things. I couldn't think of a good way to describe its function. Hopefully this helps someone.

Instructions

Follow instructions in sidebar "How to Import your Tasker XMS file".

When imported, then replace the number in the 4th action with the amount of time (in seconds) you want the task to lapse between triggered effect. Then place whatever action you want triggered inside the IF statement. You can also delete or disable the Flash actions. Flash actions are there to show what is happening, and how much time (in seconds) has passed between triggered effect.

Timed Repeat [Task] Copy XML data below into a file, and import into Tasker (check Sidebar for instructions).


<TaskerData sr="" dvi="1" tv="4.3u4m">
    <Task sr="task865">
    <cdate>1401922422756</cdate>
    <edate>1401982682281</edate>
    <id>865</id>
    <nme>Timed repeat</nme>
    <pri>10</pri>
    <Action sr="act0" ve="5">
        <code>547</code>
        <Str sr="arg0" ve="3">%currenttime</Str>
        <Str sr="arg1" ve="3">%TIMES</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <ConditionList sr="if">
            <Condition sr="c0" ve="2">
                <lhs>%Lasttimerun</lhs>
                <op>8</op>
                <rhs></rhs>
            </Condition>
        </ConditionList>
    </Action>
    <Action sr="act1" ve="5">
        <code>890</code>
        <Str sr="arg0" ve="3">%currenttime</Str>
        <Int sr="arg1">
        <var>%Lasttimerun</var>
        </Int>
        <ConditionList sr="if">
            <Condition sr="c0" ve="2">
                <lhs>%Lasttimerun</lhs>
                <op>8</op>
                <rhs></rhs>
            </Condition>
        </ConditionList>
    </Action>
    <Action sr="act2" ve="5">
        <code>548</code>
        <Str sr="arg0" ve="3">%currenttime</Str>
        <Int sr="arg1" val="0"/>
    </Action>
        <Action sr="act3" ve="5">
        <code>37</code>
        <label>Change # to amount of time desired in seconds</label>
        <ConditionList sr="if">
            <Condition sr="c0" ve="2">
                <lhs>%currenttime</lhs>
                <op>3</op>
                <rhs>60</rhs>
            </Condition>
        </ConditionList>
    </Action>
    <Action sr="act4" ve="5">
        <code>547</code>
        <label>Add your action(s) above or below this action.</label>
        <Str sr="arg0" ve="3">%Lasttimerun</Str>
        <Str sr="arg1" ve="3">%TIMES</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
    </Action>
    <Action sr="act5" ve="5">
        <code>548</code>
        <Str sr="arg0" ve="3">Action Triggered Time Reset</Str>
        <Int sr="arg1" val="0"/>
    </Action>
    <Action sr="act6" ve="5">
        <code>38</code>
    </Action>
    <Action sr="act7" ve="5">
        <code>547</code>
        <Str sr="arg0" ve="3">%Lasttimerun</Str>
        <Str sr="arg1" ve="3">%TIMES</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <ConditionList sr="if">
            <Condition sr="c0" ve="2">
                <lhs>%currenttime</lhs>
                <op>9</op>
                <rhs></rhs>
            </Condition>
        </ConditionList>
    </Action>
        <Action sr="act8" ve="5">
        <code>548</code>
        <Str sr="arg0" ve="3">Initial Run</Str>
        <Int sr="arg1" val="0"/>
        <ConditionList sr="if">
            <Condition sr="c0" ve="2">
                <lhs>%currenttime</lhs>
                <op>9</op>
                <rhs></rhs>
            </Condition>
        </ConditionList>
    </Action>
    </Task>
</TaskerData>


r/TaskerFiles • • Feb 06 '22

Sort_Task - sort files in directory by extension

3 Upvotes

Do you have pictures,texts and movies in one folder? This simple project will sort them out!

It sorts files depending on their extension and saves every estension is separate folder.

Just select folder to be sorted!

TaskerNet link - Sort_Task


r/TaskerFiles • • Dec 14 '18

Profile [Project Share] Automatic night mode and dark/light Gboard theme for Android 9 (root required)

Thumbnail self.tasker
3 Upvotes

r/TaskerFiles • • Jun 07 '18

Folder and sub folder modify files

3 Upvotes

Hi

We can use File Modified event in tasker to find if a file is modified in a folder

Is it possible that it can check in the folder/subfolders if the file is modified

Thanks  Regards  Viki


r/TaskerFiles • • Feb 21 '14

Task [TASK] Kill Process

3 Upvotes

Description

This is a really simple task, which can be used to terminate certain apps. Some apps probably require root, but I use it to terminate the Glympse process once I arrive at my house, on a non-rooted phone

Usage

To use this task, just call it from another task/profile. Example: to terminate the Glympse process, execute the 'Perform Task' from the Task 'Action Category', and enter com.glympse.android.glympse in the Parameter 1 (%par1) text box.

Instructions

Copy XML data below into a file, and import into Tasker (check Sidebar for instructions).


<TaskerData sr="" dvi="1" tv="4.2u3m">
	<Task sr="task2">
		<cdate>1379291791963</cdate>
		<edate>1392942807123</edate>
		<id>2</id>
		<nme>Kill Process</nme>
		<Action sr="act0" ve="3">
			<code>123</code>
			<Str sr="arg0" ve="3">am force-stop %par1</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="0"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
	</Task>
</TaskerData>


r/TaskerFiles • • Sep 14 '19

Other Profiles

2 Upvotes

Hello there, whilst there are a number of helpful files here, is there anywhere else with more? I keep seeing reference to taskernet but would have expected there to be a central hub to access people's shares.


r/TaskerFiles • • Feb 12 '19

TEST using Read File and For Loop to display App Info

2 Upvotes

r/TaskerFiles • • Nov 01 '18

Force stop PKMN GO when closed using autoinput & autoshare.

2 Upvotes

this lower the sound, stop screen rotation, and increase screen time when PKMN GO is open, and return everything back to normal when PKMN is closed, also "force stop" PKMN using autoinput & autoshare. still some bugs if anyone could tweak it or make it better it would be appreciated, I'm using a non-rooted note 9


r/TaskerFiles • • Oct 10 '17

Other Does Tasker work on Android Wear watches?

2 Upvotes

I don't see how to install Tasker or if I can set Tasker on my phone to run on the watch


r/TaskerFiles • • May 18 '16

Help with xiaomi yeelight

2 Upvotes

Hi! I want to turn on/off my xiaomi yeelight with tasker but I don't know how to do it. Can someone help me??


r/TaskerFiles • • Mar 24 '16

Stopping internet media stream in background

Thumbnail
imgur.com
2 Upvotes

r/TaskerFiles • • Aug 12 '21

Turn on wifi

1 Upvotes

I have an android head unit that I want to turn on wifi when it connects to my iPhones Bluetooth


r/TaskerFiles • • Feb 02 '18

Did anybody rebuild the LineageOS system profiles in tasker?

1 Upvotes

I will have to move away from lineage-based roms for some time so I was hoping anybody has built something like that in tasker and can share the profile?

Thanks!