Link am/pm marker to event calendar time - Zooper Widget General

Hi,
I remember reading once how to link to am/pm marker to a calendar event. So that if you are in the AM and looking at a calendar event in the PM, the calendar event time will display correctly.
I know it is some combination of #C0Sh:mm# and #Da# but for some reason when I write #C0Sh:mm Da# I get "3:00 350PM" and when I type #C0Sh:mm da# I get "3:00 16PM"
I have done this is the past successfully, anyone know the correct format?
Also, is there a way to force the AM/PM markers to lowercase
Any help is much appreciated
Thanks,
Brad

restinbeast said:
Hi,
I remember reading once how to link to am/pm marker to a calendar event. So that if you are in the AM and looking at a calendar event in the PM, the calendar event time will display correctly.
I know it is some combination of #C0Sh:mm# and #Da# but for some reason when I write #C0Sh:mm Da# I get "3:00 350PM" and when I type #C0Sh:mm da# I get "3:00 16PM"
I have done this is the past successfully, anyone know the correct format?
Also, is there a way to force the AM/PM markers to lowercase
Any help is much appreciated
Thanks,
Brad
Click to expand...
Click to collapse
The D is used to identify a date tag and the a is the AM/PM marker. If you want do use it in a calendar event tag, you have to omit the D and use just the a. In your case that would read:
Code:
#C0Sh:mm a#
Now, if you want to force it to small caps, you'll have to use a Rich Text Module with the [tl][/tl](to lowercase) BBCode and split up the tags so it looks like this:
Code:
#C0Sh:mm# [tl]#C0Sa#[/tl]
Hope this helps you out

kwerdenker said:
The D is used to identify a date tag and the a is the AM/PM marker. If you want do use it in a calendar event tag, you have to omit the D and use just the a. In your case that would read:
Code:
#C0Sh:mm a#
Now, if you want to force it to small caps, you'll have to use a Rich Text Module with the [tl][/tl](to lowercase) BBCode and split up the tags so it looks like this:
Code:
#C0Sh:mm# [tl]#C0Sa#[/tl]
Hope this helps you out
Click to expand...
Click to collapse
Many thanks (hit the thanks button)
I need to write this down, second time I had to ask for help on this. Some kind of mental block with it heh.

Related

Calendar color

I'd like to color events for current day. Right now its colors my next event which is days away.
Ideas are appreciated.
admiral70 said:
I'd like to color events for current day. Right now its colors my next event which is days away.
Ideas are appreciated.
Click to expand...
Click to collapse
Use the following code as an advanced parameter on your calendar text field and put in the color you want to use as highlight:
Code:
$#C0SddMM#=#DddMM#?[c]<the_highlight_color_you_want[/c]$
If you display more than one event, you need to use this code on every module and replace C0 with C1, C2, ...
Thank you for the reply. Here is my dilemma, when it still highlights the next event even if it is not the current day. I was hoping to highlight only if the event is in the current day. Hope I am explaining this correctly.
Thank you for replying I appreciate it.
kwerdenker said:
Use the following code as an advanced parameter on your calendar text field and put in the color you want to use as highlight:
Code:
$#C0SddMM#=#DddMM#?[c]<the_highlight_color_you_want[/c]$
If you display more than one event, you need to use this code on every module and replace C0 with C1, C2, ...
Click to expand...
Click to collapse
admiral70 said:
Thank you for the reply. Here is my dilemma, when it still highlights the next event even if it is not the current day. I was hoping to highlight only if the event is in the current day. Hope I am explaining this correctly.
Thank you for replying I appreciate it.
Click to expand...
Click to collapse
This is exactly what the code is doing! It checks if the event dayMonth combo equals to todays dayMonth combo and only if that is true it sets the color of the text to the set highlight color.
Decided to get your calendar from your signature... Thank you
Perhaps that is the issue I need to mimic the advanced entry a little?
kwerdenker said:
Use the following code as an advanced parameter on your calendar text field and put in the color you want to use as highlight:
Code:
$#C0SddMM#=#DddMM#?[c]<the_highlight_color_you_want[/c]$
If you display more than one event, you need to use this code on every module and replace C0 with C1, C2, ...
Click to expand...
Click to collapse
kwerdenker said:
This is exactly what the code is doing! It checks if the event dayMonth combo equals to todays dayMonth combo and only if that is true it sets the color of the text to the set highlight color.
Click to expand...
Click to collapse

