Parse Date / Time from Notification

67 views
Skip to first unread message

Matt

unread,
Apr 7, 2025, 6:37:46 AM4/7/25
to Tasker
Hi All,

I'm using the following task to flash some information pulled from a notification via Auto Notification.

Does anyone know how to get around needing the offset of the hour? (I'm in the UK so currently on BST - 1 hour ahead of GMT). The below works but when we go back to GMT the offset won't be needed.

I have seen some posts about Android settings but I've checked those (all set to automatic).

    Task: Glucose Flash
    
    A1: AutoNotification Query [
         Configuration: Notification Apps: xDrip+
         Timeout (Seconds): 20
         Structure Output (JSON, etc): On ]
    
    A2: Parse/Format DateTime [
         Input Type: Milliseconds Since Epoch UTC
         Input: %anwhentime()
         Output Format: HH:mm
         Formatted Variable Names: glucose time
         Output Offset Type: Hours
         Output Offset: 1 ]
    
    A3: Flash [
         Text: %antitle %antext %glucose_time
         Continue Task Immediately: On
         Dismiss On Click: On ]

Rich D

unread,
Apr 7, 2025, 12:16:30 PM4/7/25
to Tasker Google Groups Post
Input Type: Milliseconds Since Epoch UTC
       

I do not believe there's any reason for you to use the UTC version of the milliseconds since epoch.  There is another option for the input type that is just..

Milliseconds Since Epoch . 

Try using that in the format ,date, time action





Matt Vernon

unread,
Apr 7, 2025, 2:24:54 PM4/7/25
to tas...@googlegroups.com

Ha, yes that's sorted it. Can't bieve I never noticed that.

Thanks!


--
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/rqPIH9GF5YM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tasker/CADuUTApniWRLtbfxVkCcyWaDEyjODX4ss-gkMY%3DAe8u%3D_2q8Jw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages