simple cal task for 2020

253 views
Skip to first unread message

Logan Fury

unread,
Jan 27, 2020, 11:53:57 AM1/27/20
to Tasker
Hello All,

Ive spent the last 3 days hunting all over here, reddit and google. I cannot find a non-root, working simple calendar task.

All I want is to read my google calendar and tell me if anything is scheduled that day or not.

Is this possible in 2020 without root please?

Thank you,

Logan

Matevz Leskovsek

unread,
Jan 27, 2020, 3:34:48 PM1/27/20
to tas...@googlegroups.com
I am using a plugin, but I think calendar module does same by itself,
my task: https://photos.app.goo.gl/VSnDaW2UbRLUB9cJ8
> --
> 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/923359dc-a04e-4d2d-8ce9-3df2f2b619c1%40googlegroups.com.

Rich B

unread,
Jan 27, 2020, 4:20:49 PM1/27/20
to Tasker
Root is not needed to read calendar events. I just did a simple Google search and located several possibilities for you: Tasker Reading Calendar Events. I can't look at these to see which might work best because I'm at work and Reddit and other sites are blocked. This should give you some good ideas, though. 

Steve L

unread,
Jan 27, 2020, 7:29:46 PM1/27/20
to Tasker
I did not write this, found it somewhere on the net. Every year, you have to go in and manually update the year. Other than that, I have never been rooted and it does a good job for me.

https://taskernet.com/shares/?user=AS35m8nZFc%2F%2FgsG3EBUQ4wtKG9K5LPUsCmXZiRIuqfP1KMXA6rqtauPyZ%2FXmRobMiLEE4i8%3D&id=Task%3AGet+Events

Logan Fury

unread,
Jan 27, 2020, 7:32:50 PM1/27/20
to tas...@googlegroups.com
Good Evening Matevz and Rich,

I apologize I finally collapsed around 8:30am and just woke up.

Matevz that looks interesting and I do have Marco's Calendar Task installed. Could you provide an XML to your Task please?

Good Evening Rich, thank you your search parameter found I hit I hadnt that looks promising, ill start todays research there.

Thank you both for your time gentlemen.

Logan

--
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/hEhlZoO5pX0/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/05b1533f-1e6a-4b97-b0ec-5d5a06c1f7ad%40googlegroups.com.

Logan Fury

unread,
Jan 27, 2020, 7:35:56 PM1/27/20
to tas...@googlegroups.com
Good Evening Steve,

I just woke up, amazing timing lol.

Im downloading from that URL now. I already am thinking what if the year were a variable, and a %TIMES were used to get the year and apply it to a variable, that could probably be automated. 

Ill get it installed, do my experiments with year, and repost here.

Thank you so much for the link :)

Logan

On Mon, Jan 27, 2020 at 4:30 PM Steve L <1840t...@gmail.com> wrote:
I did not write this, found it somewhere on the net.  Every year, you have to go in and manually update the year.  Other than that, I have never been rooted and it does a good job for me.

https://taskernet.com/shares/?user=AS35m8nZFc%2F%2FgsG3EBUQ4wtKG9K5LPUsCmXZiRIuqfP1KMXA6rqtauPyZ%2FXmRobMiLEE4i8%3D&id=Task%3AGet+Events

--
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/hEhlZoO5pX0/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/ab457563-6f5f-4241-b46c-14d01280bf73%40googlegroups.com.

Logan Fury

unread,
Jan 27, 2020, 7:43:53 PM1/27/20
to tas...@googlegroups.com
Well i've installed the taskernet Task, and I put test events on my calendar for later today, but running the task returns that I have nothing scheduled.

Is there something in here I have to customize to get to my particular google calendar?

Logan Fury

unread,
Jan 27, 2020, 8:13:06 PM1/27/20
to tas...@googlegroups.com
I've found an edit step I need help with please.

7. Task --> If. If %event(#) neq 0 AND %event1 !~ %doubleevent AND %calendar1 ~ *MYCALENDAR*. This will basically check to see if %event is empty or if it matches the previous event, which in either case means there is no new event at this time. Replace MYCALENDAR with the name of the calendar you want to pull from.

im unsure the proper syntax here. do I put *Google* or *Google Calendar* or something else?

Thank you,

Logan

James Monk

unread,
Jan 27, 2020, 9:17:58 PM1/27/20
to Tasker
I am having the same issue.  You have no events today.  Will keep following to see the answer.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Jan 27, 2020, 11:08:29 PM1/27/20
to tas...@googlegroups.com
Ive got it partially working with the input *Google*

now its correctly telling me theres 2 events on todays callendar, but the time variables seem broken, its reading variable names instead of data for times and it cuts off after reading the start time of the second event but before reading the end time.

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/798ad0f3-9d92-463d-97c7-2b1e21cb3bbe%40googlegroups.com.

Logan Fury

unread,
Jan 27, 2020, 11:12:50 PM1/27/20
to tas...@googlegroups.com
Here is my routine for assigning year to a variable. I see no reason this cant be inserted into the Cal task to eliminate requirement to manually edit every year.

 Get Year (649)
    A1: Variable Convert [ Name:%TIMES Function:Seconds to Medium Date Time Store Result In:%getyear ]
    A2: Variable Split [ Name:%getyear Splitter:, Delete Base:Off ]
    A3: Variable Split [ Name:%getyear2 Splitter: Delete Base:Off ]
    A4: Flash [ Text:%getyear22 Long:On ]  

Logan Fury

unread,
Jan 28, 2020, 12:07:15 AM1/28/20
to tas...@googlegroups.com
Here is what ive got atm. Its buggy, it cant read the events for some reason it keeps reading out the variable "%event"

Ive got it set to Google, im wondering if its possible to read the default windows 10 calendar? I tried replacing Google with Windows, Microsoft, and Intel but none of the three worked. Anyone know what command to use?

    Get Cal Events (158)
    A1: Variable Convert [ Name:%TIMES Function:Seconds to Medium Date Time Store Result In:%getyear Mode:Default ]

    A2: Variable Split [ Name:%getyear Splitter:, Delete Base:Off ]
    A3: Variable Split [ Name:%getyear2 Splitter: Delete Base:Off ]
    A4: Variable Convert [ Name:%DATE Function:Date Time to Seconds Store Result In:%date Mode:Default ]
    A5: Variable Set [ Name:%schedstart To:%date + (60*60*6) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    A6: Variable Set [ Name:%schedend To:%date + (60*60*24) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    <"TEST NEXT EVENT">
    A7: Test App [ Type:Calendar Title Data:%schedstart Store Result In:%event ]
    A8: Test App [ Type:Calendar Calendar Data:%schedstart Store Result In:%calendar ]
    A9: If [ %event(#) neq 0 & %event1 !~ %doubleevent & %calendar1 ~ *Google* ]
    A10: Variable Convert [ Name:%schedstart Function:Seconds to Long Date Time Store Result In:%time Mode:Default ]
    A11: Variable Split [ Name:%time Splitter:%getyear22 Delete Base:Off ]
    A12: Array Push [ Variable Array:%calevents Position:999 Value:%event, at %time 2 Fill Spaces:Off ]
    A13: Variable Set [ Name:%doubleevent To:%event1 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    A14: End If
    A15: Variable Add [ Name:%schedstart Value:900 Wrap Around:0 ]
    A16: Goto [ Type:Action Label Number:1 Label:"TEST NEXT EVENT" ] If [ %schedstart < %schedend ]
    A17: Say [ Text:You have no events today Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) eq 0 ]
    A18: Say [ Text:You have one event today Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) eq 1 ]
    A19: Say [ Text:You have %calevents(#) events today. Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) > 1 ]
    A20: For [ Variable:%eventtosay Items:%calevents(:) ]
    A21: Say [ Text:%eventtosay Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
    A22: End For

     

Logan Fury

unread,
Jan 28, 2020, 12:33:56 AM1/28/20
to tas...@googlegroups.com
I have 3 items on my calendar atm. test test 2 and test 3. Output of the Task is:

You have 1 event today %event at monday, january the 27th 2020 7:30pm to...

Can anyone figure out why %event isnt being populated with data? or why it stops abruptly at the time announcement?

The Task I believe is from 2016 or so, so some of this code is maybe obsolete?

Steve L

unread,
Jan 28, 2020, 2:05:20 AM1/28/20
to tas...@googlegroups.com
It would probably work better that way. I just haven't gotten around to it yet since it's only once a year for thirty seconds of work.

Matevz Leskovsek

unread,
Jan 28, 2020, 4:07:32 AM1/28/20
to tas...@googlegroups.com
if anyone needs this is my profile for reading events from calendars:  https://taskernet.com/shares/?user=AS35m8ndy8fZnlD8gKlkLMlEH4cYbBUG1NHNVy4CbGy6f961ZXWVjMMuaEvheck21ZvVRUhxM3mS8N8%3D&id=Task%3ABrief+Sch#

And about writing calendar events, I always just use default action "calendar insert": 
Both those activities work without fine root obviously.

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/CAB-Bj7ZYQwMYLUxP5LH424JOX8X9AjDO9cBzARy1zZCo9-bMjw%40mail.gmail.com.

Steve L

unread,
Jan 28, 2020, 4:28:15 AM1/28/20
to Tasker
Why does line 11 have %getyear22 when you only convert to %getyear and %getyear2. That's probably your sticking point.

Logan Fury

unread,
Jan 28, 2020, 4:34:04 AM1/28/20
to tas...@googlegroups.com
Hello Steve,

Action 3 splits %getyear2 by the space character, populating %getyear22 with the value of 2020. I've replaced the splitter of 2020 in action 11 with the variable that will change automatically to 2021 next year whenever the Task is run.

On Tue, Jan 28, 2020 at 1:28 AM Steve L <1840t...@gmail.com> wrote:
Why does line 11 have %getyear22 when you only convert to %getyear and %getyear2.  That's probably your sticking point.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Jimmy Jimmy

unread,
Jan 28, 2020, 4:55:10 AM1/28/20
to Tasker
Has this been resolved? I see a few taskernet links but not sure if they work. If not, I can work out an alternative.

Logan Fury

unread,
Jan 28, 2020, 5:07:01 AM1/28/20
to tas...@googlegroups.com
Good Morning Jimmy,

Nice to hear from you again! The situation is:

Matevz has posted a link to a perfectly working Task

Steve has posted the link to an older partially working Task, which I have edited a bit:

Get Cal Events (158)
    A1: Variable Convert [ Name:%TIMES Function:Seconds to Medium Date Time Store Result In:%getyear Mode:Default ]
    A2: Variable Split [ Name:%getyear Splitter:, Delete Base:Off ]
    A3: Variable Split [ Name:%getyear2 Splitter: Delete Base:Off ]
    A4: Variable Convert [ Name:%DATE Function:Date Time to Seconds Store Result In:%date Mode:Default ]
    A5: Variable Set [ Name:%schedstart To:%date + (60*60*6) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    A6: Variable Set [ Name:%schedend To:%date + (60*60*24) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
    <"TEST NEXT EVENT">
    A7: Test App [ Type:Calendar Title Data:%schedstart Store Result In:%event ]
    A8: Test App [ Type:Calendar Calendar Data:%schedstart Store Result In:%calendar ]
    A9: If [ %event(#) neq 0 & %event1 !~ %doubleevent & %calendar1 ~ *Google* ]
    A10: Variable Convert [ Name:%schedstart Function:Seconds to Long Date Time Store Result In:%time Mode:Default ]
    A11: Variable Split [ Name:%time Splitter:%getyear22 Delete Base:Off ]
    A12: Array Push [ Variable Array:%calevents Position:999 Value:%event, at %time 2 Fill Spaces:Off ]
    A13: Variable Set [ Name:%doubleevent To:%event1 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
    A14: End If
    A15: Variable Add [ Name:%schedstart Value:900 Wrap Around:0 ]
    A16: Goto [ Type:Action Label Number:1 Label:"TEST NEXT EVENT" ] If [ %schedstart < %schedend ]
    A17: Say [ Text:You have no events today Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) eq 0 ]
    A18: Say [ Text:You have one event today Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) eq 1 ]
    A19: Say [ Text:You have %calevents(#) events today. Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) > 1 ]
    A20: For [ Variable:%eventtosay Items:%calevents(:) ]
    A21: Say [ Text:%eventtosay Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
    A22: End For 

At this point in the thread, a few of us are hoping the above script will be fixed. the last time I ran it, I got the spoken return:

%event, at Tuesday, January 28, 2020 08:00AM 2

evidently %event variable isnt being populated with data, and %eventtosay isnt populating its full data correctly. Have you time to look into this please?

Thank you for joining the thread!

Logan 



On Tue, Jan 28, 2020 at 1:55 AM Jimmy Jimmy <jmjc...@gmail.com> wrote:
Has this been resolved? I see a few taskernet links but not sure if they work. If not, I can work out an alternative.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 28, 2020, 9:52:09 AM1/28/20
to tas...@googlegroups.com
I should have mentioned, Matevz' script only reads the next upcoming event and nothing after that.

The script above will list ALL cal events and is definitely worth resurrecting so the forum users have options. Id personally love to use the one that needs to be fixed!

Logan

João Dias

unread,
Jan 28, 2020, 11:23:16 AM1/28/20
to tas...@googlegroups.com
Hi! I've created a project that allows you to both get and insert events into Google Calendar.
I had to make a small change to Tasker to allow it to work, so get the needed version of Tasker here: https://drive.google.com/file/d/1UfMEt1H6wjlMDdsqByn-flCRqE45PdJ1/view?usp=sharing

Get the Google Calendar project here!

Let me know if you have any questions. :)

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Logan Fury

unread,
Jan 28, 2020, 11:38:52 AM1/28/20
to tas...@googlegroups.com
This is amazing!! A change to the program itself to accommodate a Task concept? WOOT!

New Beta installed, Task installed. Im at the first question screen. Does API key go here, or Google username or Google email?

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 28, 2020, 11:45:14 AM1/28/20
to tas...@googlegroups.com
Following your tutorial video, may not need the above answered one sec...

Logan Fury

unread,
Jan 28, 2020, 11:56:58 AM1/28/20
to tas...@googlegroups.com
Im stuck. At 1:33 of your video, you type https://tasker.joaoapps.com/auth.html and Hit Enter.

Ive added this to my authorized domains, but no matter what I do, Enter doesn't work when I try to create the OAuth client ID

Logan Fury

unread,
Jan 28, 2020, 12:02:16 PM1/28/20
to tas...@googlegroups.com
sorry, sorry, figured out how to get past that. soldiering on...

Logan Fury

unread,
Jan 28, 2020, 12:26:36 PM1/28/20
to tas...@googlegroups.com
Ive followed all the steps at tutorial  https://forum.joaoapps.com/index.php?resources/add-a-row-of-data-to-a-google-spreadsheet-no-plugins.383/

when I run either CG Auth provided Task or the Auth Task I just made manually following the tutorial, I am sent to a google 401: That's an error 

Error: invalid_client

The OAuth client was not found

Request Details

That's all we know.

Any ideas what to do?

João Dias

unread,
Jan 28, 2020, 12:41:17 PM1/28/20
to tas...@googlegroups.com
That seems to indicate that you didn't enter the Client ID or Client Secret correctly...

James Monk

unread,
Jan 28, 2020, 12:42:20 PM1/28/20
to Tasker
I downloaded and ran this task and it is missing my appointments by one day.  I have events on Wednesday and it is saying they are on Tuesday.


On Tuesday, January 28, 2020 at 3:07:32 AM UTC-6, Matevz Leskovsek wrote:
if anyone needs this is my profile for reading events from calendars:  https://taskernet.com/shares/?user=AS35m8ndy8fZnlD8gKlkLMlEH4cYbBUG1NHNVy4CbGy6f961ZXWVjMMuaEvheck21ZvVRUhxM3mS8N8%3D&id=Task%3ABrief+Sch#

And about writing calendar events, I always just use default action "calendar insert": 
Both those activities work without fine root obviously.

On Tue, Jan 28, 2020 at 8:04 AM Steve L <1840t...@gmail.com> wrote:
It would probably work better that way. I just haven't gotten around to it yet since it's only once a year for thirty seconds of work.

On Mon, Jan 27, 2020, 6:35 PM Logan Fury <logan...@gmail.com> wrote:
Good Evening Steve,

I just woke up, amazing timing lol.

Im downloading from that URL now. I already am thinking what if the year were a variable, and a %TIMES were used to get the year and apply it to a variable, that could probably be automated. 

Ill get it installed, do my experiments with year, and repost here.

Thank you so much for the link :)

Logan

On Mon, Jan 27, 2020 at 4:30 PM Steve L <1840t...@gmail.com> wrote:
I did not write this, found it somewhere on the net.  Every year, you have to go in and manually update the year.  Other than that, I have never been rooted and it does a good job for me.

https://taskernet.com/shares/?user=AS35m8nZFc%2F%2FgsG3EBUQ4wtKG9K5LPUsCmXZiRIuqfP1KMXA6rqtauPyZ%2FXmRobMiLEE4i8%3D&id=Task%3AGet+Events

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

--
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 tas...@googlegroups.com.

Rich B

unread,
Jan 28, 2020, 12:44:31 PM1/28/20
to Tasker
Joao - Does signing up for Google Cloud eventually cost something?

Logan Fury

unread,
Jan 28, 2020, 12:44:31 PM1/28/20
to tas...@googlegroups.com
I did a copy paste from the cloud webpage  to a text doc and saved it, then pasted that into into my email and pasted from that to the Task, nothing manual so there shouldnt have been an error. I saw from the Tute that the you used the long complete id with the url stuff at the end as I did.

I run the task again in case cloud just hasnt finished authing me yet, and then re-copy paste

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

João Dias

unread,
Jan 28, 2020, 12:59:43 PM1/28/20
to tas...@googlegroups.com
Rich, in most cases it doesn't. Some APIs require you to enable billing but even those usually have free tiers. Google Calendar doesn't require billing I think :)

James Monk

unread,
Jan 28, 2020, 4:38:40 PM1/28/20
to Tasker
If it is an error, how do we correct it?  I am getting the same message, and running GC Auth keeps bringing it back up even after I deleted the project and loaded it again.  Where do I make tasker "forget" the ID I put in the GC Auth?

Logan Fury

unread,
Jan 28, 2020, 6:44:49 PM1/28/20
to tas...@googlegroups.com
I contacted cloud support and they asked how I was using this. I gave them the link here, and now they say as Tasker is a 3rd party app, they will give no help.

Guys ive been copy/pasting and ending up with working Tasks and Projects for years now. I know what data I got from google cloud and I know I copy pasted it completely and correctly.

Auth is STILL going to 401. Im not a fan of google cloud :(

I dont know what to do now. This Task sounds fantastic and for some reason im not allowed to enjoy it.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 28, 2020, 7:28:10 PM1/28/20
to tas...@googlegroups.com
Im too agitated to give up. Ive started over fresh and following Joao's tute for this. I see a difference in my navigation and whats in the video. Im being brought to an OAuth consent screen asking me to choose to configure and register app. The two choices are Internal and External. Internal is only avail to google cloud suite users.

Is there any chance your a suite user Joao and this is working due to being internal? im going to select external as thats my only option and continue

James Monk

unread,
Jan 28, 2020, 7:43:49 PM1/28/20
to Tasker
I am still trying as well.  And like you have copied and pastes straight from the source, so not sure why we are getting the 401 error.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Jan 28, 2020, 7:48:53 PM1/28/20
to tas...@googlegroups.com
James you are probably aware of this but it doesnt  hurt to double check:

because of that .com on the end of our client IDs, when copying it, it sometimes auto adds a "http://" to the beginning. be sure to strip that off of the entry in your Tasks

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/8364038a-7095-4974-ac22-12bd2d1f10fe%40googlegroups.com.

James Monk

unread,
Jan 28, 2020, 7:49:49 PM1/28/20
to Tasker
Yes, I removed that already, but thanks for checking.

Logan Fury

unread,
Jan 28, 2020, 7:59:48 PM1/28/20
to tas...@googlegroups.com
This is absolutely ridiculous.

I've followed the tutorial exactly, started fresh done it a second time using the exact values Joao used (except for his private info) and generated a second Client ID and Secret Client codes. I used these and STILL 401.

Theres nothing more I can do. Can anyone please fix the task that was originally linked by Steve and that I posted above as partially working?

Thank you!

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/a475c26e-2d5c-42a9-af49-9d22c155b556%40googlegroups.com.

Logan Fury

unread,
Jan 28, 2020, 9:58:02 PM1/28/20
to tas...@googlegroups.com
HOLY CRAP!!!

I just noticed on the tutorial link in the description to REPLACE STEP 2 WITH GOOGLE CALENDAR not sheets!!!

im going thru the tutorial again this time enabling calendar. This war may not be over yet!

James had you caught that part?

Logan Fury

unread,
Jan 28, 2020, 10:11:59 PM1/28/20
to tas...@googlegroups.com
went thru steps again, enabled google calendar api and STILL nothing but 401s

gonna try clearing the cache on my browser and try again....

and still a 401. I give up.

James Monk

unread,
Jan 28, 2020, 10:23:44 PM1/28/20
to Tasker
Yes, I had caught that and still the 401 error.

James Monk

unread,
Jan 28, 2020, 10:33:40 PM1/28/20
to Tasker
How do you input the information in GC Auth after running the task once? I ran the task and got the 401. Trying to figure out how to put in the ID again.

Logan Fury

unread,
Jan 28, 2020, 10:34:44 PM1/28/20
to tas...@googlegroups.com
OK I just got one step further. on the OAuth playground page, there is a button to authorize APIs. I just selected calendar api and clicked button. It took me to a google page and had me choose from my google accounts then grant access to cloud to read my calendar. I thought that would do it but im still 401.

This part wasnt in the tutorial. Joao, ive got a field that says:

"input your own scopes"

Just to the left of the Authorize Apis button. What do I fill in here please?

Logan Fury

unread,
Jan 28, 2020, 10:35:42 PM1/28/20
to tas...@googlegroups.com
Im no longer using GC Auth, im using the Auth Task Joao walks us thru making. its got static fields to input the id, secret client, and start and endpoints 

On Tue, Jan 28, 2020 at 7:34 PM James Monk <jwm...@gmail.com> wrote:
How do you input the information in GC Auth after running the task once? I  ran the task and got the 401. Trying to figure out how to put in the ID again.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

James Monk

unread,
Jan 28, 2020, 10:53:07 PM1/28/20
to Tasker
Using the south task works for me but I don't know how to tie that in with the calendar project fro joao

Logan Fury

unread,
Jan 28, 2020, 10:57:08 PM1/28/20
to tas...@googlegroups.com
what do you mean by south task?

On Tue, Jan 28, 2020 at 7:53 PM James Monk <jwm...@gmail.com> wrote:
Using the south task works for me but I don't know how to tie that in with the calendar project fro joao

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

James Monk

unread,
Jan 29, 2020, 12:17:32 AM1/29/20
to Tasker
Typo sorry auth

Logan Fury

unread,
Jan 29, 2020, 12:39:15 AM1/29/20
to Tasker
Your auth has made it past 401???

Can you post it here with your 2 private IDs removed please?



On Tuesday, January 28, 2020 at 9:17:32 PM UTC-8, James Monk wrote:
Typo sorry auth

Logan Fury

unread,
Jan 29, 2020, 2:34:02 AM1/29/20
to tas...@googlegroups.com
I got my Auth past 401 :D :D :D

There was a damn forward slash auto-added at end of the client ID

Im working with the GC Auth now, and then will test rest of scripts

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 29, 2020, 2:42:28 AM1/29/20
to tas...@googlegroups.com
I've tried to run Say Calendar Events, but A9 errors:

23.40.10/Variables doreplresult: |date -d "@%time_start" %time_format| -> |date -d "@%times_start1" +"%H:%M"|
23.40.10/Variables doreplresult: |date -d "@%time_start" %time_format| -> |date -d "@%times_start1" +"%H:%M"|
23.40.10/E Run Shell: %time_start -> %time_start
23.40.10/E Run Shell:  -> 
23.40.10/E Run Shell:  -> 
23.40.10/Shell runBackground date -d "@%times_start1" +"%H:%M" root: false timeout: -1
23.40.10/Shell start process-thread ID 10967
23.40.10/E add wait type Shell1 time 2147483647
23.40.10/E add wait type Shell1 done
23.40.10/E add wait task
23.40.10/Variables doreplresult: |%time_start| -> |%time_start|
23.40.10/E Error: 1

Any instructions on what to do from here? 

James Monk

unread,
Jan 29, 2020, 2:49:25 AM1/29/20
to Tasker
How do you reinsert the requested information? Once I ran GC Auth one time the popup for the ID doesn't appear anymore.

Logan Fury

unread,
Jan 29, 2020, 2:52:02 AM1/29/20
to tas...@googlegroups.com
change the IF conditionals on actions 2 and 10 from !SET to SET and this will reprompt you to enter the values

On Tue, Jan 28, 2020 at 11:49 PM James Monk <jwm...@gmail.com> wrote:
How do you reinsert the requested information? Once I ran GC Auth one time the popup for the ID doesn't appear anymore.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

James Monk

unread,
Jan 29, 2020, 3:42:53 AM1/29/20
to Tasker
I can run that task but it only gives me one appointment, and I have two today.

Jimmy Jimmy

unread,
Jan 29, 2020, 9:05:41 AM1/29/20
to Tasker
Hi mate, my task here. Two variables to set. %days and %calendar. Set %days to 0 if you want events from now until end of today. Set it to 1 if you want events from now to end of tomorrow. %calendar is the name of the calendar you want to get events from.


https://taskernet.com/shares/?user=AS35m8l0uoEmO7%2BknDeZdQZUuEvVArlrL3VSdWMhXha9Vu31T49NphT80MA9Lxr2%2Btjl&id=Task%3AHelp+List+Calendar+Events

James Monk

unread,
Jan 29, 2020, 1:01:33 PM1/29/20
to Tasker
So the "say calendar events" task only brings up one appointment when there are multiple.  What needs to be changed so it will show all of them?

On Tuesday, January 28, 2020 at 10:23:16 AM UTC-6, joaomgcd wrote:
Hi! I've created a project that allows you to both get and insert events into Google Calendar.
I had to make a small change to Tasker to allow it to work, so get the needed version of Tasker here: https://drive.google.com/file/d/1UfMEt1H6wjlMDdsqByn-flCRqE45PdJ1/view?usp=sharing

Get the Google Calendar project here!

Let me know if you have any questions. :)

Logan Fury

unread,
Jan 29, 2020, 4:18:01 PM1/29/20
to tas...@googlegroups.com
Hello Jimmy!

Your post didnt get buried! I've installed Help List Calendar Events and it identified today's schedules perfectly!

Unfortunately, when I set %days higher than 0 it keeps giving today's events. 

This Profile seems perfect for a small tweak: Variable Query to automatically set desired day :) 

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 29, 2020, 5:02:50 PM1/29/20
to tas...@googlegroups.com
My bad, Jimmy, the task is working fine, it took a bit for my test events to be seen by the Task.

Its working perfectly!

Logan Fury

unread,
Jan 29, 2020, 5:13:48 PM1/29/20
to tas...@googlegroups.com
I've edited the formatting a bit so event day stands out more noticeably for me.

I'd love to add am/pm display to this. I may try that edit after some sleep 
Screenshot_20200129-140716_AutoTools.jpg

Logan Fury

unread,
Jan 29, 2020, 5:36:26 PM1/29/20
to tas...@googlegroups.com
So I just swapped the format order to month and days before year, and somehow the display has imploded..

What's with this, my phone was freshly rebooted >.<

Screenshot_20200129-142942_AutoTools.jpg

James Monk

unread,
Jan 29, 2020, 5:46:32 PM1/29/20
to Tasker
This one doesn't work for me.  I don't have a gmail account connected to my calendar, so can't use the @gmail.com

Logan Fury

unread,
Jan 29, 2020, 5:58:11 PM1/29/20
to tas...@googlegroups.com
Did you try with your normal email just as a test?

If that doesn't work, you might consider making a Gmail account just for use of this script. It's pretty awesome even if I can't figure out why a simple text edit broke the formatting after working fine for several firings of the Task.

Does your default calendar allow for Google sync? 

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

James Monk

unread,
Jan 29, 2020, 6:03:58 PM1/29/20
to Tasker
yes it pauses at step 11 for several seconds then ends with nothing.


On Wednesday, January 29, 2020 at 4:58:11 PM UTC-6, Logan Fury wrote:
Did you try with your normal email just as a test?

If that doesn't work, you might consider making a Gmail account just for use of this script. It's pretty awesome even if I can't figure out why a simple text edit broke the formatting after working fine for several firings of the Task.

Does your default calendar allow for Google sync? 

On Wed, Jan 29, 2020, 2:47 PM James Monk <jamesm...@msn.com> wrote:
This one doesn't work for me.  I don't have a gmail account connected to my calendar, so can't use the @gmail.com

On Wednesday, January 29, 2020 at 8:05:41 AM UTC-6, Jimmy Jimmy wrote:
Hi mate, my task here. Two variables to set. %days and %calendar. Set %days to 0 if you want events from now until end of today. Set it to 1 if you want events from now to end of tomorrow. %calendar is the name of the calendar you want to get events from.


https://taskernet.com/shares/?user=AS35m8l0uoEmO7%2BknDeZdQZUuEvVArlrL3VSdWMhXha9Vu31T49NphT80MA9Lxr2%2Btjl&id=Task%3AHelp+List+Calendar+Events

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Jan 29, 2020, 6:19:23 PM1/29/20
to tas...@googlegroups.com
thats with your default email @msn right?

I found this:

How do I sync Gmail calendar with Outlook?
Go to Settings, Mail, Contacts, Calendars and tap Add Account. Use the options to add Google and Outlook.com accounts. Accept the offer to sync calendars and that's it. Events added to Google CalendarOutlook.com Calendar or Outlook if it's synced with Outlook.com, automatically appear in the iOS Calendar app.Dec 11, 2018

what do you think about making a dummy gmail just to test this?

Logan 

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/7a45df9d-ea47-4421-9cb2-2dc4c9d5fa5f%40googlegroups.com.

Logan Fury

unread,
Jan 29, 2020, 6:22:27 PM1/29/20
to tas...@googlegroups.com
That above on second glance looks to be for iOS.

here some better info:

James Monk

unread,
Jan 29, 2020, 7:09:50 PM1/29/20
to Tasker
Yea, that doesn't work, I already have my hotmail and gmail accounts synced and the task still stops.

Jimmy Jimmy

unread,
Jan 29, 2020, 8:18:33 PM1/29/20
to Tasker
Hi James,

It should work with all calendars on your phone. if you can see the calendar in your Calendar App, this task should work. You just need to get the calendar name right. Most of the time, it is the email address. But some may be named differently. Look inside the Calendar App to see.

Stuck at action #11? Is it the Goto action?

Jimmy Jimmy

unread,
Jan 29, 2020, 8:22:18 PM1/29/20
to Tasker
My guess is you have commas in your date time variable and therefore Tasker treated that as different items. You either NOT use commas or reformat the array to NOT use comma as separator.

James Monk

unread,
Jan 29, 2020, 8:26:51 PM1/29/20
to Tasker
It is the goto action. 

James Monk

unread,
Jan 29, 2020, 8:31:09 PM1/29/20
to Tasker
I'm a noob to tasker, so not sure where to go to change any settings or information.


On Wednesday, January 29, 2020 at 7:22:18 PM UTC-6, Jimmy Jimmy wrote:

Jimmy Jimmy

unread,
Jan 29, 2020, 9:00:29 PM1/29/20
to Tasker
If nothing is found, action #11 will go directly to #17 which should display a dialog saying "0 events found". Do you see that?

If not, my guess is you don't have the AutoTools plug-in installed?

Logan Fury

unread,
Jan 29, 2020, 9:07:46 PM1/29/20
to tas...@googlegroups.com
Hello Jimmy,

Sorry my eyes just closed on their own for several hours lol.

"My guess is you have commas in your date time variable and therefore Tasker treated that as different items. You either NOT use commas or reformat the array to NOT use comma as separator."

Im assuming thats for me regarding the broken formatting. I just ran the edit, and you were absolutely correct, I had put a comma between day of the week and year. Ive now replaced that with dashes, and the script is running fine.

Thank you so much for posting this. Id love to see this thread become a repository of working Cal scripts for 2020!

Can any of the more experienced coders here repair the following non working version:

Get Cal Events BROKE (158)
     A1: Variable Convert [ Name:%TIMES Function:Seconds to Medium Date Time Store Result In:%getyear Mode:Default ] 
     A2: Variable Split [ Name:%getyear Splitter:, Delete Base:Off ] 
     A3: Variable Split [ Name:%getyear2 Splitter: Delete Base:Off ] 
     A4: Variable Convert [ Name:%DATE Function:Date Time to Seconds Store Result In:%date Mode:Default ] 
     A5: Variable Set [ Name:%schedstart To:%date + (60*60*6) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ] 
     A6: Variable Set [ Name:%schedend To:%date + (60*60*24) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ] 
     <"TEST NEXT EVENT">
     A7: Test App [ Type:Calendar Title Data:%schedstart Store Result In:%event ] 
     A8: Test App [ Type:Calendar Calendar Data:%schedstart Store Result In:%calendar ] 
     A9: If [ %event(#) neq 0 & %event1 !~ %doubleevent & %calendar1 ~ *logan...@gmail.com* ]
     A10: Variable Convert [ Name:%schedstart Function:Seconds to Long Date Time Store Result In:%time Mode:Default ] 
     A11: Variable Split [ Name:%time Splitter:%getyear22 Delete Base:Off ] 
     A12: Array Push [ Variable Array:%calevents Position:999 Value:%event, at %time 2 Fill Spaces:Off ] 
     A13: Variable Set [ Name:%doubleevent To:%event1 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] 
     A14: End If 
     A15: Variable Add [ Name:%schedstart Value:900 Wrap Around:0 ] 
     A16: Goto [ Type:Action Label Number:1 Label:"TEST NEXT EVENT" ] If [ %schedstart < %schedend ]
     A17: Media Volume [ Level:15 Display:Off Sound:Off ] 
     A18: Say [ Text:You have no events today Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) eq 0 ]
     A19: Say [ Text:You have one event today Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) eq 1 ]
     A20: Say [ Text:You have %calevents(#) events today. Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %calevents(#) > 1 ]
     A21: For [ Variable:%eventtosay Items:%calevents(:) ] 
     A22: Flash [ Text:%eventtosay Long:On ] 
     A23: Say [ Text:%eventtosay Engine:Voice:com.cereproc.Caitlin:eng-GBR Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] 
     A24: End For 

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 29, 2020, 9:10:11 PM1/29/20
to tas...@googlegroups.com
Jimmy did you have any ideas about adding am/pm to the display of your linked Task? Ive got the format problem with the comma resolved.

Jimmy Jimmy

unread,
Jan 29, 2020, 9:16:09 PM1/29/20
to Tasker
Sorry, missed that.

In action #14, Format Dates>Format, simply add the lowercase letter a at the end, that means to show AM or PM.

James Monk

unread,
Jan 29, 2020, 9:16:53 PM1/29/20
to Tasker
No, it stops at 11 for several seconds and then just ends.  No popup like Logan showed, nothing.  I have tried my gmail and hotmail and google calendar.  Does google calendar need to be in quotes or anything special?

Jimmy Jimmy

unread,
Jan 29, 2020, 9:21:29 PM1/29/20
to Tasker
Do you have the AutoTools plug-in installed?

Logan Fury

unread,
Jan 29, 2020, 9:27:33 PM1/29/20
to tas...@googlegroups.com
edit worked perfectly!! Last aestetic change im going for as I changed format from H to h, is to remove the proceeding 0 from the time. I think I can do that in my edit without breaking anything.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Jimmy Jimmy

unread,
Jan 29, 2020, 9:36:24 PM1/29/20
to Tasker
Yes, that should be fine.

James Monk

unread,
Jan 29, 2020, 9:38:25 PM1/29/20
to Tasker
yes Auto Tools is installed.

Logan Fury

unread,
Jan 29, 2020, 9:40:06 PM1/29/20
to tas...@googlegroups.com
Actually this is composed in a technically advanced way, no brute force SAY commands to easily edit.

Here is my edit Jimmy when you have time can you see if the proceeding 0 can be removed from the non-military time values?

I would really appreciate it if it's possible. 

Thank you 

Logan Fury

unread,
Jan 29, 2020, 9:41:16 PM1/29/20
to tas...@googlegroups.com
Forgot the paste lol

    Help List Calendar Events EDIT (201)
    <<big>SET DAYS TO LOOK AHEAD>
    A1: Variable Query [ Title:Days Ahead Variable:%days Input Type:Normal Text Default: Background Image: Layout:Variable Query Timeout (Seconds):40 Show Over Keyguard:On ] 
    <<big>SET DAYS TO LOOK AHEAD>
    A2: [X] Variable Set [ Name:%days To:2 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] 
    <<big>SET CALENDAR NAME TO SEARCH>
    A3: Variable Set [ Name:%calendar To:logan...@gmail.com Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] 
    <USE CURRENT TIME AS START>
    A4: Variable Set [ Name:%beginmsec To:%TIMEMS Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] 
    <ADD NUMBER OF DAYS AS END>
    A5: Variable Set [ Name:%endsec To:%TIMES+86400*%days Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ] 
    <COMVERT SECONDS TO DATE TIME FORMAT>
    A6: Variable Convert [ Name:%endsec Function:Seconds to Date Time Store Result In:%enddatetime Mode:Default ] 
    <REPLACE THE END TIME PORTION WITH 23.59>
    A7: Variable Search Replace [ Variable:%enddatetime Search:\d\d\.\d\d Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In Array: Replace Matches:On Replace With:23.59 ] 
    <CONVERT TO SECONDS>
    A8: Variable Convert [ Name:%enddatetime Function:Date Time to Seconds Store Result In:%endsec Mode:Default ] 
    <CONVERT TO MILLISECONDS>
    A9: Variable Set [ Name:%endmsec To:%endsec*1000 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ] 
    <FOR DISPLAY FORMATTING ONLY>
    A10: Variable Set [ Name:%ret To:
     Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] 
    <GET EVENTS BASED ON BEGIN AND END TIMES>
    A11: SQL Query [ Mode:URI Formatted File:content://com.android.calendar/instances/when/%beginmsec/%endmsec Table: Columns:calendar_displayName,begin,end,title Query:calendar_displayName='%calendar' Selection Parameters: Order By:begin Output Column Divider:%ret Variable Array:%events Use Root:Off ] 
    A12: Goto [ Type:Action Label Number:1 Label:DISPLAY RESULTS ] If [ %events(#) = 0 ]
    <CONVERT RETURNED BEGIN AND END TIMES TO READABLE FORMAT>
    A13: For [ Variable:%num Items:1:%events(#) ] 
    A14: Variable Search Replace [ Variable:%events(%num) Search:\d{13} Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In Array:%timems Replace Matches:Off Replace With: ] 
    A15: AutoTools Time [ Configuration:Dates to Format: %timems()
    Format: MM-dd-yyyy hh:mma Timeout (Seconds):30 ] 
    A16: Variable Search Replace [ Variable:%events(%num) Search:\d{13}\n\d{13} Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In Array: Replace Matches:On Replace With:%atformatteddate1%ret%atformatteddate2 ] 
    A17: End For 
    <DISPLAY RESULTS>
    A18: AutoTools Dialog [ Configuration:Dialog Type: List
    Title: Calendar
    %events(#) events found
    Title Alignment: Left
    List Type: List
    Texts: %events()
    Text Size: 14
    Image Width: 100
    Dim Background: true
    Top Margin: 16
    Bottom Margin: 16
    Bottom Buttons Top Margin: 16
    Bottom Buttons Bottom Margin: 16
    Separator: ,
    Command Variable: atcommand
    Cancelable: true
    Turn Screen On: true Timeout (Seconds):60 Continue Task After Error:On ] 
    

Jimmy Jimmy

unread,
Jan 29, 2020, 9:58:03 PM1/29/20
to Tasker
Just use h:mma inatead of hh:mma


On Thursday, January 30, 2020 at 10:40:06 AM UTC+8, Logan Fury wrote:
Actually this is composed in a technically advanced way, no brute force SAY commands to easily edit.

Here is my edit Jimmy when you have time can you see if the proceeding 0 can be removed from the non-military time values?

I would really appreciate it if it's possible. 

Thank you 

On Wed, Jan 29, 2020, 6:26 PM Logan Fury <logan...@gmail.com> wrote:
edit worked perfectly!! Last aestetic change im going for as I changed format from H to h, is to remove the proceeding 0 from the time. I think I can do that in my edit without breaking anything.

On Wed, Jan 29, 2020 at 6:16 PM Jimmy Jimmy <jmjc...@gmail.com> wrote:
Sorry, missed that.

In action #14, Format Dates>Format, simply add the lowercase letter a at the end, that means to show AM or PM.


On Thursday, January 30, 2020 at 10:10:11 AM UTC+8, Logan Fury wrote:
Jimmy did you have any ideas about adding am/pm to the display of your linked Task? Ive got the format problem with the comma resolved

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Jimmy Jimmy

unread,
Jan 29, 2020, 10:01:27 PM1/29/20
to Tasker
Any error messages?

Could you add a flash action and put %events(#) in the text field between A10:SQL Query and A11:Goto? And let me know what number it shows.

Logan Fury

unread,
Jan 29, 2020, 10:45:28 PM1/29/20
to tas...@googlegroups.com
I'm experiencing some problems now as well. The script works flawlessly several times, but then gets hung with green lights up to A17, a fwd arrow at A18 several moments pause, then A18 lights up but nothing is displayed. It works again after rebooting the phone.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Jimmy Jimmy

unread,
Jan 29, 2020, 11:02:31 PM1/29/20
to Tasker
That is probably AutoTools Dialog acting up. That happens sometimes and I don't know why. We can easily change it to scene and get rid of the AutoTools Dialog action. Let me change it and get back to you.


On Thursday, January 30, 2020 at 11:45:28 AM UTC+8, Logan Fury wrote:
I'm experiencing some problems now as well. The script works flawlessly several times, but then gets hung with green lights up to A17, a fwd arrow at A18 several moments pause, then A18 lights up but nothing is displayed. It works again after rebooting the phone.

On Wed, Jan 29, 2020 at 7:01 PM Jimmy Jimmy <jmjc...@gmail.com> wrote:
Any error messages?

Could you add a flash action and put %events(#) in the text field between A10:SQL Query and A11:Goto? And let me know what number it shows.

On Thursday, January 30, 2020 at 10:38:25 AM UTC+8, James Monk wrote:
yes Auto Tools is installed.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Jan 29, 2020, 11:10:47 PM1/29/20
to tas...@googlegroups.com
That is amazing! Thank you so much for figuring out a workaround.

I appreciate your time, I hope all this work is as fun to you as it is to me :D

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/22382a4c-fcc7-479a-81dd-b6bbc1194fed%40googlegroups.com.

Jimmy Jimmy

unread,
Jan 29, 2020, 11:18:35 PM1/29/20
to Tasker
Hi Logan and James,

Please try this:

https://taskernet.com/shares/?user=AS35m8l0uoEmO7%2BknDeZdQZUuEvVArlrL3VSdWMhXha9Vu31T49NphT80MA9Lxr2%2Btjl&id=Project%3AReddit+Cal

Couple changes:
1. Scene is used instead of AT Dialog to show results

2. %calendar accepts the percentage sign for wildcard, i.e. will search all calendars for events. Of course, you can still enter a calendar name to limit to that one calendar.

Logan Fury

unread,
Jan 29, 2020, 11:30:03 PM1/29/20
to tas...@googlegroups.com
Jimmy that is beautiful!! Working fantastic and looks clean and professional.

How would you go about a voice announcement for the events in this script?

Logan

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Jimmy Jimmy

unread,
Jan 30, 2020, 2:40:04 AM1/30/20
to Tasker
The list is stored in the %events() array. Depending on how you want to read it, e.g. read only the next event, ask user which one to read and etc. Bascially varianle search split an event into different segments and feed them into a Say action. Let me know what you have in mind and we can work something out based on your needs.


On Thursday, January 30, 2020 at 12:30:03 PM UTC+8, Logan Fury wrote:
Jimmy that is beautiful!! Working fantastic and looks clean and professional.

How would you go about a voice announcement for the events in this script?

Logan

On Wed, Jan 29, 2020 at 8:19 PM Jimmy Jimmy <jmjc...@gmail.com> wrote:
Hi Logan and James,

Please try this:

https://taskernet.com/shares/?user=AS35m8l0uoEmO7%2BknDeZdQZUuEvVArlrL3VSdWMhXha9Vu31T49NphT80MA9Lxr2%2Btjl&id=Project%3AReddit+Cal

Couple changes:
1. Scene is used instead of AT Dialog to show results

2. %calendar accepts the percentage sign for wildcard, i.e. will search all calendars for events. Of course, you can still enter a calendar name to limit to that one calendar.

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Jan 30, 2020, 4:13:12 AM1/30/20
to tas...@googlegroups.com
Hello Jimmy,

Sorry had to step away from keys for a while. I have set %events() to the variable %say and used Search/Replace to strip out my email in the spoken string.

What Im getting now is 

the 30th of January 2020 1pm
the 30th of January 2020 2pm
event

This is starting to be nice and clean already but I definately want to change the second "the 30th of January 2020" to "til" and give a nice clean time span,

What ive done so far

A18 Variable Set %say to %events()
A19 Variable Search Replace variable: %say search: logan...@gmail.com replace:
A20 Say %say

Would it be easier to go earlier in the script and assign a variable with the end time stripped of day/date leaving only time?

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/412a39e6-629f-4b3d-985e-e2ee4a1fb1e9%40googlegroups.com.

Logan Fury

unread,
Jan 30, 2020, 4:42:33 AM1/30/20
to tas...@googlegroups.com
Im thinking a string for say should probably be established earlier in the script, being built and adjusted as %events() fills up.

Right now, a raw reading of %events() produces this:

logan...@gmail.com the 30th of January 2020 1pm the 30th of January 2020 2pm test event 1 logan...@gmail.com the 30th of january 2020 2pm the 30th of January 2020 3pm test event 2

The syntax I would much rather see is:

event one: thursday, january 30th from 1pm til 2pm. test event 1. event two: thursday, january 30th from 2pm til 3pm. test event 2

etc.

Would this be too much trouble to format Jimmy?

James Monk

unread,
Jan 30, 2020, 8:50:03 AM1/30/20
to Tasker
This one works for me. The second task didn't run though.

Jimmy Jimmy

unread,
Jan 30, 2020, 9:05:33 AM1/30/20
to Tasker
James, you only need to run the first task, List Calendar Events 2. It will call the other task.

Jimmy Jimmy

unread,
Jan 30, 2020, 9:09:33 AM1/30/20
to Tasker
No trouble at all. Jus different formats based on different needs. My approach is to simply list them, not Say them. If your main goal is to Say them, I can change the task a bit. Probably the best way is to to give you the date, month, year, time and title in different arrays. This way, you can append them together in whatever ways you want. Sounds good?

Logan Fury

unread,
Jan 30, 2020, 9:26:57 AM1/30/20
to tas...@googlegroups.com
That sounds amazing Jimmy, I cannot thank you enough :D

On Thu, Jan 30, 2020 at 6:09 AM Jimmy Jimmy <jmjc...@gmail.com> wrote:
No trouble at all. Jus different formats based on different needs. My approach is to simply list them, not Say them. If your main goal is to Say them, I can change the task a bit. Probably the best way is to to give you the date, month, year, time and title in different arrays. This way, you can append them together in whatever ways you want. Sounds good?

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

James Monk

unread,
Jan 30, 2020, 10:36:55 AM1/30/20
to Tasker
It's nice to have someone that knows Tasker and Auto tools, and is willing to help other people achieve things they need.  Thank you Jimmy.

Logan Fury

unread,
Jan 30, 2020, 10:40:32 AM1/30/20
to tas...@googlegroups.com
This forum is full of incredibly talented scripters, Java, JavaScript, & more, and the time they dedicate to these pages helping people from all over the world is astounding.

I cant tell you how many hours of tutoring and guidance ive gotten here in the last 3 years or so!

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Matevz Leskovsek

unread,
Jan 30, 2020, 12:22:55 PM1/30/20
to tas...@googlegroups.com
I dont understand why you have so much troubles. I simply write events
to phone calendar (to any calendar that is synced to phone, I only use
google calendars myself) and then the phone syncs these new events
with gcalendar. To do this, in tasker type "calendar insert" in search
form when creating new tasks. For reading events I use thatplugin with
green icon "calendar task" and it is totally simple and
straightforward. The only annoying thing is calculating free spots
inside calendar, that is time between finishing last event and
starting new event.
> 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/CAOr8%2B4EOs-YgGj3qeUzCXSsG3zeU_pSrbbGJiS3ZksAOf0jdog%40mail.gmail.com.

James Monk

unread,
Jan 30, 2020, 12:50:05 PM1/30/20
to Tasker
There are some that have been using Tasker and programming with  it for years, and others that have just picked up tasker and never run any programs.  Looking at the "calendar insert" doesn't help me in the least to know what information is needed for that to function.


On Thursday, January 30, 2020 at 11:22:55 AM UTC-6, Matevz Leskovsek wrote:
I dont understand why you have so much troubles. I simply write events
to phone calendar (to any calendar that is synced to phone, I only use
google calendars myself) and then the phone syncs these new events
with gcalendar. To do this, in tasker type "calendar insert" in search
form when creating new tasks. For reading events I use thatplugin with
green icon "calendar task" and it is totally simple and
straightforward. The only annoying thing is calculating free spots
inside calendar, that is time between finishing last event and
starting new event.

On Thu, Jan 30, 2020 at 4:40 PM Logan Fury <logan...@gmail.com> wrote:
>
> This forum is full of incredibly talented scripters, Java, JavaScript, & more, and the time they dedicate to these pages helping people from all over the world is astounding.
>
> I cant tell you how many hours of tutoring and guidance ive gotten here in the last 3 years or so!
>
> On Thu, Jan 30, 2020 at 7:37 AM James Monk <jamesm...@msn.com> wrote:
>>
>> It's nice to have someone that knows Tasker and Auto tools, and is willing to help other people achieve things they need.  Thank you Jimmy.
>>
>> On Thursday, January 30, 2020 at 8:09:33 AM UTC-6, Jimmy Jimmy wrote:
>>>
>>> No trouble at all. Jus different formats based on different needs. My approach is to simply list them, not Say them. If your main goal is to Say them, I can change the task a bit. Probably the best way is to to give you the date, month, year, time and title in different arrays. This way, you can append them together in whatever ways you want. Sounds good?
>>
>> --
>> 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/hEhlZoO5pX0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/53e225c7-1d35-4375-ba1f-34776da24a1a%40googlegroups.com.
>
> --
> 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 tas...@googlegroups.com.

Jimmy Jimmy

unread,
Jan 30, 2020, 11:00:51 PM1/30/20
to Tasker
Hi Logan,


The information is now completely seperated into their own arrays:

%cal() - calendar name
%begin_year(), %end_year() - e.g. 2020
%begin_month(), %end_month() - e.g. January
%begin_day(), %end_day() - converted into readable format e.g. 1st, 2nd, 23rd, 28th, etc.
%begin_dayname(), %end_dayname() - e.g. Friday
%begin_time(), %end_time() - e.g. 4 05 PM
%title() - title

Using the format you mentioned earlier, the %events_say() array now has that format for each event. Just change this array if you want to tweak the format

When you run the task (set %days and %calendar accordingly like before), it will find the events and SAY "3 events found. Should I read them for you?". Then there is a Get Voice action which waits for your reply. Simply reply "Yes" or "Please" or "OK" if you want it to read. Then it will read one by one. If you reply "No", the task will SAY goodbye and end.

There are things that can still be done to make it better. But a nice start. Play with it and let me know if it works.

Logan Fury

unread,
Jan 30, 2020, 11:53:33 PM1/30/20
to tas...@googlegroups.com
Good Evening Jimmy,

Im sorry for the delay, I passed out like a log. 

New version is downloaded and installed, its alongside the old version, I edited Scene names to allow everything to co-exist in separate project tabs. 

Initially it seems to be working fantastic, But one thing that stands out is that during the reading of the event, the voice engine keeps speaking out the word "comma" every time it comes upon one.

Is this easy to resolve?

--
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/hEhlZoO5pX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
It is loading more messages.
0 new messages