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?
Hi,
My situation is that I work in various places each week. I set my schedule in Google Calendar so that if I'm at the same place for 3 days, I will set an all day event, that spans 3 days.
The problem is that the Zooper variable #C0EE# will show Wednesday as the end day instead of Tuesday, for an event that spans Monday-Tuesday, because Google sets the end time at 00:00 on Wednesday instead of 23:59 on Tuesday.
So I need one of 2 things, a way to modify the variable easily to show the day before, or a zooper variable to point at the correct end date.
I really don't want to use a bunch of conditionals to modify the variable depending on the day. i.e. $#C0Ef#=1?Sunday$ $#C0Ef#=2?Monday$
Etc.
As I have 6 events on my agenda as it is.
Thanks.
Sent from my SC-01F using Tapatalk
This is a Google problem. I have created a new post requesting a workaround idea.
This thread may be closed/deleted.
Thanks.
Sent from my SC-01F using Tapatalk
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.
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?
Hi,
I already made some calender widgets and it worked fine so far. Now I want something new, but don't know how to do. Let me explain:
I would like to pick up the first day with calendar event and then list time1 and event1 for day1 followed by time2 and event2 for day1.
Then show next date/day with calender event and then list time1 and event1 for day2 followed by time2 and event2 for day2, then time3 and event3 for day two and so on.
I found no samples for a solution, but maybe one of you has an idea how to do this?
Thanks
Joern
I'm not sure I understand your intent correctly, but it sounds like you're just making a calendar with a list of the upcoming events, is that correct? I have a widget for that. I can't attach the .zw file (and for some reason, can't make a zip - I'll have to look into that), but here's my template: https://dl.dropboxusercontent.com/u/9467385/calendar-tron.zw
The way I have it structured is 6x Rich Text, 3 for event names, 3 for the times. Here's the text I entered for each.
Name #1: #C0TITLE# (that's a zero, not the letter O)
Time #1: #C0SHH:mm#-#C0EHH:mm# (that prints the start and end times)
For the following events, just change the 0 to 1 for the next, then 2 for the next, etc.
Hope this helps.