[Q] Add Days to Date to obtain other Date - Zooper Widget General

Is it possible in Zooper Widget Add days to Date to obtain one other date?
If I set a Text in this way:
#DyMMdd#
today I see 20140112
If I write:
$(#DyMMdd#+10)$ I see 20140122
If I write:
$(#DyMMdd#+20)$ I see 20140132
This is a wrong Date; whitch is the correct syntax to add days to Date and obtain a correct date?

HyperAbarth said:
Is it possible in Zooper Widget Add days to Date to obtain one other date?
If I set a Text in this way:
#DyMMdd#
today I see 20140112
If I write:
$(#DyMMdd#+10)$ I see 20140122
If I write:
$(#DyMMdd#+20)$ I see 20140132
This is a wrong Date; whitch is the correct syntax to add days to Date and obtain a correct date?
Click to expand...
Click to collapse
Currently. no. But if I remember it correctly there was something like that announced for the next release of Zooper. Probably have to wait till then

kwerdenker said:
Currently. no. But if I remember it correctly there was something like that announced for the next release of Zooper. Probably have to wait till then
Click to expand...
Click to collapse
I downloaded Zooper Pro a long time ago and only used it at its most basic. Now that I am trying to dig a bit deeper, I've come to learn Zooper appears to be dead with respect to future improvements. Did this improvement adding to a Date to result in a new date ever happen? Did anyone determine a way to do this? I would like to do some conditional Ifs to determine if I want today's weather, tomorrow's weather or the next day based on the current time of day. The only way I can see doing this is with a way to do a "DateAdd" for lack of a better word. Is it possible yet?
Thanks!

I think
$(#D+28800yMMdd#)$
Where 28800= 20days * 24 hours * 60 min

Related

[app] iAgenda 0.495 (Update May 26, 2010) Finger-friendly Calendar and Tasks

Project stopped (temporarily?)
Because my phone broke, I decided to get an Android phone, and am not sure if/when I'll continue this project. (see post 130). Sorry
Previously at http://forum.xda-developers.com/showthread.php?t=515903 Since the original developer seems to have abandoned this project, I'm starting a new thread and continuing the development.
Main webpage: http://sites.google.com/site/iappsdevteam/Home/applications/iagenda
As per request, I'll upload new versions as they are developed, even if only minor. That also means, there is an increased risk of system crashes.
Download: Below and https://sites.google.com/site/iappsdevteam/Home/applications/iagenda
Version 0.494 May 26, 2010
Part of the edit screen is working.
Version 0.49 April 14, 2010
Added weekday to group headers
New default skin by Livven
Option in Settings to choose start screen
Added enable checkbox to Settings for those who have issues with the checkboxes crashing
Tried another bugfix for the checkbox (please let me know if it works)
Earlier versions
Bugfix (I hope) for allday appointments showing on two days(edit 4/19/10: still not working quite right).
Reintroduced sorting of tasks
Reintroduced timefilter for appointments (be aware though that if you have a lot of recurring appointments, setting the filter to 1 year, could take quite a time to load - Please give me feedback.
Tasks with a start date before today will show in Agenda view
Recurring appointments will show for the next 31 days (yearly recurring will show next 365 days)
Multiday appointments will show on all days in the appointment screen
Categories are shown on the edit screen
Even with large number of repeating appointments, the list should refresh relatively fast.
Tasks completed today will show with a check.
Program is no longer using caches for data, which means that every time it's opened, current data is used.
Recurring appointments: Will show yearly recurring appointments for the following year with the number of recurrences (mainly to see age for birthdays), and other recurring appointment for the next month.
It's now possible to mark items complete on the main lists.
Improved filtering and sorting
Bottom bar for calendar shows current date
Version 0.4: http://forum.xda-developers.com/showpost.php?p=3789949&postcount=1 or http://sites.google.com/site/iappsdevteam/Home/applications/iagenda
Overview of iAgenda:
iAgenda is a finger-friendly appointments and tasks viewer for Windows Mobile PocketPC phones (all resolutions). It's easily skinnable, intuitive, and can be used instead of the standard Windows Mobile Pocket Outlook Calendar.
It is based on iContact (supbro version) source code, available here:
http://supware.net/iContact
iContact is used as a "scrollable framework" for applications that have the same look and feel. Program is written in C++.
iAgenda has the usual 5 buttons interface:
all appointments
all tasks
agenda view (today's appointments and tasks)
settings
search calendar
iAgenda can be localized. The default is "english.lng", which can be used as a base for translations. Other languages:
Czech (it's a little unclear if this works, one person says no, so please let me know)
Dutch
French
German
Greek
Hungarian
Italian
Norwegian
Romanian it's a little unclear if any of these two files for Romanian works.
Romanian_diacritics
Russian
Spanish
Language files be found here http://sites.google.com/site/iappsdevteam/Home/applications/iagenda/languages. If you have other language translations, you can submit them in this thread and I'll add them to the web page.
The source code is available through Svn at GoogleCode:
http://code.google.com/p/iagenda/
Skins can be found here: http://sites.google.com/site/iappsdevteam/Home/applications/iagenda/skins. See below for an example.
Current plans:
Option to reverse direction of slide.
Improve the settings integration.
Finger friendly edit screen.
Other todo items can be found here: http://sites.google.com/site/iappsdevteam/Home/todo-s/iagenda.
Keep the suggestions coming.
http://sites.google.com/site/iappsdevteam/Home/applications/iagenda
Wow, great! I'll definitely follow the development of this .
I'm just working on some skins for iContact and iAgenda too! If you need some graphics just tell me, I'm willing to help.
exciting.
I will be following your progress. good luck... ...and may the force be with you- always.
Nice one. Will follow this development. Thanks for the effort.
Does this work on a qvga device? if not can you please release a qvga version?
It works on all resolutions.
Graphics help anyone?
I'm working on the code for being able to complete tasks on the main pages. In order to have it look nice, the icon for favorites (a star in the default theme), needs to be replaced with checkboxes (empty and checked). I did something preliminary, but it looks pretty bad.
So if someone wants to help that would be great. I've attached the default skin file.
If possible, it would be great if they would be transparent.
Also everyone skinning, should be aware of this, so they make the proper icons in the skin file.
Additionally, the settings icon is the same as for iContact. Anyone want to help me there? File attached.
A preview of the default.png is attached, but it's automatically compressed so I attached a ZIP as well. Is the blue okay or do you want it in green?
I did not make new icons, perhaps later.
Livven said:
A preview of the default.png is attached, but it's automatically compressed so I attached a ZIP as well. Is the blue okay or do you want it in green?
I did not make new icons, perhaps later.
Click to expand...
Click to collapse
Thank you, it looks great! I'm not much for green, so blue or red is fine with me.
Livven said:
It works on all resolutions.
Click to expand...
Click to collapse
Thanks for the info.
Here is the greek language for 0.4 version.
P.S
Where is the link for update Jan. 20, 2010 download?
In given links there is only 16 May 2009 version
dancer_69 said:
Here is the greek language for 0.4 version.
P.S
Where is the link for update Jan. 20, 2010 download?
In given links there is only 16 May 2009 version
Click to expand...
Click to collapse
Thanks for the translation! I'll put it on the web page.
If you read the first post, it only says I've started working on it, there is no new version yet. I thought I might have a version out before the weekend, but realized a bug had been introduced in a revision I wasn't aware of until now, so it might take a little longer to get rid of it.
Otherwise the code for checking off items on the main page is partially ready.
However, I have a question: The list is filtered so that only incomplete items are shown, so when a task is checked complete, it immediately disappears from the list. Until I change the filtering code, would it be acceptable to have a message box (like currently) when you are asked to confirm completing? Or should I just wait with the release until I rewrite the filtering code, so that completed items will be seen on the list with a checkmark?
Awesome! Anyone know how to make this the default calendar application?
Izrun said:
Awesome!
Click to expand...
Click to collapse
Thanks!
Anyone know how to make this the default calendar application?
Click to expand...
Click to collapse
See the iAgenda FAQ web page
https://sites.google.com/site/iappsdevteam/Home/faq/iagenda-faqs
I am looking forward to see a HTC Style Agenda app~~
ajige said:
Until I change the filtering code, would it be acceptable to have a message box (like currently) when you are asked to confirm completing? Or should I just wait with the release until I rewrite the filtering code, so that completed items will be seen on the list with a checkmark?
Click to expand...
Click to collapse
I was just going to ask you to include exactly that . Anyway, I'd prefer if you release every minor version like nightlys (or weeklys or monthlys ), but only if that doesn't make too much work for you.
Livven said:
I was just going to ask you to include exactly that . Anyway, I'd prefer if you release every minor version like nightlys (or weeklys or monthlys ), but only if that doesn't make too much work for you.
Click to expand...
Click to collapse
Ok, I'll do that, but prepared for bugs!
New version uploaded.
I have a problem with the previous an this new version too(I haven't use the program before) that makes quite difficult to use the program.
If I change the date from month screen to any other date exept the current, every single action takes at least a minute to complete, starting from taping on a date.
This behaviur stops only if I switch again to the current date.
Is this issue mentioned before?
dancer_69 said:
I have a problem with the previous an this new version too(I haven't use the program before) that makes quite difficult to use the program.
If I change the date from month screen to any other date exept the current, every single action takes at least a minute to complete, starting from taping on a date.
This behaviur stops only if I switch again to the current date.
Is this issue mentioned before?
Click to expand...
Click to collapse
If you have a really big file with lots of recurring appointments and tasks, that can happen.
And that's why I'm working on accessing the pim.vol file directly which should speed things up.
In the meantime you can go to the settings program, under Show Next: 1 week, 2 weeks etc. Try and shorten the time and see if that helps. Please report back.
No, I haven't any task or appointment. Only calendar events for name days. I have Show Next:1 week, but the problem still remains.

[Q] Monthly Calendar

I'm trying to make my own monthly Calendar in Zooper, but i have a big problem. When i say, in advanced parameters, to calculate the day of the week with this string: #D$(#DyMM#010000)$f# i obtain 0 if it's sunday, 1 if it's monday and so on. The problem is that i need to obtain 7 if it's sunday, becaus in italian format week start on monday and finish on sunday.
I can't check it in this way: $#D$(#DyMM#010000)$f#=0?7$ because zooper doesn't recognize nested $...
I think the only way is to change the $(expression)$ for math expressions using another char (maybe § or similar).
Any suggest?
N3V3RM1ND said:
I'm trying to make my own monthly Calendar in Zooper, but i have a big problem. When i say, in advanced parameters, to calculate the day of the week with this string: #D$(#DyMM#010000)$f# i obtain 0 if it's sunday, 1 if it's monday and so on. The problem is that i need to obtain 7 if it's sunday, becaus in italian format week start on monday and finish on sunday.
I can't check it in this way: $#D$(#DyMM#010000)$f#=0?7$ because zooper doesn't recognize nested $...
I think the only way is to change the $(expression)$ for math expressions using another char (maybe § or similar).
Any suggest?
Click to expand...
Click to collapse
Is your system locale set to italian or are you using it another language (like english for example)? If the later, did you try setting the widget locale to italian?
kwerdenker said:
Is your system locale set to italian or are you using it another language (like english for example)? If the later, did you try setting the widget locale to italian?
Click to expand...
Click to collapse
It's italian.
N3V3RM1ND said:
It's italian.
Click to expand...
Click to collapse
Then it's probably a bug with Zooper. You should get in touch with the developer to clear it up.
kwerdenker said:
Then it's probably a bug with Zooper. You should get in touch with the developer to clear it up.
Click to expand...
Click to collapse
I'll wait for Richard's reply, if anyone have suggestions...
kwerdenker said:
Is your system locale set to italian or are you using it another language (like english for example)? If the later, did you try setting the widget locale to italian?
Click to expand...
Click to collapse
Hey can you provide full tutorial for make monthly calendar in zooper? Thanx:good:
N3V3RM1ND said:
I'm trying to make my own monthly Calendar in Zooper, but i have a big problem. When i say, in advanced parameters, to calculate the day of the week with this string: #D$(#DyMM#010000)$f# i obtain 0 if it's sunday, 1 if it's monday and so on. The problem is that i need to obtain 7 if it's sunday, becaus in italian format week start on monday and finish on sunday.
I can't check it in this way: $#D$(#DyMM#010000)$f#=0?7$ because zooper doesn't recognize nested $...
I think the only way is to change the $(expression)$ for math expressions using another char (maybe § or similar).
Any suggest?
Click to expand...
Click to collapse
Sorry; but I don't understand where is the problem...
(I'm Italian)
Why is it important for you have 7 on sunday instead 0?
Could you explain why for you this is important?
HyperAbarth said:
Sorry; but I don't understand where is the problem...
(I'm Italian)
Why is it important for you have 7 on sunday instead 0?
Could you explain why for you this is important?
Click to expand...
Click to collapse
Because the whole calendar is out of layout. I have the 7th day after saturday... i can't do a screenshot now, 'cause i removed the widget... if you nedd one i can reinstall it.
I'm having the same problem. Using the code [ox]44*#D$(#DyMM#050000)$f#-30[/ox]
[oy]22*#D$(#DyMM#050000)$W#[/oy]
Zooper automatically put the number in the correct position in a grid, but this cause many problem with Sunday.
I was wondering if there's a way to change 0 to 7 using advanced code, but no success til now...
Inviato dal mio Nexus 5 utilizzando Tapatalk
Please make a tutorial video
Sent from my SPH-L710 using xda app-developers app
I added days to shift Sundays to end and used % operator to move the remaining days. Now Sundays have to be moved to previous week as well, which required a different technique to compute y offset. Lastly hide 29, 30, 31st if they aren't valid for current month.
Example for day 31 is
[ox]12+23* ((#D$(#DyMM#310000)$f# +5)%7)[/ox]
[oy]2+19*(floor( (#D$(#DyMM#010000)$f#-3+31)/7)+1)[/oy]
[c]$#Dl#<31?#00000000$[/c]
Complete widget is also attached.
Thanks button click?
For those who want to understand code:
12 is x margin, 23 is column width, every day is shifted by 5 so Sunday(1) becomes 6 and week days range between 0 and 6
2 is y margin, 19 is row height, add the day number(31) to the location of 1st day of month and divide by 7 to get week number. floor to discard fraction part. 3 is subtracted to cater for certain changes like 1-7 range change to 0-6 range, Sunday shift etc. first week is 0, 1 is added to all weeks to have week range 1-5 , instead of 0-4
Yesterday I downloaded the template and "installed" on my Smartphone (just for test) but I had a problem.
In your attached image I see a correct Montly Calendar but if I create a Widget using your Template I obtain a Montly Calendar but there is a problem:
(unfortunately I can't post one image because I've already deleted widget and template from my smartphone)
I've same header (Mo, tu, we, etc)
But all the days of the month are "shifted" !?!?! for example 18th isn't under "Sa" Column but is under "Fr" Column ... 19th isn't under "Su" Column but is under "Sa" Column ... etc.
The same error for all days.
I didn't have investigated about the reason of this mistake because I don't need this Widget; I've made only a test ...
HyperAbarth said:
Yesterday I downloaded the template and "installed" on my Smartphone (just for test) but I had a problem.
In your attached image I see a correct Montly Calendar but if I create a Widget using your Template I obtain a Montly Calendar but there is a problem:
(unfortunately I can't post one image because I've already deleted widget and template from my smartphone)
I've same header (Mo, tu, we, etc)
But all the days of the month are "shifted" !?!?! for example 18th isn't under "Sa" Column but is under "Fr" Column ... 19th isn't under "Su" Column but is under "Sa" Column ... etc.
The same error for all days.
I didn't have investigated about the reason of this mistake because I don't need this Widget; I've made only a test ...
Click to expand...
Click to collapse
That is a know bug. It's because the "day of the week (number)" tag #Df# produces different numbers based on the locale of the device it's used on. Sometimes Sunday is 0, sometimes it's 7 for example.
The developer is aware of it but has not yet provided a solution.
On my Smartphone #Df# for Sunday return 0 (in some widget I make tests on 0 or 6 to color Saturday and Sunday).
You speak about " the locale of the device" to set 0 or 7; where can I set this "locale"?
I'm Italian and I set Language, time, date format, etc. for Italy ... but in Zooper Sunday is 0.
HyperAbarth said:
On my Smartphone #Df# for Sunday return 0 (in some widget I make tests on 0 or 6 to color Saturday and Sunday).
You speak about " the locale of the device" to set 0 or 7; where can I set this "locale"?
I'm Italian and I set Language, time, date format, etc. for Italy ... but in Zooper Sunday is 0.
Click to expand...
Click to collapse
Locale is the language option set for the device. I have mine set to English (US) and for me sunday is 1. If I set it to German it's 0. So maybe I got the 7 wrong and it was 0 and 1 but I'm sure I also read something about a 7... I have to check up on that.
Either way: there is no constant way of determining the value of #Df# and that is why calendar templates based on this method are screwed up on some devices.
Know if upcoming updates will correct this bug?
Enviado desde mi LG-P700 mediante Tapatalk
joseelche said:
Know if upcoming updates will correct this bug?
Enviado desde mi LG-P700 mediante Tapatalk
Click to expand...
Click to collapse
No, the developer has not yet announced anything specific about this.
It also has to be said that this isn't a bug strictly speaking. Different cultures have different ideas when a week "starts". In europe it's mainly on monday while in north america sunday is the first day of a new week. So the different output of #Df# is actually correct. It just produced unexpected behavior when used for something like this monthly calendar.
Normal Calender
qaiser said:
I added days to shift Sundays to end and used % operator to move the remaining days. Now Sundays have to be moved to previous week as well, which required a different technique to compute y offset. Lastly hide 29, 30, 31st if they aren't valid for current month.
Example for day 31 is
[ox]12+23* ((#D$(#DyMM#310000)$f# +5)%7)[/ox]
[oy]2+19*(floor( (#D$(#DyMM#010000)$f#-3+31)/7)+1)[/oy]
[c]$#Dl#<31?#00000000$[/c]
Complete widget is also attached.
Thanks button click?
For those who want to understand code:
12 is x margin, 23 is column width, every day is shifted by 5 so Sunday(1) becomes 6 and week days range between 0 and 6
2 is y margin, 19 is row height, add the day number(31) to the location of 1st day of month and divide by 7 to get week number. floor to discard fraction part. 3 is subtracted to cater for certain changes like 1-7 range change to 0-6 range, Sunday shift etc. first week is 0, 1 is added to all weeks to have week range 1-5 , instead of 0-4
Click to expand...
Click to collapse
Alright so you got the calender to work for Monday throught Sunday, How would the advanced parameters look for a calender Sunday throught Saturday. I can't seem to adjust your calender to work that way. I also could not figure out the X and Y margins. Nothing shifted correctly everytime I tried to change the X and Y for a larger widget. Thanks
Can yor macke .zw fail pls.
I've imported this widget, but there's a problem: in months where the first (of jan, of feb,of mar...) is on Sunday = the last day in week, it is shown in the same row with day names (you can see it in SS).
Does anybody know how to solve it?

[Q] Highlight Today's Events in Calendar

Is there a way to highlight today's events in a different color font using the Zooper Themer Widget? I know this can be done using the integrated Zooper Calendar Widget (old Simple Calendar Widget) but I like the flexibility afforded by the Themer version. Perhaps using conditionals to test if an event occurs today?
thunderboy19 said:
Is there a way to highlight today's events in a different color font using the Zooper Themer Widget? I know this can be done using the integrated Zooper Calendar Widget (old Simple Calendar Widget) but I like the flexibility afforded by the Themer version. Perhaps using conditionals to test if an event occurs today?
Click to expand...
Click to collapse
bump!
Hi.
I use this code under Advanced Parameters to highlight (bright yellow) today events:
[c]$#C0SD#=#SDATED#?#ffffff00#$[/c]
if you have several lines in your calendar showing next events you have to change the number 0 in C0SD to the apropiate one (0=first event, 1=second event and so on)
@cierzo I tried what you suggested, but that's just not working. So by trial and error, I got this, and its working. It highlights the "Today Events" in white otherwise they're left gray (default color, in my case)
[c]$#C0SEEEE#=#DEEEE#?#ffffffff$[/c]
@thunderboy19 hope this helps.
Was thinking of the same issue yesterday, until I found your post.
sent from my BatPhone.
According to this page
w w w .zooper.org/wp/android/zw/variables-reference[/url]
(sorry, can't post links so, please, remove spaces to get there)
#DEEEE# stores the name of the day in long format so I think that your code will highlight any future event at the same weekday than today.
Don't know where I found the code that I posted but definetly is not correct thought worked for me.
Try this one instead:
[c]$#C0SyD#=#DyD#?#ffffffff$[/c]
"y" stands for year and "D" stands for day of year.
This should work fine
@cierzo my parameter is working just fine actually.
sent from my BatPhone.
karanrajkapur said:
@cierzo my parameter is working just fine actually.
sent from my BatPhone.
Click to expand...
Click to collapse
Try creating your next event (must be the first one as you are using C0S, can be in second, third,... using C1S, C2S...) on next friday, please.
cierzo said:
Try creating your next event (must be the first one as you are using C0S, can be in second, third,... using C1S, C2S...) on next friday, please.
Click to expand...
Click to collapse
@cierzo Well I have fb sync enabled, so I just changed the system date to 11th (as you might see in the screenshot) & it's just working fine. And its not that I'm arguing our trying to challenge your skill set, it's just what I came across over my usage experience. I may or may not be correct, but I'd learn by making corrections whenever this'd give any issues. No offence. Peace.
sent from my BatPhone.
No offence, dont' worry.
FIY I just tested your code and it's working as I said before: it highlights future events.
Anyway it's a fantasting widget with lots of possibilities.
I'll keep reading.
Cheers.
cierzo said:
No offence, dont' worry.
FIY I just tested your code and it's working as I said before: it highlights future events.
Anyway it's a fantasting widget with lots of possibilities.
I'll keep reading.
Cheers.
Click to expand...
Click to collapse
I suppose you're not changing the parameter values for the succeeding events. Like
C0SEEE for 1st,
C1SEEE for 2nd and,
C2SEEE for 3rd.
Cz all the events would be highlighted if you'd have set "C0SEEE" in all the lines. Hope you understood.
>>XPERIA Neo V<<
karanrajkapur said:
I suppose you're not changing the parameter values for the succeeding events. Like
C0SEEE for 1st,
C1SEEE for 2nd and,
C2SEEE for 3rd.
Cz all the events would be highlighted if you'd have set "C0SEEE" in all the lines. Hope you understood.
>>XPERIA Neo V<<
Click to expand...
Click to collapse
Let me explain:
Today is Saturday, April 5th
Imagine you have three events shown in your calendar and those events are today, next monday and next saturday
The #DEEEE# variable stores today's value: Saturday
#C0SEEE# stores 1st event day: Saturday. As #C0SEEE# = #DEEEE# ==> Highlighted
#C1SEEE# stores 2st event day: Monday. As #C1SEEE# != #DEEEE# ==> Normal
#C2SEEE# stores 3st event day: Saturday. As #C2SEEE# = #DEEEE# ==> Highlighted
(!= stands for not equal)
If you use other date values:
#DyD# stores 201495 (year 2014, 95th day of the year)
#C0SyD# stores 201495
#C1SyD# stores 201497
#C2SyD# stores 2014102
As you can see, only the first event value is equal to today's value.
@cierzo Now I got exactly what you meant.
Apologies.
Thanks bro.
>>XPERIA Neo V<<
I just came across this post and was hoping someone could fill me in. If my first event occurs today, then all the events are highlighted. Please let me know what I did wrong.
For the rich text I did edit text manually:
Code:
[tr=0,40][b ]#C0TITLE#[/b][/tr]
[c=#ffcccccc][tr=55][sr=0.7]#C0SMMM d HH:mm# - #C0EHH:mm# #C0LOC#[/sr][/tr][/c]
[tr=0,40][b ]#C1TITLE#[/b][/tr]
[c=#ffcccccc][tr=55][sr=0.7]#C1SMMM d HH:mm# - #C1EHH:mm# #C1LOC#[/sr][/tr][/c]
[tr=0,40][b ]#C2TITLE#[/b][/tr]
[c=#ffcccccc][tr=55][sr=0.7]#C2SMMM d HH:mm# - #C2EHH:mm# #C2LOC#[/sr][/tr][/c]
With advanced parameters:
Code:
$#C0SyD#=#DyD#?[c]#ffb8860b[/c]$
$#C1SyD#=#DyD#?[c]#ffb8860b[/c]$
$#C2SyD#=#DyD#?[c]#ffb8860b[/c]$

Next Alarm on two lines

I'm trying to configure a widget with zooper.
I need to split the result of #SALARM# on two lines.
I want the same information but divided:
line1: day
line2: time
For example if #SALARM# return "fri 07:05" i want "fri" on one line and "07:05" on the second one.
My problem is that if I try to use #SADE# or #SADEEEE# I have as result "ERR".
If I use #SADF#, correctly zooper return 5, because Friday is the 5th day in the week... but then I'm not able to transform in "fri".
Right now I'm in a deadlock situation and I'm looking for help.
If you have some ideas... please...
Thank you
Alarm free date is listed as beta so perhaps it doesn't fully support your phone at the moment. You say you can get a numerical day returned which is correct? In that case how about using $#SADF#=4?THU$$#SADF#=5?FRI$ etc to display the text you need for each day?
Torgadden said:
Alarm free date is listed as beta so perhaps it doesn't fully support your phone at the moment. You say you can get a numerical day returned which is correct? In that case how about using $#SADF#=4?THU$$#SADF#=5?FRI$ etc to display the text you need for each day?
Click to expand...
Click to collapse
It's a good idea! Unlucky it seems that SADF is not reliable... today the result od SADF is... 4 and it is Monday!
But it's really a godd idea!
Ok, in that case, do you use tasker? There is a plugin available called Auto Alarm. You could use that to provide you with the relevant alarm details.

[Q] Possible to count events between now and x?

I'm trying to design a homescreen that's fairly compact and functional. Rather than displaying the actual events that will be occuring, I want to try and get my widget to tell me how many events are occuring today and tomorrow ie:
x events today, y events tomorrow.
However, I can't seem to find any method of possibly achieving this. Is it possible to get Zooper to count events between now and say, midnight?
I've searched around and i couldn't find anything (or I'm just bad at searching). Any help would be much appreciated!
brownenvelope said:
I'm trying to design a homescreen that's fairly compact and functional. Rather than displaying the actual events that will be occuring, I want to try and get my widget to tell me how many events are occuring today and tomorrow ie:
x events today, y events tomorrow.
However, I can't seem to find any method of possibly achieving this. Is it possible to get Zooper to count events between now and say, midnight?
I've searched around and i couldn't find anything (or I'm just bad at searching). Any help would be much appreciated!
Click to expand...
Click to collapse
As far as the exact syntax, I'd have to think on/test it, but logic-wise I might have a solution and from it you can hack through the syntax to make it work.
Firstly, Zooper can't count or support arrays or loops, etc. So, you'd have to find a way to get each event to equal a "(1)" and then add them all together.
The easiest way to do this would be with Tasker and then send over a single variable to Zooper, but Tasker's native Calendar app integration is somewhat hit or miss depending on device and Android version, etc.
So, how can we do this in Zooper? Well as I was typing this I tried testing a few different way and realized each time you perform a mathematical operation in Zooper the result is a display result and not a new number you can then add or subtract from something else.
Maybe someone has a solution though. Would be interested to see how it can be done without Tasker.
It seems the following would work for counting today's remaining events. All-day events may mess it up. The basic idea is to test if event n is today and event n+1 is not today. It would look like this
...
$#CnSyyyyMMdd#<=#DyyyyMMdd#&&#Cn+1SyyyyMMdd#>#DyyyyMMdd#?n+1$
...
Or,
$#C0SyyyyMMdd#>#DyyyyMMdd#?0$
$#C0SyyyyMMdd#<=#DyyyyMMdd#&&#C1SyyyyMMdd#>#DyyyyMMdd#?1$
$#C1SyyyyMMdd#<=#DyyyyMMdd#&&#C2SyyyyMMdd#>#DyyyyMMdd#?2$
$#C2SyyyyMMdd#<=#DyyyyMMdd#&&#C3SyyyyMMdd#>#DyyyyMMdd#?3$
$#C3SyyyyMMdd#<=#DyyyyMMdd#&&#C4SyyyyMMdd#>#DyyyyMMdd#?4$
$#C4SyyyyMMdd#<=#DyyyyMMdd#?5+$
You can expand it up if you want, but all this has to be on one line. You can probably shorten it with yy instead of yyyy. Now as far as tomorrow's events, good luck.
Wrong thread
Mokum020 said:
I came up with a similar solution for todays events as ewcrider (also should be one line in Zooper):
$#C0SddMMyy#=#DddMMyy#&&#C1SddMMyy#!=#DddMMyy#?1$ $#C1SddMMyy#=#DddMMyy#&&#C2SddMMyy#!=#DddMMyy#?2$
$#C2SddMMyy#=#DddMMyy#&&#C3SddMMyy#!=#DddMMyy#?3$
$#C3SddMMyy#=#DddMMyy#&&#C4SddMMyy#!=#DddMMyy#?4$
$#C4SddMMyy#=#DddMMyy#&&#C5SddMMyy#!=#DddMMyy#?5$
The difficulty is that the event number order changes so that the first upcoming event will always be C0, second C1 etc.
So for instance if you create the first event tomorrow it will be C0 but if you then create a event for today this will become C0 and the event for tomorrow will become C1.
Click to expand...
Click to collapse
This solution worked for me, as a simple cut and paste. Very crafty!!
Wrong thread
Mokum020 said:
Wrong thread
Click to expand...
Click to collapse
Why does every thread you posted in say "wrong thread" now?

Categories

Resources