Add Time Difference 2 (230)
A1: Variable Set [ Name:%ctconverted To:8:00 PM Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A2: Variable Set [ Name:%endtime To:10:30 PM Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A3: Variable Set [ Name:%ctconverted To:%DATE %ctconverted Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A4: Variable Set [ Name:%endtime To:%DATE %endtime Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A5: Flash [ Text:%ctconverted Long:On ]
A6: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A7: Variable Convert [ Name:%ctconverted Function:Date Time to Seconds Store Result In: Mode:Default ]
A8: Variable Convert [ Name:%endtime Function:Date Time to Seconds Store Result In: Mode:Default ]
A9: Variable Set [ Name:%diff To:%endtime-%ctconverted Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
A10: Variable Set [ Name:%hrs To:floor(%diff/3600) Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
A11: Variable Set [ Name:%min To:(%diff-(%hrs*3600))/60 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]
A12: Flash [ Text:%hrs
%min Long:On ]
This works perfectly. As soon as I paste it in the calendar Task it errors:
16.38.35/Variables doreplresult: |%ctconverted| -> |1-31-20 Saturday 12:00 AM |
16.38.35/E Variable Convert: %ctconverted -> %ctconverted
16.38.35/E Variable Convert: ->
16.38.35/MyCal parseDateTime: bad num major parts 4
16.38.35/E Variable Convert: %ctconverted: failed.
16.38.35/E result: stop task (error)
16.38.35/Variables doreplresult: |%ctconverted| -> |1-31-20 Saturday 12:00 AM |
16.38.35/E Error: 1
16.38.35/MacroEdit action finished exeID 1 action no 25 code 596 status: Err next 25
I put a flash in and the variable is IDENTICAL to it's value when the time difference Task is run!
Have you any idea what to do?
Thank you Rich
--
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/khnxgnG9Awg/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/707a8b01-64c2-4522-a704-0cc4a49145dc%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAEsQPf7M%2BtRENZSE8ze%2BE_G9723Y1yuHzsUcRRnJ6HhUPypJSQ%40mail.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/khnxgnG9Awg/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/CADuUTAomphR5Epug9xGdH2bdcXiddS2moc528%2BxRBjaCi0UaYg%40mail.gmail.com.
Hello Rich,Thank you sir, but I have actually already fixed it. It was comparing the wrong values. I added a variable for current time and subtracted that from the time of the future event and got the proper return.See 2 posts above for the description :)
On Sat, Feb 1, 2020 at 5:36 AM Rich D <ricp...@gmail.com> wrote:
There does seem to be a issue with the am / pm for this method. In my test a start time of 11:00 am and end time of 12:30 pm gives a difference of 13 hrs 30 min.--I believe it it universally accepted that 12:30 pm is 30 min past noon.I will do some testing and get back to you..
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/khnxgnG9Awg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.
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/9239cf61-1146-4568-9dc4-15e5033e686b%40googlegroups.com.
Hello Rich,Thank you sir, but I have actually already fixed it. It was comparing the wrong values. I added a variable for current time and subtracted that from the time of the future event and got the proper return.See 2 posts above for the description :)
Unfortunately there is a definite issue with this approach. When I first made this a long time ago I was not experienced enough to know to "Always" wait...let me repeat that... "Always" check the help text for any action. In the help text for the convert variable time,date -> seconds it specifically states the time portion needs to be in 24hr format. It turns out that it will convert time,date->second if you use 24 hr format and "Almost" work correctly. For some strange reason it will interpret 12:00 pm incorrectly. To show this issue set your start time to 11:00 am and end time to 12:30pm . It should show 1 hr and 30 min. Instead it will show 13hr 30 min.
I will edit and post a working version of this approach that converts to 24hr before the convert action. However in reality once both times are in 24 hr format there is not much math left to get the difference in the times which makes this approach not very practical.
--
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/khnxgnG9Awg/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/CADuUTAq%2B8gqy2_W77QFsAF4OidCx0%2BAAS4hEEJ1QS8cEqW_u5g%40mail.gmail.com.
Thank you very much for the clarification about the error. I'm going to create an 11am to 12:30pm task as you suggested, and ill watch the forums for your edit.
--
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/khnxgnG9Awg/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/CADuUTArmNcLunHj2NXw%3DmnuJiHKF3tgX0rt%2BVenty5QYWuaoWA%40mail.gmail.com.
When you get the event data back from the plug in is it in 24 or 12hr format?
--
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/khnxgnG9Awg/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/CADuUTAo6_VYEPGMz14kzciCC-XJNsP0pMW%2Bys2Q8gkJcKvdmjg%40mail.gmail.com.
OK Rich, I just got confirmation of the error you predicted. At 8:53 I ran a task to announce the 12:30pm event and it announced it as happening in 15hrs 37mins.This definitely needs a fix beyond my skill >.<
I could not in good conscience post a help script that deliberately uses the incorrect data in a action. In addition the only reason for using the variable convert action was to simplify the conversion from 12 to 24 hr format. By the time I fixed the last approach it was just as complex as doing it the long way.
--
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/khnxgnG9Awg/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/CADuUTAqwdwQ3yhR2NCKDEbfPQ0YZgKj6RzG7oak2tzEr_Rigww%40mail.gmail.com.
Can you post the description with the changes?Thanks.. Rich.
--
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/khnxgnG9Awg/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/CADuUTAoA8Gp3GV2QdnS1N1yfN7Tp%2B-XG-n64p7jNw-GD2sFsGg%40mail.gmail.com.
You can delete a26 through a33. And change a35 to set %par1 to %TIME. give that a try. If it does not work then post the description again and I will get back to you tomorrow morning..
--
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/khnxgnG9Awg/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/CADuUTAqbUeEZ_Z_HCiwifYNQUO33mnxFHfY65qqY_2TGXOTwjA%40mail.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/khnxgnG9Awg/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/CADuUTArcpsfqfm-M-KbARmPDSiSeVucybr883wdxOFm_nPp%2B7w%40mail.gmail.com.
In action a26 change the return variable as belowA26: Perform Task [ Name:Convert Time To Seconds Priority:%priority Parameter 1 (%par1):%ctconverted3%ctconverted4 Parameter 2 (%par2): Return Value Variable:%start_time Stop:Off ]
--
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/khnxgnG9Awg/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/CADuUTArNK_2PZByeu0Wey2iWWJen8%3DL3z8cXZkGLshsaDwLp4w%40mail.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/khnxgnG9Awg/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/CADuUTAqpacz1iTtne4Nz%2BoWJMVES81zcLPFxC8aVVFt43UCHFQ%40mail.gmail.com.
Easiest fix for for now is to edit the child task And replace any reference to am or pm to AM or PM..
--
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/khnxgnG9Awg/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/CADuUTApBjK%3DwJqka_yQPumMBEkgTKDC1Ue3oA0dO%3Din%2B6eoErA%40mail.gmail.com.
you guys have done some good work here, I would love the xml or taskernet share. 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/khnxgnG9Awg/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/a28eb26b-9d9d-4365-ab80-93169f592b82%40googlegroups.com.
I have received them.... thank you for these.
--
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/khnxgnG9Awg/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/75153c87-6a32-48f7-a2e9-023a86163483%40googlegroups.com.
My pleasure Marta,Enjoy!
On Tue, Feb 4, 2020, 3:42 PM Marta Hintz <lar...@gmail.com> wrote:
I have received them.... thank you for these.
--
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/khnxgnG9Awg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Rich you wont believe this....
--
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/khnxgnG9Awg/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/CADuUTAoz8bY-8FGv3E9eL69aGTA0ZvZvgaDMnbP5J0_iRTEFFQ%40mail.gmail.com.
Can you give me a example of the exact format %ctstart and %ctend are converted into?
--
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/khnxgnG9Awg/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/CADuUTAoFO0XZOTHrbr8sWs2Mu63V0rMkmbONv8OFV5y4VMPUhA%40mail.gmail.com.
Ok, I will see what I can come up with. It might take a little time.
--
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/khnxgnG9Awg/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/CADuUTApv2s3QX-jacfYHy6MtY7YR8r6BTTu%2Bs9dbtXtHWehTtg%40mail.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/khnxgnG9Awg/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/CADuUTApGK%3DcQPxr1Q__%3DfJ9GHAR6XTzm8Bcs60peXyxh%3DiS0Og%40mail.gmail.com.
It's called "Events Notifier Calendar"
https://play.google.com/store/apps/details?id=com.ryosoftware.calendareventsnotifier
--
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/khnxgnG9Awg/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/ffaa2490-9f98-4a76-8348-6846baa939d5%40googlegroups.com.
Here is a description of how it works. If you do not understand any part please ask more questions. Understanding how it works will allow you to better customize the project.
Time From Now Till X (861)<This task will return the time or day difference from the current time to the target time in the future.Run this with a preform task action and set %par1 = unix time in seconds of the target time.>A1: AnchorA2: Variable Set [ Name:%time To:%par1 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3 ]<Get difference in days>A3: AnchorA4: Variable Convert [ Name:%time Function:Seconds to Long Date Time Store Result In: Mode:Default ]