[Q]Display "Tomorrow" for next day appointment - Zooper Widget General

So I am trying to make a simple line of text for my next appointment. The problem so far is I cannot come up with a combination to have it display "Tomorrow" instead of the day of the week when the appointment is the next day. Has anyone accomplished this already?
Sent from my Galaxy Nexus using Tapatalk

AgentSmith said:
So I am trying to make a simple line of text for my next appointment. The problem so far is I cannot come up with a combination to have it display "Tomorrow" instead of the day of the week when the appointment is the next day. Has anyone accomplished this already?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
This is as far as I was able to go in a little tinkering, maybe you can finish it if possible. The problem is that on saturday it will display Sunday, not tomorrow (since it goes back to 1 the next day, Sunday)....
$(#Df#+1)=#C0Sf#?(Tomorrow):#C0SEEE#$
Its basically, IF "day of the week in numbers"+1 = "Day of the week of next appointment" THEN write "Tomorrow" ELSE write "Day of the week of next appointment"

AgentSmith said:
So I am trying to make a simple line of text for my next appointment. The problem so far is I cannot come up with a combination to have it display "Tomorrow" instead of the day of the week when the appointment is the next day. Has anyone accomplished this already?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
While mayhemrules solution might work, it has some flaws. Aside from the problem he mentioned, if you next appointment is on the next weekday of another week, it will still show "Tomorrow". To properly check if your appointment is on the next day, I would propose the following:
Code:
$#C0SddMM#=#W1Dddmm#?Tomorrow:#C0Sdd.mm.#$
This checks, if the day and month of the next appointment coincide with the day and month of the following day. If so, it displays Tomorrow and if not, it outputs the day and month of the appointment.

Thanks! Got it working.
I changed the code slightly to make it work properly:
Code:
$#C0SddMM#=#W1DddMM#?Tomorrow:#C0SEEEE#$
Does Zooper support multiple if's? Would also like to have it display 'today' appointments.
Sent from my Galaxy Nexus using Tapatalk

AgentSmith said:
Thanks! Got it working.
I changed the code slightly to make it work properly:
Code:
$#C0SddMM#=#W1DddMM#?Tomorrow:#C0SEEEE#$
Does Zooper support multiple if's? Would also like to have it display 'today' appointments.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You can use multiple conditionals but you can't make if/else with them. So if you want to display Today/Tomorrow/Date you would have to do something like this (I didn't test it):
Code:
$#C0SddMM#=#DddMM#?Today$$#C0SddMM#=#W1DddMM#?Tomorrow$$[#C0SddMM#!=#W1DddMM#] && [#C0SddMM#!=#DddMM#]?#C0SEEEE#$

kwerdenker said:
You can use multiple conditionals but you can't make if/else with them. So if you want to display Today/Tomorrow/Date you would have to do something like this (I didn't test it):
Code:
$#C0SddMM#=#DddMM#?Today#$$#C0SddMM#=#W1DddMM#?Tomorrow$$[#C0SddMM#!=#W1DddMM#] && [#C0SddMM#!=#DddMM#]?#C0SEEEE#$
Click to expand...
Click to collapse
It works! Only had to remove the # after 'Today'. I just never thought of combining conditionals like that. I'm not a programmer.
Sent from my Galaxy Nexus using Tapatalk

AgentSmith said:
It works! Only had to remove the # after 'Today'. I just never thought of combining conditionals like that. I'm not a programmer.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Oh yes, sorry. That must have been a leftover from editing everything together. I edited my post so anyone checking this thread will get the correct one

I perfected it now:
Code:
$#C0SddMM#=?No appointments$$#C0SddMM#=#DddMM#?Today #C0SH\:mm#$$#C0SddMM#=#W1DddMM#?Tomorrow #C0SH\:mm#$$[#C0SddMM#!=#W1DddMM#] && [#C0SddMM#!=#DddMM#] && [#C0STd#<6]?#C0SEEEE#$$[#C0SddMM#!=#W1DddMM#] && [#C0SddMM#!=#DddMM#] && [#C0STd#>=6]?#C0Sd MMMM#$ #C0TITLE#
With this code it displays the next appointment.
If it's today/tomorrow then it displays 'today/tomorrow' 'time' 'description'.
If it's not today/tomorrow and less than 6 whole days from now it displays 'day of the week' 'description'.
If it's 6 days or more from now it displays 'date' 'description'.
Examples:
Today 13:00 lunch
Tomorrow 13:00 lunch
Friday lunch
8 March lunch
I had the boundary at 7 days at first. But then when the next appointment is say 6 days and 23 hours in the future then it displays the same day of the week as today which could be confusing.
Sent from my Kitkatted Galaxy Nexus

Related

[Q] Dynamic Widget Background

I'm trying to create a widget that changes background picture based on the time if the day. I can't seem to find a way to do it. Anyone had any suggestions?
Sent from my SM-N9005 using Tapatalk
gordec said:
I'm trying to create a widget that changes background picture based on the time if the day. I can't seem to find a way to do it. Anyone had any suggestions?
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
I had this problem with creating a widget which would say Morning/Afternoon/Evening/Go to sleep depending on the time of the day, I came up with this code
Code:
$#Dk#<7?Go to sleep$$#Dk#>=7 && #Dk#<12?Morning$$#Dk#>=12 && #Dk#<=16?Afternoon$$#Dk#>16?Evening$, Dude
So basically before 7am the widget would say "Go to sleep" (I always sleep that late heh), and from 7am-12pm it would say "Morning", 12pm-4pm "Afternoon and then 4pm onwards "Evening".
I guess you could substitude the words with the path to the pictures you want, good luck!

[Q] Today or not?

Greetings.
How to display "today" in the calendar events? I've tried $(#C0DD#-#DD)#=0?Today:#C0EE#$ from the Zooper tips and tricks but it seems like #C0DD# doesn't work anymore.
mangoose33 said:
How to display "today" in calendar? I've tried $(#C0DD#-#DD)#=0?Today:#C0EE#$ from tips but it seems like C0DD doesn't work anymore.
Sent from my SM-N900 using Tapatalk
Click to expand...
Click to collapse
This should work
Code:
#C0SddMM#=#DddMM#?Today:#C0EE#$
. The code you used was probably meant to read $(#C0SD#-#DD)#=0?Today:#C0EE#$ because I don't think C0D ever existed as a tag. In that version it should also work
Send from my secret moonbase via space carrier pigeons
Brilliant. Thank you. Actually you've missed "$" at the beginning but it doesn't matter for me.
mangoose33 said:
Brilliant. Thank you. Actually you've missed "$" at the beginning but it doesn't matter for me.
Click to expand...
Click to collapse
Darn it... these buggers are really agile! Every time one of those slips away without me noticing
kwerdenker said:
Darn it... these buggers are really agile! Every time one of those slips away without me noticing
Click to expand...
Click to collapse
Well, you've also skipped not dollar like S in #C0EE#. It took a while to figure out why my days are not that correct as they supposed to be.

[Q] Alarmclock on Sunday

Hello dear xda'lers,
i'm concerned about my own intelligence... i can't get a alarm for sunday set, i only can choose Day 1-6, but day 7 (Sunday) cant be chosen.
Is there anyone else out there with this problem?
Is there any trick i dont know about to get waked up sunday morning?
Thank you
BossAfair said:
Hello dear xda'lers,
i'm concerned about my own intelligence... i can't get a alarm for sunday set, i only can choose Day 1-6, but day 7 (Sunday) cant be chosen.
Is there anyone else out there with this problem?
Is there any trick i dont know about to get waked up sunday morning?
Thank you
Click to expand...
Click to collapse
I was going to ask the same question. Seems they forgot sunday lol
Morak75 said:
I was going to ask the same question. Seems they forgot sunday lol
Click to expand...
Click to collapse
In fact, it is there, invisible, but if you click on the very edge of the screen, it'll check the 7th day and you'll see a portion of the sphere.
Just lacking a bit of polish .
Frisou said:
In fact, it is there, invisible, but if you click on the very edge of the screen, it'll check the 7th day and you'll see a portion of the sphere.
Just lacking a bit of polish .
Click to expand...
Click to collapse
There it is ! lol not just a bit Ty
Maybe they have fixed it in colorOS 2.0.
They definitively fixed it in v2.0.
Sent from my X9006 using XDA Premium 4 mobile app
This bug comes from the Find 5 ColorOS beta, one day (1.05i beta) they changed the behavior (from popup with weekdays you could select) to the new numbers format. But there is a misstake because many languages are longer weekdays/wochentage than the original you will lose some numbers.
I hope they will switch back to the old working style! Currently on the newest Find 5 beta its still this way.

[Q] discharge

is there any way that zooper can display how long it has been since unplugged
rickyjune said:
is there any way that zooper can display how long it has been since unplugged
Click to expand...
Click to collapse
You could use a string like this:
#BSTAT# since #BDTEEEE, MMMM d, yyy# at #BDTh:mm a#
This will get you a result that looks like this:
"Discharging since Sunday, June 8, 2014 at 8:51 PM"
Of course, you can customize as you see fit. I hope this helps.

Facer and Weather

It has been cloudy and raining for the last 3 hours yet my watch face made thru facer still says CLEAR.... The battery percent is correct, location is slightly off (but it is raining there also).
Anyone else have a problem?
chrissard said:
It has been cloudy and raining for the last 3 hours yet my watch face made thru facer still says CLEAR.... The battery percent is correct, location is slightly off (but it is raining there also).
Anyone else have a problem?
Click to expand...
Click to collapse
Reddit now has a post stating "Weather Data is inaccurate"
chrissard said:
Reddit now has a post stating "Weather Data is inaccurate"
Click to expand...
Click to collapse
Yep, very inaccurate. Facer still has tons of bugs unforunately. Here's some I've noticed. Rotation for Calibre's day of the week circle rotation doesn't work correctly. Weather was never accurate. Also, the bug still exists where watch faces don't get pushed correctly onto the Moto360 unless clicking a stock watch face and pushing and clicking back to the Facer face.
opasha said:
Yep, very inaccurate. Facer still has tons of bugs unforunately. Here's some I've noticed. Rotation for Calibre's day of the week circle rotation doesn't work correctly. Weather was never accurate. Also, the bug still exists where watch faces don't get pushed correctly onto the Moto360 unless clicking a stock watch face and pushing and clicking back to the Facer face.
Click to expand...
Click to collapse
Hey! Dev here. Weather data and pushing watchfaces should be fixed in 0.90.01 that I pushed a few hours ago!
fodawim said:
Hey! Dev here. Weather data and pushing watchfaces should be fixed in 0.90.01 that I pushed a few hours ago!
Click to expand...
Click to collapse
I hope my comment did not deter you in the slightest, Rod. I was just providing feedback on what still exists. Thank you for constantly trying to make this app better. It's the main one I keep using because I really love the Calibre 17 watch face that I modified to my liking by two great themers on these forums. Can you explain to me how to rotate days of the week correctly in a circular rotation. What coding is needed for the input. Right now it's ((360/7)*#DF#) - for me this made the Yesterday to appear as Friday instead of Monday. He wrote ((360/12)*#DM#) for the days of the month rotation and that shows correctly as September. Can you explain this further? Thank you.
EDIT: Downloaded your new version you just mentioned. You fixed the SYNC issue, but weather now doesn't show correctly. It only shows #WCCT# - #WCT#F. Also, current weather icon only shows the number 01, so I'm guessing you're still working on that feature.
EDIT2: That's weird! Weather now works...I guess it needs time to refresh itself when you first apply it if the face has weather text.
Just an update. Weather does not refresh on latest version despite being checked for 1 hour interval.
opasha said:
Just an update. Weather does not refresh on latest version despite being checked for 1 hour interval.
Click to expand...
Click to collapse
Mine did update, today. We are to get more rain so will wait and see if it does work,
All I ever seem to get is the #WCT# or similar. Weather never seems to update. After reading the earlier comment I left it sitting for an hour to see if it would just start working, no such luck.
smw6180 said:
All I ever seem to get is the #WCT# or similar. Weather never seems to update. After reading the earlier comment I left it sitting for an hour to see if it would just start working, no such luck.
Click to expand...
Click to collapse
same issue lol thats why i stopped using facer. LOL ill go back once a solution is found
guaneet said:
same issue lol thats why i stopped using facer. LOL ill go back once a solution is found
Click to expand...
Click to collapse
What are you using instead? Just got my Moto today.
smw6180 said:
What are you using instead? Just got my Moto today.
Click to expand...
Click to collapse
The stock ones lol. The dial one.
Just to let you know facer runs as a full fledged app on the match which drains a lot of battery. It's advices you use the regular faces for more battery. You can pull over a day with the stock faces.
guaneet said:
The stock ones lol. The dial one.
Just to let you know facer runs as a full fledged app on the match which drains a lot of battery. It's advices you use the regular faces for more battery. You can pull over a day with the stock faces.
Click to expand...
Click to collapse
True, but I like my customizations.
smw6180 said:
True, but I like my customizations.
Click to expand...
Click to collapse
Same lol
I got this one too
https://play.google.com/store/apps/details?id=com.flyingrhinocmg.watchface_minimus360
Switch off every once in a while
I have a slightly different issue with the weather and my faces. If I select a face with weather displayed on it, for some reason it shows something along the lines of -323. Anyone have any idea of how to fix this?
Weather Icons?`
I have been trying to get weather icons to work with facer. can anyone offer any insight on how to properly set up the conditionals and store the images to show weather icons? (basically, just one icon showing at a time, for current weather condition)
I've never had weather or battery percent working on facer. On moto 360.
smw6180 said:
All I ever seem to get is the #WCT# or similar. Weather never seems to update. After reading the earlier comment I left it sitting for an hour to see if it would just start working, no such luck.
Click to expand...
Click to collapse
I had the same experience but on the battery percentage. Edit an existing template and ported to the phone, it worked at first but then was displaying the # tags on the battery percentage. Another bug I find is that sometimes, Facer just hang at syncing and I have to apply different simple faces to get it to respond.
vboyz103 said:
I had the same experience but on the battery percentage. Edit an existing template and ported to the phone, it worked at first but then was displaying the # tags on the battery percentage. Another bug I find is that sometimes, Facer just hang at syncing and I have to apply different simple faces to get it to respond.
Click to expand...
Click to collapse
Same here on my nexus 5. Weather and battery are hit and miss and lots of sync hangs with facer.
Facer never works for me on weather. Battery life a little tight but I do love the customizations!
Yeah Facer weather has never worked for me. I just get all the animations overlapping and -- for the temp or location. A shame as there are some really lovely looking faces out there. Battery and of course time work well otherwise. Tried all the known fixes...

Categories

Resources