[Q] Following month and previous month dates - Zooper Widget General

Hi, I am trying to create a Progress Bar to indicate where I am in the billing cycle of my phone plan.
Since my billing cycle starts on the 17th of every month, I want to set the Min Value as the current or previous 17th on the calendar and the coming 16th (of this/next month) as the Max Value of the progress bar. Does anyone know how I would call these dates? I've been reading through this forum and the one at zooper.themerapp.com and am still stumped at this problem.
Thanks in advance

Related

Day Disappeared - please help

hi guys on the today screen, the 'day' has disappeared from next to the date
i.e. it usually sayd what day it is on ther today screen - monday, tuesday, wednesday etc etc
any ideas on how to get this back?
go to start menu\settings\system\regional settings\date and verify the "long date" is formatted to read dddd, MMMM dd, yyyy (or, whatever it should be depending on which country you are in).
I'm in the US and that format makes the long date on my phone read: Thursday, April 10, 2008 - which is how it reads on the homescreen date plugin.

messages in inbox are time stamped 1 hour early

mainly from verizon numbers and emails, the messages i revieve are time stamped 1hour early. its annoying, since the messages are organized poorly because of this.
any remedy for this?
thanks,
frank
I'm on ATT... Was running Energy Max sense (one from mid August) all of a sudden I had the same issue. EVERY text is 1 hour early (I'm Eastern US GMT -5).. I figured I screwed it up. I flashed Early September Energy Cookie and had the same issue.
I just (about 40 mins ago) flashed Sep 13 cookie.
The first thing I did was test Text messages... they were fine.
I clicked "Get time from provider" Text are still fine.
I did not click sync time with internet in sense like i usually do.
I'll report back if it breaks on me again.
x51 said:
I'm on ATT... Was running Energy Max sense (one from mid August) all of a sudden I had the same issue. EVERY text is 1 hour early (I'm Eastern US GMT -5).. I figured I screwed it up. I flashed Early September Energy Cookie and had the same issue.
I just (about 40 mins ago) flashed Sep 13 cookie.
The first thing I did was test Text messages... they were fine.
I clicked "Get time from provider" Text are still fine.
I did not click sync time with internet in sense like i usually do.
I'll report back if it breaks on me again.
Click to expand...
Click to collapse
I also have the Energy ROM (not sure exactly which one) but it was one from march i think. some very basic one for speed. I'll try flashing to the Sep 13 and see how that goes. Thanks!!!
-Frank

[Q] data usage

my plan reset every 12th of the month.
On the change cycle drop-down menu, i set it to reset on the 12th of each month and today is the 12th but it still show last month usage..
any help?
Try setting it to the 11th, maybe it's asking for the last day
Sent from the greatest Galaxy

Calendar limit

