Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« previous next »
  • Print
Pages: [1]

Author Topic: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC  (Read 4554 times)

Offline thenrik

  • Member
  • *
  • Posts: 64
Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« on: April 23, 2007, 01:32:23 AM »
I know that the format for the time and date have recently changed but unfortunately none of the wps themes for the Gigabeat F40 have caught up. Is there anything the average Joe can do to fix the error or should we just wait for the theme authors to update their themes?

Thanks,

Tom
« Last Edit: April 24, 2007, 02:29:18 AM by thenrik »
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: Time & Date/Gigabeat F40 Themes/anything the average Joe can do
« Reply #1 on: April 23, 2007, 02:02:08 AM »
Just manually edit the .wps file.  It's very simple.
Logged

Offline thenrik

  • Member
  • *
  • Posts: 64
Re: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« Reply #2 on: April 24, 2007, 02:52:28 AM »
This is aimed at folks who have never done any coding, like me. It's not very difficult.

Well, if you go to the Customwps Wiki page:
http://www.rockbox.org/twiki/bin/view/Main/CustomWPS

and read all of the tag descriptions under Real Time Clock as well as alignment ones %al etc and then look at the hint below:
"For example, I use: %ca, %cb %cd, %cH:%cM:%cS"

Then look at the posts on this page from Johnson4 and Ddyourself and the code:
%al%cb %ce, %cH:%cM %ar%pvdb    %bl%%

I went back to the Customwps page above and looked up the tags.

I like the Ajax wps as it's easy to read, shows how much time has played in the song, how much is left, the current song, the next song, volume level and so on. I went to the .rockbox folder, wps and opened Ajax.wps with notepad. On the 8th line down or 5th after the comments, I found the offending line:
%al%ca, b dc%ar%cl:M:Sc

It's a little difficult to divine the Ajax creator's intentions as I don't have the old code but by mixing and matching the code above, I replaced it with:
%al%ca, %cb %cd, %cH:%cM:%cS  %ar%bl%%

Which gives you the month and date, day of the week, time and battery level.

It works. Just replace the 8th line with my line or further modify it yourself.


Tom
Logged

Offline makotochan

  • Member
  • *
  • Posts: 2
Re: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« Reply #3 on: April 27, 2007, 07:55:29 AM »
I must be a moron ..... I cannot figure out for the life of me what to modify in the code .... I want to get the frostbox AA to work in my gigabeat F40 but i am lost since the new update .   can some on help please ????
Logged

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« Reply #4 on: April 27, 2007, 11:33:44 AM »
I just looked at the Frostbox AA wps.  There's no RTC information in it.  If you are trying to edit it to add RTC info, then take a look at the RTC tags in the link posted by thenrik.

Placement is relative to where you want it to appear in the WPS.  So if you want it under the battery info, place the RTC tags under the line that starts with: %?bp

Space is limited so you'll have to take that into account when choosing what part of the date and/or time you want to see.
Logged

Offline makotochan

  • Member
  • *
  • Posts: 2
Re: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« Reply #5 on: April 27, 2007, 04:52:50 PM »
I guess I'm just incapable of getting it to work ....  

what do I need to Do ???
 this is the wps :

# frostBox WPS NonAA v1
# Made by Chris Banes (senab)
# http://www.senab.co.uk/rockbox/
# chris@senab.co.uk
#
# modified for 240x320 by DeanM
#   Added time remaining for sleep mode
#   Feb 16 2007
%X|bg.bmp|
%P|pb.bmp|
#
%xl|a|vol0.bmp|21|0|
%xl|b|vol1.bmp|21|0|
%xl|c|vol2.bmp|21|0|
%xl|d|vol3.bmp|21|0|
%xl|e|vol4.bmp|21|0|
%xl|f|vol5.bmp|21|0|
%xl|g|vol6.bmp|21|0|
%xl|h|vol7.bmp|21|0|
%xl|i|vol8.bmp|21|0|
%xl|j|vol9.bmp|21|0|
%xl|k|vol10.bmp|21|0|
#
%xl|l|stop.bmp|43|268|
%xl|m|play.bmp|43|268|
%xl|n|pause.bmp|43|268|
#
%xl|o|rw.bmp|10|274|
%xl|p|ff.bmp|88|274|
#
%xl|B|rpt_on1.bmp|200|233|
%xl|C|rpt_on.bmp|200|233|
%xl|D|rpt_on_ab.bmp|200|233|
%xl|E|rpt_on_sh.bmp|200|233|
%xl|F|rpt_off.bmp|200|233|
#
%xl|G|shf_off.bmp|224|232|
%xl|H|shf_on.bmp|224|232|
#
%xl|I|b0.bmp|198|0|
%xl|J|b1.bmp|198|0|
%xl|K|b2.bmp|198|0|
%xl|L|b3.bmp|198|0|
%xl|M|b4.bmp|198|0|
%xl|N|b5.bmp|198|0|
%xl|O|r1.bmp|134|0|
%xl|P|r2.bmp|134|0|
%xl|Q|h.bmp|165|0|
%wd

%ar%fc (%?fb<%fbkbps| >)
%ar%ig | %iy
%ar%?in<%in|unknown> (%pp/%pe)





%al %?ia<%ia|%?d2<%d2|(root)>>
%al %?it<%it|%fn>
%al %?id<%id|%?d1<%d1|(root)>>

%al%?It
%al %s%?Ia<%Ia, %It|(no ID3)>


%pb|9|0|240|
%ar%pc [%pt]
%arB:%bl%% V:%pvdb

%ar%?bs<%bs left|>
#
%?pv<%xda|%xdb|%xdc|%xdd|%xde|%xdf|%xdg|%xdh|%xdi|%xdj|%xdk>
%?ps<%xdH|%xdG>
%?mp<%xdl|%xdm|%xdn|%xdp|%xdo>
%?mm<%xdF|%xdC|%xdB|%xdE|%xdD>
%?bp<%xdN|%?bl<%xdI|%xdJ|%xdK|%xdL|%xdM>>
%?mh<%xdO|%xdP>
%?lh<%xdQ|>
#AlbumArt
%Cl|12|40|sc100|sb100|
%C

I Can't Understand what it is I'm supposed to Add or modify ....
please help I'm totally confused ...
thanks for helping a moron ...
Logged

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« Reply #6 on: April 27, 2007, 06:41:42 PM »
Quote from: Nate!
If you are trying to edit it to add RTC info, then take a look at the RTC tags in the link posted by thenrik.

Quote from: Nate!
Placement is relative to where you want it to appear in the WPS.  So if you want it under the battery info, place the RTC tags under the line that starts with: %?bp

So towards the bottom of the code you pasted, you'll find the following line:
Code: [Select]
%?bp<%xdN|%?bl<%xdI|%xdJ|%xdK|%xdL|%xdM>>
Under it you can use the RTC tags. For example: %cl:%cM will give you the time = HH:MM.

Again, look at the Real Time Clock tags to see what the options are for displaying the date and time.

Also once you add this code, you'll have to play around with how the stuff under it displays.  I think the Hold indicator and Disc Access icon may be out of place now.  You'll have to either add a line above them or something.

Good luck.
Logged

Offline thenrik

  • Member
  • *
  • Posts: 64
Re: Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
« Reply #7 on: April 28, 2007, 12:18:52 AM »
Hey Natel:

I think we're operating under the wrong assumption: that adding complaint RTC code will make frostBox WPS NonAA v1 work properly. I tried adding RTC code to the Frostbox normal.wps and then restarted my Gigabeat and found no images, black background--a mess. So I downloaded the latest zip file from the wiki page and did a fresh install and got: a mess with no images loading and a black background.

As elborak pointed out:
Quote
Check the changelog:

21 Apr 19:31   More strict WPS parsing and displaying code. If there are errors, WPS loading will fail and the default WPS will be displayed.

I believe that before if non-compliant code existed, it was ignored and continued to use subsequent compliant code. If I understand the current situation, when rockbox comes across non-complaint code it just stops, not ignoring the non-compliant code and continuing on to subsequent compliant code.

So fixing Frostbox Non Aa would be a huge job. As the images aren't loading, you'd have to look at a presumably compliant wps, perhaps the most recent Short Circuit theme. You'd have to figure out how the author successfully loaded the images in Short Circuit and then go back to Frostbox and identify the bad code and replace it with good code.

You'd have to go to the custom wps wiki page:
http://www.rockbox.org/tw...i/bin/view/Main/CustomWPS

Do a search in your browser for all of the %xx codes to figure out the complaint code and be able to identify the bad code to boot.

If you can do it, you'll be making your own wps themes in no time but it's a big job.

Modifying Ajax was fairly easy, just adding compliant RTC code. There were no images with just white text against a black background.

Don't beat yourself up for being a "moron" as there's obviously a lot of non-compliant code in Frostbox

Tom
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Time & Date/Gigabeat F40 Themes/Updating Ajax RTC
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.085 seconds with 15 queries.