Notices


Reply
Thread Tools
Posts: 356 | Thanked: 69 times | Joined on Jan 2010 @ Poland
#41
Originally Posted by biggzy View Post
They should work ok, did you copy n paste? If so make sure its on 1 line.
that's strange but all fine now without any changing
 
Posts: 82 | Thanked: 44 times | Joined on Feb 2010
#42
Originally Posted by amorek13 View Post
would there be a command that could pull time form world clock so it could display on desktop using the desktop widget?
I did it like this:

1. Create a script "worldtimes.sh" and put your places and preferred date formatting in it. For me this looks like:

Code:
#!/bin/sh
echo "London : " `TZ=Europe/London date "+%a %H:%M"`
echo "Perth  : " `TZ=Australia/Perth date "+%a %H:%M"`
echo "NOLA   : " `TZ=America/Mexico_City date "+%a %H:%M"`
2. make it executable (I did this by getting root access and chmod a+x worldtimes.sh) and save it somewhere (but not in /home/user/MyDocs)

3. Use the desktop command execution widget to run that script

You can change the date format as per http://www.cyberciti.biz/faq/linux-u...s-for-display/
You can find all of the supported timezones by looking in /usr/share/zoneinfo/ (WARNING: inexperienced users, don't mess with these files, just look at them to work out names). I also found a list online at http://www.vmware.com/support/develo.../timezone.html, but it may not be exactly the same list, I am not sure.

You could also do a single clock per widget with the command as
Code:
TZ=Europe/London date "+%a %H:%M"
and then just add one new widget for each timezone.

Ben

PS If anyone knows a more appropriate timezone for New Orleans, please let me know - the TZ=CST style format doesn't seem to work and New Orleans isn't in /usr/share/zoneinfo/America.
Also anyone know a better way to format/line the times up nicely in the display?
 

The Following 2 Users Say Thank You to benh_n900 For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#43
Maybe it's possible to show the date in this format: Wednesday 9 March 2010 ?
 
Posts: 13 | Thanked: 5 times | Joined on Jan 2010
#44
@Schturman

date "+%A %e %B %Y"
 

The Following User Says Thank You to Simply_Texan For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#45
Originally Posted by Simply_Texan View Post
@Schturman

date "+%A %e %B %Y"
Thanks ! Looks nice
 

The Following User Says Thank You to Schturman For This Useful Post:
Posts: 362 | Thanked: 145 times | Joined on Jan 2008 @ Sydney, Australia
#46
Originally Posted by benh_n900 View Post
I did it like this:

1. Create a script "worldtimes.sh" and put your places and preferred date formatting in it. For me this looks like:

Code:
#!/bin/sh
echo "London : " `TZ=Europe/London date "+%a %H:%M"`
echo "Perth  : " `TZ=Australia/Perth date "+%a %H:%M"`
echo "NOLA   : " `TZ=America/Mexico_City date "+%a %H:%M"`
Thanks for this guide Ben. Worked perfectly (only had to dig around for the actual command to run when creating the command).
 
iceman600's Avatar
Posts: 324 | Thanked: 65 times | Joined on Jun 2008 @ FL
#47
This might be a stupid question.... but i cant find the "%" key on the N900
 
Posts: 18 | Thanked: 7 times | Joined on Feb 2010 @ U.K
#48
You can the % key on the virtual keyboard
 

The Following User Says Thank You to zero2007 For This Useful Post:
Posts: 82 | Thanked: 44 times | Joined on Feb 2010
#49
You can get the extended symbol screen up by pressing the symbol key and ctrl together
 

The Following User Says Thank You to benh_n900 For This Useful Post:
Posts: 10 | Thanked: 6 times | Joined on Jun 2010 @ Finland
#50
I tweaked Custom Operator Name Widget:


Now I have date on every desktop, and unused empty space on top of the desktop is in use.

I created small script:
Code:
#!/bin/sh
set $(date +%d\ %m\ %Y)
gconftool -s /apps/connui-cellular/operator_name_online $1.\ $2.\ $3 --type=string
and fcron to execute that at midnight.

I could not find any other way to schedule script than fcron.

Last edited by Pakana; 2010-08-14 at 11:50.
 

The Following 3 Users Say Thank You to Pakana For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:48.