Hello,
I just started using Zooper so I don't know yet every command and parameter.
On my widget I have 3 lines that display the next 3 calendar events in the format "TUE 8 18:00 EVENT", but "next event" may be coming way far in the future. I'd like to limit events to those of the next 2 weeks (I don't need to know about things that are months away), how can I do that?
Thank you
fredpel said:
"next event" may be coming way far in the future. I'd like to limit events to those of the next 2 weeks (I don't need to know about things that are months away), how can I do that?Thank you
Click to expand...
Click to collapse
I'm rather new to Zooper Widget myself, but I would think that you could make a conditional statement that takes the difference of the date of the event and the current date and if that is < 14, then do the following. Note that I have not tested any of the following, so you would probably have to debug and troubleshoot any issues if some arise.
$#C0SMMdd#-#DMMdd#<=14? #C0TITLE#$
To my understanding, this would say
If (First Calendar event month and Day) - (Current Month and Day) <= 14, then display the name of the first event.
However, there is one flaw with this formula, since it the values would be incorrect the following month (For example the 29th of April would yield the value "0429" and the first of May would be "0501", but the difference is well over 14, but they are within 2 weeks of one another).
Since the difference in months should be the 100s place, you might be able to just do another if statement that says
$[#C0SMMdd#-#DMMdd#>=73] && [#C0SMMdd#-#DMMdd#<=86] [&& #C0SMMdd#-#DMMdd#<-1000]? #C0TITLE#$
I didn't spend a whole lot of time on these numbers, so there may be a few errors. I thought of the worse scenario (Being the last day of February and an event on the next day (0301-0228=73)) and the other scenario being a cap so that you don't get events in the long distant future. The last is for the change of December to January.
As a said, I am rather new to using zooper, so there may be an easier way to do this. If not I hope this helped get you started.
That's definitely a good starting point, I went for
Code:
$#C0yDDD#-#DyDDD#<15?#C0TITLE#$
yDDD gives the date in the format 2014170 (year + day in year with leading zeros, from 001 to 365), so it should be ok in every case
Now I just have to fight with text jumping up and down whether the contain tall letters or not
Thank you very much!
(btw is there a way to stop the configuration window from closing and forgetting what I wrote, if the screen turns off while I'm changing something?)
fredpel said:
(btw is there a way to stop the configuration window from closing and forgetting what I wrote, if the screen turns off while I'm changing something?)
Click to expand...
Click to collapse
Sadly, I'm not aware of a way to do that. Although, a lot of people use pushbullet and write the code on their computer and then send it to their phone to test.

[Q] Help with some Calendar coding

So I made a widget that will display a Calendar with the day and date of the next event by using Google's inbuilt calendar. If it's a multiple day event it will display the current day the event is on until it passes. Once the day passes and it's on the next day, the calendar will update to the next event. I have however noticed a weird glitch that had to be resolved with the third line of code where the event will say end on a Tuesday, the day will be Wednesday, and the passed event will still be the current one.
$#DD#<=#C0SD#?#C0SE#$
$#DD#>#C0SD#&&#DD#<#C0ED#?#DE#$
$#DD#>=#C0ED#&&#C0SD#!=#C0ED#?#C1SE#$
- $#C0SD#=?No Event -$
[sr=0.75]
$#DD#>=#C0SD#&
&#DD#<=#C0ED#?Today$
$#C0SD#=(#DD#+1)?Tomorrow$
$#C0SD#>(#DD#+1)?#C0SMMM d#$[/sr]
Click to expand...
Click to collapse
My question is with New Years coming around, my event for next year isn't showing because DD is greater than C0SD but I am getting somewhat confused as to how to implement the coding correctly in order to show the next event details fully.
(Also, note that the code is usually on one line, I've placed it on multiple lines for ease of reading.)
Any help would be awesome.
NuttsnBolts said:
So I made a widget that will display a Calendar with the day and date of the next event by using Google's inbuilt calendar. If it's a multiple day event it will display the current day the event is on until it passes. Once the day passes and it's on the next day, the calendar will update to the next event. I have however noticed a weird glitch that had to be resolved with the third line of code where the event will say end on a Tuesday, the day will be Wednesday, and the passed event will still be the current one.
Code:
$#DD#<=#C0SD#?#C0SE#$
$#DD#>#C0SD#&&#DD#<#C0ED#?#DE#$
$#DD#>=#C0ED#&&#C0SD#!=#C0ED#?#C1SE#$
- $#C0SD#=?No Event -$
[sr=0.75]
$#DD#>=#C0SD#&&#DD#<=#C0ED#?Today$
$#C0SD#=(#DD#+1)?Tomorrow$
$#C0SD#>(#DD#+1)?#C0SMMM d#$[/sr]
My question is with New Years coming around, my event for next year isn't showing because DD is greater than C0SD but I am getting somewhat confused as to how to implement the coding correctly in order to show the next event details fully.
(Also, note that the code is usually on one line, I've placed it on multiple lines for ease of reading.)
Any help would be awesome.
Click to expand...
Click to collapse
In regards to events in the new year not showing, I recommend dropping the D parameter and use yMMdd (#DyyMMdd#, #C0SyMMdd#, etc.). You need to specify MM and dd because you need both the month and day of the month to always be double digits with any leading zeros in order for the math that you're doing to work out.
Awesome, thanks for the help. I tried the previous suggestions that you made and they worked alright, but I'll have to look at the MM suggestion that you made.
Again, thank you for the help.

Categories

Resources