[Q] 1) Last (passed) Calendar Event 2) Widget Scroll

Hi all,
I've 2 questions about this fantastic App!:
1) Last (passed) Calendar Event
I've created a widget to display Calendar Events; it works ok but I've a request:
Is it possible to show last passed Event?
E.G. I set one event today from 8:00am to 9:00am
I see this event since 9:00am but after this time I don't see this event
Could Zooper show also this passed event?
If Z.W. couldn't I think this is a interesting thing to implement...
2) Widget (or element) Scroll
I read that Z.W. can't scroll ... but: is t possible to scroll text in RichText field?
This is the case:
In my calendar widget I use 1 RichText for every days to show the events in the day.
I've reserved 3 rows for every day (I "print" 1 event on every row) but if in a day I've more than 3 events I see only the first 3 events and I don't see 4th, 5th etc. events.
If RichText could scroll I will solve this problem
... If anyone know other alternative solution...
HyperAbarth said:
Hi all,
I've 2 questions about this fantastic App!:
1) Last (passed) Calendar Event
I've created a widget to display Calendar Events; it works ok but I've a request:
Is it possible to show last passed Event?
E.G. I set one event today from 8:00am to 9:00am
I see this event since 9:00am but after this time I don't see this event
Could Zooper show also this passed event?
If Z.W. couldn't I think this is a interesting thing to implement...
2) Widget (or element) Scroll
I read that Z.W. can't scroll ... but: is t possible to scroll text in RichText field?
This is the case:
In my calendar widget I use 1 RichText for every days to show the events in the day.
I've reserved 3 rows for every day (I "print" 1 event on every row) but if in a day I've more than 3 events I see only the first 3 events and I don't see 4th, 5th etc. events.
If RichText could scroll I will solve this problem
... If anyone know other alternative solution...
Click to expand...
Click to collapse
1) No, Zooper doesn't currently support access to past events. If you want to request it as a feature I would advise you to use the official channel here: http://zooper.themerapp.com/support/discussions/forums/268861
2) There is a trick to "scroll" things in Zooper by using an offset calculated from the current seconds/minutes but it's rather choppy and a huge battery hog. So it's do-able but not simple and - from my perspective - not really advisable.
Thanks a lot for your reply!
But about "scroll" you spoke about offset related to Time; do you have one example?
In your opinion is it possible "scroll" by clicking on a Button (image) on the widget?
Thanks a lot for your reply!
But about "scroll" you spoke about offset related to Time; do you have one example?
In your opinion is it possible "scroll" by clicking on a Button (image) on the widget?
HyperAbarth said:
Thanks a lot for your reply!
But about "scroll" you spoke about offset related to Time; do you have one example?
In your opinion is it possible "scroll" by clicking on a Button (image) on the widget?
Click to expand...
Click to collapse
I never used the trick myself so I don't have an example at hand but I'll look if I can find one for you.
As to your second question: maybe. You would have to use an external tool like Tasker and while you could use an extension of the timing trick to do a "scrolling animation" I think it would be more advisable to just switch between different module functions. For instance you could toggle your three lines of events between showing events 1-3 and 4-6. If you don't have Tasker I could give you a link to an app I once exported from it. With that you get a toggle action and variable to realize what I just described.
kwerdenker said:
I never used the trick myself so I don't have an example at hand but I'll look if I can find one for you.
As to your second question: maybe. You would have to use an external tool like Tasker and while you could use an extension of the timing trick to do a "scrolling animation" I think it would be more advisable to just switch between different module functions. For instance you could toggle your three lines of events between showing events 1-3 and 4-6. If you don't have Tasker I could give you a link to an app I once exported from it. With that you get a toggle action and variable to realize what I just described.
Click to expand...
Click to collapse
Thaks, you reaaly help me!
Regards.
kwerdenker said:
I never used the trick myself so I don't have an example at hand but I'll look if I can find one for you.
As to your second question: maybe. You would have to use an external tool like Tasker and while you could use an extension of the timing trick to do a "scrolling animation" I think it would be more advisable to just switch between different module functions. For instance you could toggle your three lines of events between showing events 1-3 and 4-6. If you don't have Tasker I could give you a link to an app I once exported from it. With that you get a toggle action and variable to realize what I just described.
Click to expand...
Click to collapse
Thanks a lot!
I've Tasker but if you can give me the link of the app you've exported I can see it and try to understand
HyperAbarth said:
Thanks a lot!
I've Tasker but if you can give me the link of the app you've exported I can see it and try to understand
Click to expand...
Click to collapse
Since you have Tasker, I've exported my task as an XML. You can get it here https://www.dropbox.com/s/bziwrbw4azm04t3/Toggle.tsk.xml to import it on your device.
To use it you have to modify your current event modules in the following way
(You'll obviously have to substitute whatever you use to display your events, this is just meant to show the usage of the variable)
Code:
$#TVIEW#=0?#C0TITLE#:#C3TITLE#$
Then to toggle between them set the Task as a Tasker shortcut via the module or widget OnTap option in Zooper. Now you can switch between different display states with a tap on the widget.
Hope this is clear enough for you to understand. If not, just ask
Error, duplicated post. Sorry
I didn't have time to see your XML file I will download it ASAP; but:
How can I manage dates with Zooper?
Example; can I add Days to a date?
For example if today is the 30th Jan. 2014 can I add for example 3 and obtain 2nd feb. 2014?
I didn't find a way to do this in Zooper
Thanks in Advance.
I try to explain you the reason of this question:
I've for example 3 fields on the widget with 3 dates (today, Tomorrow and Day after Tomorrow)
I want to do this:
If I Tap on a field (e.g. "+") the control pass to Tasker and Tasker add a Day to 3 dates... the result is that the 3 fields with date will change the value
E. G.
1st field 15th gen 2014
2nd field 16th gen 2014
3rd field 17th gen 2014
If I tap on field "+" Tasker change the value of the variables and on the widget I will see:
1st field 16th gen 2014
2nd field 17th gen 2014
3rd field 18th gen 2014
... in this way I will create a scrollable calendar widget ... I didn't try to do this; I hope I will able to do this but my problem is that I explained on my question in the top of this post.
I Hope you understand my english
EDIT:
I find in Zooper how to manage "free date"; e.g. 4st of february 2014 at 01:00 is:
#D201402041000#
Then if I want display this date I can create a text like this:
#D201402041000 c dd-MM-yyyy#
and this is the result:
tue 04-02-2014
Now... With Tasker I can create a variable with this Value:
201402041000
E.G. Var1 = 201402041000
If in Zooper I set a Text with: #TVar1# I see:
201402041000
But if I set a text with: #D#TVar1# c dd-MM-yyyy# I see:
#D#TVar1# c dd-MM-yyyy#
Where is my mistake?
Is it possible in Zooper use a Variable like Date?
I've found my mistake; if I write:
#D$#TVar1#$ c dd-MM-yyyy#
It Work
I've found my mistake; if I write:
#D$#TVar1#$ c dd-MM-yyyy#
It Work

Zooper Coding Question

So while using the Greenly theme I noticed that the top Zooper widget bar has notifications popping up when I get Emails/Calls/Texts which I wasn't expecting to see but this gave me an idea.
Would it be possible to put the date on a widget and then once a notification comes for an email/missed call/text the date disappears and just shows those notifications? I am coding impaired so I wouldn't know if it possible and where to begin if it is.
Thanks!
On a somewhat unrelated note, is it possible to code it so if zooper reads that there is a notification of any sort in the notification bar it throws out a notification image to let you know that there is one there?
jonnyg1097 said:
So while using the Greenly theme I noticed that the top Zooper widget bar has notifications popping up when I get Emails/Calls/Texts which I wasn't expecting to see but this gave me an idea.
Would it be possible to put the date on a widget and then once a notification comes for an email/missed call/text the date disappears and just shows those notifications? I am coding impaired so I wouldn't know if it possible and where to begin if it is.
Thanks!
Click to expand...
Click to collapse
The following code as the content of a Text or Rich Text module should do what you want. I couldn't test it though, so there might be some errors. Please test it and tell me if anything isn't working
Code:
$#SMCALLS#=0 && #SUG#=0 && #SUSMS#=0?#Ddd/MM/YYYY#$$#SMCALLS#!=0?#SMCALLS#$ $#SUG#!=0?#SUG#$ $#SUSMS#!=0?#SUSMS#$
jonnyg1097 said:
On a somewhat unrelated note, is it possible to code it so if zooper reads that there is a notification of any sort in the notification bar it throws out a notification image to let you know that there is one there?
Click to expand...
Click to collapse
In general something like that is possible but Zooper currently only supports calls, mails and text notifications. If you want to extend it to use other apps you have to use Tasker. Here is a really good tutorial how to do that: http://www.jagwar.de/en/show-notification-counts-in-zooper-with-tasker/
kwerdenker said:
The following code as the content of a Text or Rich Text module should do what you want. I couldn't test it though, so there might be some errors. Please test it and tell me if anything isn't working
Code:
$#SMCALLS#=0 && #SUG#=0 && #SUSMS#=0?#Ddd/MM/YYYY#$$#SMCALLS#!=0?#SMCALLS#$ $#SUG#!=0?#SUG#$ $#SUSMS#!=0?#SUSMS#$
In general something like that is possible but Zooper currently only supports calls, mails and text notifications. If you want to extend it to use other apps you have to use Tasker. Here is a really good tutorial how to do that: http://www.jagwar.de/en/show-notification-counts-in-zooper-with-tasker/
Click to expand...
Click to collapse
Thanks for doing the code for me, it didnt work I am getting an "ERR" message which I assume is a error message. I will look into Tasker for that then if Zooper cant do it on its own.
jonnyg1097 said:
Thanks for doing the code for me, it didnt work I am getting an "ERR" message which I assume is a error message. I will look into Tasker for that then if Zooper cant do it on its own.
Click to expand...
Click to collapse
I double checked the code and it was a simple mistake on my part. The code for year is not YYYY but yyyy. Change that and it should work
kwerdenker said:
I double checked the code and it was a simple mistake on my part. The code for year is not YYYY but yyyy. Change that and it should work
Click to expand...
Click to collapse
Cool. That did the trick! Thanks again kwerdenker!

[Q] Tasker to Change Font Color & Size for Missed Calls or New Messages?

I'm trying to use tasker to alter the font for some items. I have a popup widget that has email, gmail, sms, phone,etc. on it that I want to change font color and become bold when I have a missed call or new message. I've set up tasks and profiles for sms, and gmail so they will change color. I cannot seem to get them to become bold though. They are made as Rich Text if that matters. I can't figure out how to write the parameter where the [c][/c] and take effect together. Can somebody tell me how to write the advanced parameter to get this to work?
Also, I can't seem to figure out the code to use for email or phone. I've tried %COUNTEMAIL, %COUNTMSG, %MISSEDCALL but they don't seem to work. This is the tutorial I used for this: https://seo-michael.co.uk/change-text-colour-in-zooper-widget-with-tasker (sorry can't post a link yet). Can I make this work with the Email App and the Phone?
Thanks!
From what I've read you are trying to display a count rather than the actual text/phonecall details? In which case you would be better off using Zooper's built in variables #SMCALLS# for missed calls and so on. To change the colour of the font in rich text format you can use a conditional like this:
[c=$#SMCALLS#>0?#ffff0000:#ff00ff00$]#SMCALLS#[/c]
This will display missed call count in red when you have missed calls and green when you don't.
Then to change to bold for missed calls as well you can wrap the above in a conditional like this:
HTML:
$#SMCALLS#>0?[b]$[c=$#SMCALLS#>0?#ffff0000:#ff00ff00$]#SMCALLS#[/c]$#SMCALLS#>0?[/b]$
Hope this helps.
ps Sorry about the HTML tags but I don't know how to stop it from rendering the bold tags in the code instead of displaying them
Thanks. Are there built in variables for gmail, email, and sms? I'm trying that code but it doesn't seem to do anything on my phone...
Yes there are functions for sms , gmail etc. You can find them under the system heading when you enter your text.
The code I wrote should work fine. Are you entering it in the advanced parameters screen of the manual text edit screen?
I used the manual screen when I wrote it. When you enter it does nothing happen at all? Or only part of what you want?
Torgadden said:
Yes there are functions for sms , gmail etc. You can find them under the system heading when you enter your text.
The code I wrote should work fine. Are you entering it in the advanced parameters screen of the manual text edit screen?
I used the manual screen when I wrote it. When you enter it does nothing happen at all? Or only part of what you want?
Click to expand...
Click to collapse
I'm putting it into the advanced parameters because the manual text area is what is labeling the shortcut I have. It doesn't nothing when I enter it. I've written it, copy and pasted from the site, and still nothing. I can modify it and get the color I want to change but it will not turn bold.
I think that it needs to be written in the text area because the bold tags will need to go round your text in the same way they do if you use the bold function when writing a post here.
Torgadden said:
I think that it needs to be written in the text area because the bold tags will need to go round your text in the same way they do if you use the bold function when writing a post here.
Click to expand...
Click to collapse
Hmm ok. How do I write the paramater and still keep the text I have then? So for example, I have one line that says "gmail". Clicking the word opens gmail and when I have a new email it changes from white to green based on the #COUNTGMAIL task I have in Tasker. How do I write in the code in the manual field to keep the "gmail" and still make it change? I'll be playing with this shortly when I get a chance.
You can mix text in with your functions so if you just want the word Gmail displayed and for that word to change colour and bold when you have unread mail you would lay it out like this:
HTML:
$#SUG#>0?[b]$[c=$#SUG#>0?#ff00ff00:#ffffffff$]Gmail[/c]$#SUG#>0?[/b]$
So going through it one step at a time, the first conditional (between $ $) if unread gmail count is greater than 0 then write the open bold tag.
Then open the colour tag, if unread gmail count is greater than 0 then set font colour to green, otherwise colour is set to white.
Next the text you want to display is written, "Gmail" in this case but you could add other zooper variables or text if you needed.
Close the colour tag.
Finally the last conditional writes the close bold tag in the same way as for the first conditional.
Zooper will then render the text code as you needed it.
Hope this helps
Torgadden said:
You can mix text in with your functions so if you just want the word Gmail displayed and for that word to change colour and bold when you have unread mail you would lay it out like this:
HTML:
$#SUG#>0?[b]$[c=$#SUG#>0?#ff00ff00:#ffffffff$]Gmail[/c]$#SUG#>0?[/b]$
So going through it one step at a time, the first conditional (between $ $) if unread gmail count is greater than 0 then write the open bold tag.
Then open the colour tag, if unread gmail count is greater than 0 then set font colour to green, otherwise colour is set to white.
Next the text you want to display is written, "Gmail" in this case but you could add other zooper variables or text if you needed.
Close the colour tag.
Finally the last conditional writes the close bold tag in the same way as for the first conditional.
Zooper will then render the text code as you needed it.
Hope this helps
Click to expand...
Click to collapse
Thank you. That code works perfectly. If only I could get the zooper widget to update quicker.
So my next question is, do you have the parameter code for regular email? I know the #SUG# is gmail but I don't have the code for email, or phone, or sms. I think those are the only ones I need to do this. Although I would like to have the "music" line change color when poweramp is running....
If you go to edit text you will see the list of available fields. SMS counts, etc are under system. Looking at them I could have sworn that there was a regular email count but I can't see it now, you should be able to capture that in Tasked and pass it to zooper as a variable though.
As for the media, use Media Utilities to get the player state. It gives you a whole set of variables which will let you work with media states in Zooper

How to force line break?

I am trying a new weather widget that provides weather conditions in text form. Occasionally the text it too long to fit on one line so I need to be able to force a line break in the incoming text. How do I do that?
Thanks in advance.
DerrikMo
Wrong thread
Mokum020 said:
How about something like this in a Rich Text module:
Code:
[tr=0,4]#WCCOND#[/tr]
[tr=4,20]#WCCOND# [/tr]
I don't know at wich letter you want the line break so my example is after the fourth letter.
On the first line the first four letters will be shown and on the second line (cropped) from the fifth to the twentieth letter.
You need some empty spaces (and calculate them yourself as after which letter you want the line break) in the second line because otherwise Zooper will show the text if it becomes the same or smaller as the crop start point.
Click to expand...
Click to collapse
Very crafty. And yes line breaks seem only to be avaialable in Rich Text, and to truncate/substring is good to shorten a line (and sometimes it adds the dots "...") but, both together is a cool way to do it!
Wrong thread
Mokum020 said:
How about something like this in a Rich Text module:
Code:
[tr=0,4]#WCCOND#[/tr]
[tr=4,20]#WCCOND# [/tr]
I don't know at wich letter you want the line break so my example is after the fourth letter.
On the first line the first four letters will be shown and on the second line (cropped) from the fifth to the twentieth letter.
You need some empty spaces (and calculate them yourself as after which letter you want the line break) in the second line because otherwise Zooper will show the text if it becomes the same or smaller as the crop start point.
Click to expand...
Click to collapse
Thanks for the help. I wasn't able to use the solution however, because the length of the text that I want on the 1st line is always variable. The second portion of the text comes from a different feed, so I just decided to make a different field and put that field below the 1st. But your suggestion did come in handy on a different portion of the widget. I will keep your suggestion in my stash of Zooper tricks.
Thanks again,
DerrikMo
Wrong thread

Categories

Resources