#173722 - 04/08/2003 12:56
TTSClock
|
stranger
Registered: 05/11/2001
Posts: 28
|
I recently added the added hijack kernel to my machine, and one of the first things i wanted to do was add the ttsclock. I followed the instructions, loaded all the files on the player and modified my config.ini with a line under [hijack] that reads ;@EXEC_ONCE /drive0/var/ttsclock
that should work, but after a number of reboots and checking my config.ini for errors, i still get nothing. any ideas?
|
Top
|
|
|
|
#173723 - 04/08/2003 12:58
Re: TTSClock
[Re: steel25]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Serial output may help diagnose your problem.
Edit: link
|
Top
|
|
|
|
#173724 - 04/08/2003 13:20
Re: TTSClock
[Re: cushman]
|
stranger
Registered: 05/11/2001
Posts: 28
|
here is the message i get
hijack_do_execve: execve() failed, errno = 2
hijack_exec("/drive0/var/ttsclock"), rc=-2 (ERROR)
Edited by steel25 (04/08/2003 13:20)
|
Top
|
|
|
|
#173725 - 04/08/2003 13:51
Re: TTSClock
[Re: steel25]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
IIRC, errno = 2 means "file / path not found"...
How did you upload the files, by the ftp script or manually?
Verify from command line that the file is in that directory, readable and executable by at least root (at least these, -r-x------, flags when you do a 'ls -l /drive0/var/ttsclock' )
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#173726 - 04/08/2003 14:08
Re: TTSClock
[Re: steel25]
|
stranger
Registered: 05/11/2001
Posts: 28
|
i did it though ftp via the script. how do i get into the box to run commands, though hyperterminal?
I do not have the developer version of the software. below is the permissions for the folders and files.
-rwxr-xr-x 1 0 0 2556 Aug 1 20:05 ttsclock
-rwxr-xr-x 1 0 0 25724 Aug 1 20:05 date
-rwxr-xr-x 1 0 0 4508 Aug 1 20:05 pcmplay
-rwxr-xr-x 1 0 0 3740 Aug 1 20:05 setvol
drwxr-xr-x 2 0 0 4096 Aug 1 20:05 tts/
|
Top
|
|
|
|
#173727 - 04/08/2003 14:29
Re: TTSClock
[Re: steel25]
|
stranger
Registered: 05/11/2001
Posts: 28
|
this is the line from my config.ini
;@EXEC_ONCE /drive0/var/ttsclock
does it matter where there hijack portion of the config.ini is in the actual file, mine is at the bottom, and this is the second option in the file.
|
Top
|
|
|
|
#173728 - 04/08/2003 15:54
Re: TTSClock
[Re: steel25]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
I do not have the developer version of the software
The instructions do state that the developer version is required for ttsclock:
1. First make sure that you have the *developer* version of the empeg player software version 2.00 which is available from http://www.empeg.com
Install that and try again!
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#173729 - 04/08/2003 15:54
Re: TTSClock
[Re: steel25]
|
enthusiast
Registered: 19/04/2001
Posts: 369
Loc: Seattle, WA (formerly Houston,...
|
I do not have the developer version of the software. I believe this is likely the issue?
I've never used the consumer, but I bet something in the script requires the developer version.
John
_________________________
1998 BMW ///M3
30 GB Mk2a, Tuner,
and 10 GB backup
|
Top
|
|
|
|
#173730 - 05/08/2003 10:43
Re: TTSClock
[Re: johnmcd3]
|
stranger
Registered: 05/11/2001
Posts: 28
|
if i change to the developer version, will i have to reinstall the hijack kernel?
What are the major differences between the two versions.
|
Top
|
|
|
|
#173731 - 05/08/2003 10:53
Re: TTSClock
[Re: steel25]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
|
if i change to the developer version, will i have to reinstall the hijack kernel? Yes.
Installing new software on the player overwrites the kernel. However it is very easy to reinstall the hijack kernel and it doesn't hurt anything to do so.
What are the major differences between the two versions. The shell prompt is available in the developer version. That's the only major difference.
Both of these questions, and many others I'm sure you'll have, are answered in the FAQ here and here.
|
Top
|
|
|
|
#173732 - 05/08/2003 10:56
Re: TTSClock
[Re: tfabris]
|
stranger
Registered: 05/11/2001
Posts: 28
|
thanks man!
tfabris sounds familiar, do you own a Porsche by chance?
|
Top
|
|
|
|
#173733 - 05/08/2003 10:58
Re: TTSClock
[Re: steel25]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
|
tfabris sounds familiar, do you own a Porsche by chance? Yeah, I've got both a front porch and a back porch on my house.
(No, I've dreamed of having a really nice 911 someday, but haven't done it yet.)
|
Top
|
|
|
|
#173734 - 05/08/2003 10:59
Re: TTSClock
[Re: tfabris]
|
stranger
Registered: 05/11/2001
Posts: 28
|
hahaha...for some reason i thought i might have seen a post of yours on the 968 forums.
Good luck on the 911!
|
Top
|
|
|
|
#173735 - 05/08/2003 12:50
Re: TTSClock
[Re: steel25]
|
stranger
Registered: 05/11/2001
Posts: 28
|
I've got it to work now with the developer version. Now i need to get the time format right. I live in USA central time. The software says to use UTC, can i configure that for CST, and will it automatically update at the time change? I can't seem to find what all the different time settings mean and how they work.
|
Top
|
|
|
|
#173736 - 05/08/2003 13:28
Re: TTSClock
[Re: steel25]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Time zones: The empeg player app uses its own time zone settings seperate from the kernel. If you use the player's time zone settings and have set the timezone to anything other then UTC or Universal then you need to use a command line option with the TTS Clock to tell it what time zone to use. The command line is -t# where # is a number (can be negative) that should be added to the universal time to get your timezone. For example, if you live on the East coast of the US the time is -5 hours off. The config.ini line for that should be:
;@EXEC_ONCE /drive0/var/ttsclock -t-5
West coast of the US would be:
;@EXEC_ONCE /drive0/var/ttsclock -t-8
If you set the empegs timezone to CST6CDT (Central Standard Time & Central Daylight Savings Time) and then set the displayed time correctly, you should set the argument to probably "-t-5" at this time of year (I assume daylight saving is in effect, if not then use "-t-6" instead).
The empeg player app will automatically adapt for day light savings time changes. Unfortunetely, the TTS Clock does not and will require you to edit the config.ini during time changes. If you wish to avoid this, you can change the player app to use Universal time and forget about this command line option.
No, TTSClock will not change automatically when changing to/from daylight savings - you need to edit the config file twice a year.
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#173737 - 05/08/2003 14:06
Re: TTSClock
[Re: mtempsch]
|
stranger
Registered: 05/11/2001
Posts: 28
|
Well, i did that, I just thought there might be something i was missing that did it autmatically. I didn't quite understand why someone would want to usa UTC if they didn't live where the actual time is UTC!
|
Top
|
|
|
|
#173738 - 06/08/2003 03:18
Re: TTSClock
[Re: mtempsch]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
I don't have TTSClock, but does it use localtime()? If so, you should be able to use a real timezone in your @EXEC line. I don't think that Hijack uses a shell to interpret the command line, so you'd need to do that explicitly:
;@EXEC_ONCE /bin/sh -c "TZ=CST6CDT exec /drive0/var/ttsclock"
That would save you having to edit config.ini for daylight savings (and save you embarrassment when it's wrong twice a year).
The other possibility is to hack on TTS Clock to accept a timezone name as an alternative to a numerical offset.
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#173739 - 06/08/2003 09:35
Re: TTSClock
[Re: tms13]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
does it use localtime()?
It uses a number of calls to the "date" binary:
weekday=`/drive0/var/date +%w`
month=`/drive0/var/date +%m`
day=`/drive0/var/date +%d`
hour=`/drive0/var/date +%H`
minute=`/drive0/var/date +%M`
I don't know how/if the date binary treats/considers environment variables, but it's worth giving a shot...
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#173740 - 06/08/2003 17:15
Re: TTSClock
[Re: mtempsch]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
In reply to:
I don't know how/if the date binary treats/considers environment variables
It's easy enough to find out if you don't happen to know!
For the record, date does report the date in local time as defined by the TZ environment variable. (In fact, it's the program I used to check that I had a valid example TZ before posting my previous article).
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#173741 - 06/08/2003 18:12
Re: TTSClock
[Re: tms13]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
Hmm, the player seems to understand UTC and my timezone GMT0BST, but everything else becomes one of those two:
empeg:/usr/share/zoneinfo# TZ=UTC date
Thu Aug 7 01:08:20 UTC 2003
empeg:/usr/share/zoneinfo# TZ=GMT0BST date
Thu Aug 7 02:08:41 BST 2003
empeg:/usr/share/zoneinfo# TZ=CST6CDT date
Thu Aug 7 02:08:53 CDT 2003
empeg:/usr/share/zoneinfo# TZ=MST7MDT date
Thu Aug 7 02:09:01 MDT 2003
empeg:/usr/share/zoneinfo# TZ=GB date
Thu Aug 7 01:09:16 2003
I'm very confused here - what's going on?
The output of TTS Clock corresponds to that of date, of course.
(Now that I'm reminded what time it is, I think I ought to go home and get some sleep!)
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#173742 - 07/08/2003 02:49
Re: TTSClock
[Re: tms13]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
It's just dawned on me that it's picking up the daylight savings rule from the timezone but not the base offset from UTC. I still don't understand why - any ideas?
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#173743 - 07/08/2003 05:02
Re: TTSClock
[Re: tms13]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
There must obviously be some configuration built into it, as it ``knows'' that it should be using Summer Time, but, in general, it needs a big database of timezone data to do that sort of stuff properly, and I doubt that the empeg has that database.
You could try ``TZ=EDT6 date'' and see if that works. It should pick up the 6 as an offset, and, since it doesn't have a Summer Time component, just use that directly.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#173744 - 07/08/2003 05:58
Re: TTSClock
[Re: wfaulk]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
In reply to:
it needs a big database of timezone data to do that sort of stuff properly, and I doubt that the empeg has that database.
Isn't that what's in /usr/share/zoneinfo? I believe that's where the player gets its timezones from.
Even just to do summer time, it needs the timezone stuff, as the dates vary by place...
In reply to:
You could try ``TZ=EDT6 date'' and see if that works.
Did you try that yourself? For me, that just returns the UTC time: empeg:/empeg/bin# date; TZ=EDT6 date; TZ=GMT0BST date;
Thu Aug 7 12:57:32 /home/empeg/arm 2003
Thu Aug 7 12:57:31 EDT 2003
Thu Aug 7 13:57:31 BST 2003
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#173745 - 07/08/2003 07:09
Re: TTSClock
[Re: tms13]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
Okay, wrong on both counts, I guess. My empeg's not near me, so I didn't look. Just guesses on both counts.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#173746 - 11/08/2003 18:33
Re: TTSClock
[Re: tms13]
|
journeyman
Registered: 14/03/2002
Posts: 94
Loc: Pennsylvania
|
Yeah, I tried playing around with the time zones too when writing TTSClock and I couldn't figure it out, so I gave up and just made an hour offset as a command line option. But if anyone can figure it out I'd gladly update the code.
|
Top
|
|
|
|
#173747 - 21/02/2004 09:50
Re: TTSClock
[Re: tms13]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
I don't think that Hijack uses a shell to interpret the command line Pardon me for responding to an old posting, but as of Feb-2004 Hijack now does use the shell for all EXEC purposes. And when possible, it uses this format:
/bin/sh -c exec your_command_goes_here
Cheers
|
Top
|
|
|
|
|
|