ask user for datetime input

108 views
Skip to first unread message

Marco

unread,
Dec 14, 2019, 9:57:19 AM12/14/19
to Tasker
Hello

I'm trying to create a task where that should be scheduled to start a specific datetime. The first step is asking when. There is a input dialog with type is datetime, but can I extend the text input with a popup to select a date using a calendar and/or a time instead of manual typing a specific the datetime?

Thanks
Marco

Robert Ryan

unread,
Dec 14, 2019, 11:46:45 AM12/14/19
to tas...@googlegroups.com
The AutoTools plug-in has date and time dialogs. See attached screenshots. 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/0d6a4dfc-a0ca-4005-b09d-ce6645b2605d%40googlegroups.com.

Screenshot_20191214-094428_AutoTools.jpg
Screenshot_20191214-094417_AutoTools.jpg

Marco Dissel

unread,
Dec 14, 2019, 3:31:28 PM12/14/19
to tas...@googlegroups.com
Ah Nice! Any documentation how to setup a task to start at the entered date and time?

Thanks


Op za 14 dec. 2019 17:46 schreef Robert Ryan <rbr...@gmail.com>:
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/1mWmUIK_akY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/16f054d9098.2819.558997d9ea49a12c5d90790601ab7599%40gmail.com.

Robert Ryan

unread,
Dec 14, 2019, 11:23:57 PM12/14/19
to tas...@googlegroups.com
You can split the result of the dialogs into two global variables:

        Get Date Time
        
     <Note the format used>
    A1: AutoTools Dialog 
        Dialog Type: Date And Time
        Pick Date: true
        Pick Time: true
        Format: MM-dd-yy HH:mm
        Date Format Separator: , 
        Timeout (Seconds): 60 
        
    A2: Variable Split 
        Name: %atdatetime1 
        Delete Base: Off 
        
    A3: Variable Set 
        Name: %Date 
        To: %atdatetime1(1) 
        Recurse Variables: Off 
        Do Maths: Off 
        Append: Off 
        Max Rounding Digits: 3 
        
    A4: Variable Set 
        Name: %Time 
        To: %atdatetime1(2) 
        Recurse Variables: Off 
        Do Maths: Off 
        Append: Off 
        Max Rounding Digits: 3 
        
    A5: Flash 
        Text: %Date
        %Time Long:On 

You are also going to need a third global that contains the current date. Note that the built-in %DATE can not be used in Variable Value state. 

    Profile: Set Date
        
        Restore: no
        
        Time: 12:00AM
        
    Enter: 
    A1: Variable Set 
        Name: %Today 
        To: %DATE 
        Recurse Variables: Off 
        Do Maths: Off 
        Append: Off 
        Max Rounding Digits: 3 

Now you can use these variables as your profile conditions. 

    Profile: Check Date Time
        
        Restore: no
        
        Time: From %Time Till %Time
        
        State: Variable Value  
        %Date eq %Today
        
    Enter: 
        <Put your task here>
    A1: Anchor 

Mahammad Rafi

unread,
Dec 15, 2019, 1:11:45 AM12/15/19
to Tasker
Hi Robert Ryan
Please upload xml.

Thanks from record4

Robert Ryan

unread,
Dec 15, 2019, 1:56:18 AM12/15/19
to tas...@googlegroups.com
https://taskernet.com/shares/?user=AS35m8kEqSNyoiYOogz8IcM5EXJi1BnhOZgjaT2dZtNentuq8I6Mgtgr7WVfdjmNolY%3D&id=Project%3ADate+Time
> --
> You received this message because you are subscribed to the Google Groups
> "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tasker+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tasker/2a68df07-a447-416f-9ef0-94299b9c2b3c%40googlegroups.com.


Message has been deleted

Dale Smith

unread,
Dec 16, 2019, 11:10:12 AM12/16/19
to Tasker
You might want to remove the references to your penis before sharing your profiles.
Reply all
Reply to author
Forward
0 new messages