Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Lean Mean Battery Power Saving App Review

We talk a lot about battery topics here at XDA TV. We talk about everything from Power Banks to USB … more

Android 5.1 Possibly Coming February 2015

Google released Android 5.0 just over a month ago, and since then Lollipop has been trying to … more

Double Tap to Wake on the Nexus 6 Without Root

A few weeks ago, we featured an app which allowed the Nexus 6 to regain the double tap to wake … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Calendar code questions - calendar event lookahead time

OP Eldmor

17th April 2014, 03:29 PM   |  #1  
Eldmor's Avatar
OP Member
Flag Espoo, Finland
Thanks Meter: 7
 
33 posts
Join Date:Joined: Jan 2013
More
My current calendar code is the following:
Code:
#C0SEEE#: $#C0D#=1?All Day:#C0SHH.mm#$ | [tr=17]#C0TITLE#[/tr]
Is there a way to set calendar event lookahead time for seven days? I mean that if the next event is within the next 7 days, show it. If not, don't show it.

Also another question. Is it possible to show the event date if the event is not today and hide the date if event is today?
18th April 2014, 03:02 PM   |  #2  
Senior Member
Thanks Meter: 32
 
274 posts
Join Date:Joined: Oct 2010
More
This can be done with Tasker. If you want, i can upload the profile that i use on my tab
19th April 2014, 11:28 AM   |  #3  
Eldmor's Avatar
OP Member
Flag Espoo, Finland
Thanks Meter: 7
 
33 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by drsood

This can be done with Tasker. If you want, i can upload the profile that i use on my tab

Sure, that would be nice. Can't it be done without Tasker?
19th April 2014, 10:24 PM   |  #4  
Junior Member
Thanks Meter: 5
 
8 posts
Join Date:Joined: Sep 2007
If you write this code in Advanded Parameters

[c]$#C0STd#>7?#00000000$[/c]

text will be hided if it is more than seven days from now
Last edited by cierzo; 19th April 2014 at 10:50 PM.
The Following User Says Thank You to cierzo For This Useful Post: [ View ]
20th April 2014, 04:36 PM   |  #5  
Eldmor's Avatar
OP Member
Flag Espoo, Finland
Thanks Meter: 7
 
33 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by cierzo

If you write this code in Advanded Parameters

[c]$#C0STd#>7?#00000000$[/c]

text will be hided if it is more than seven days from now

Thank you really much! I'll try that
The Following User Says Thank You to Eldmor For This Useful Post: [ View ]
20th April 2014, 04:55 PM   |  #6  
Senior Member
Thanks Meter: 32
 
274 posts
Join Date:Joined: Oct 2010
More
Tasker profile
Quote:
Originally Posted by Eldmor

Sure, that would be nice. Can't it be done without Tasker?

Sorry for replying late. Was busy

Anyways, please find attached the profile I use.

A few things to note:
1) %caldays variable is set to value 0:6 currently. And that will show calendar entries for next 7 days. Change it to 0:13, for example, if you want to show the entries for next 14 days. Customize as per your need
2) In line 6, you can set the zooper variable as per your need. One very important thing here is that you need to add " " next to %lup otherwise it wont work as expected
3) Create a Zooper richtext widget, click "edit text manually" and set it to
$#Tcalx#$
4)Dont set the tasker profile to update at 12:00 midnight, it doesnt work porperly. Just add a minute or 2 for it to work as expected

I hope its not too confusing. Just give it a shot.

It would be nice if someone can post a better solution
Attached Files
File Type: zip Calendar_Widget_Update.prf.zip - [Click for QR Code] (1.2 KB, 15 views)
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes