View previous topic :: View next topic |
Author |
Message |
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Tue Jan 18, 2005 8:19 pm Post subject: |
|
|
curious_bob wrote: | Where is the source located? |
are you using gentoo?
cause then its in /usr/portage/distfiles
called torsmo-something.tar.[bz2|gz]
if you got it via the cvs ebuild, i dont know where its stored, maybe /usr/portage/cvs...
or just head to the website and download the source .tar.g or .tar.bz2
killfire _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
MrApples Guru
Joined: 13 Dec 2002 Posts: 511
|
Posted: Tue Jan 18, 2005 8:21 pm Post subject: |
|
|
cvs is located in /usr/portage/distfiles/cvs-src _________________ http://www.whatsinyourbox.org -- Technology discussion, news, and more. |
|
Back to top |
|
|
mc_bluebeard n00b
Joined: 12 Jun 2003 Posts: 59 Location: Cambridge, MA USA
|
Posted: Sun Jan 23, 2005 4:31 pm Post subject: torsmorc with weather scripts |
|
|
Hi, I'm stuck in Boston in the blizzard and decided
to add some weather information to my torsmo
display. Anyway, maybe other people will find this
useful.
Relavant lines from my .torsmorc
Code: |
Weather:
Conditions :${execi 180 ~/.torsmo/torsmo_weather.sh weather}
Temperature : ${execi 180 ~/.torsmo/torsmo_weather.sh temperature_string}
Wind : ${execi 180 ~/.torsmo/torsmo_weather.sh wind_string}
Humidity : ${execi 180 ~/.torsmo/torsmo_weather.sh relative_humidity}%
|
The torsmo_weather.sh script is
Code: |
#!/bin/bash
if [ -z "$1" ] # No argument passed?
then
echo "You must pass the xml field name you want to extract"
exit -1
fi
STATION="KBED" # change this to your NWS station
XMLFEED="http://weather.gov/data/current_obs/"
XMLFILE="$XMLFEED$STATION.xml"
LOCALXMLFILE="$HOME/.torsmo/weather.xml"
# Compare the modification time of the local
# xml file to the current time. This is to
# prevent calling wget many times if your
# .torsmorc has multiple calls to this script.
#
REFRESH="true"
if [ -e $LOCALXMLFILE ] # does the local file exist?
then
MODTIME=`stat -c %Y $LOCALXMLFILE`
TIME=`date +%s`
DIFF=`expr $TIME - $MODTIME`
INTERVAL="600"
if [ "$DIFF" -lt "$INTERVAL" ]
then
REFRESH="false"
fi
fi
if [ "$REFRESH" = "true" ]
then
wget -N $XMLFILE -O $LOCALXMLFILE
fi
RETVAL=`grep "<$1>" $LOCALXMLFILE |sed 's/.*>\(.*\)<.*/\1/'`
echo -n "$RETVAL"
|
Of course, you should change that script to get the NWS xml feed
for your location:
http://www.nws.noaa.gov/data/current_obs/
Also, notice that there's a stat in there to check the age of the
weather file. This is uncessary if you use 'execi' instead of 'exec'
in your .torsmorc.
Torsmo is neat. _________________ I do not belong on this mission and I want to return to earth. |
|
Back to top |
|
|
curious_bob l33t
Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Sun Jan 23, 2005 5:53 pm Post subject: |
|
|
This is great. I've been looking for something like this. _________________ Play me online, well ya know that I'll beat you. If I ever meet you, I'll CRTL-ALT-DEL you!!!
The Black Vault The Largest Online Military and Government Research Center |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Jan 23, 2005 6:03 pm Post subject: Re: torsmorc with weather scripts |
|
|
mc_bluebeard wrote: | Hi, I'm stuck in Boston in the blizzard and decided
to add some weather information to my torsmo
display. Anyway, maybe other people will find this
useful. |
Weather monitoring has been in torsmo-cvs already for 3 weeks.
Nice work for those who are still using <=0.18 |
|
Back to top |
|
|
dan_aka_jack Apprentice
Joined: 04 Dec 2004 Posts: 169
|
Posted: Tue Jan 25, 2005 11:42 am Post subject: |
|
|
Hi there,
I really enjoy torsmo. I've been using the standard "torsmo" ebuild up until today but now I'd like to upgrade to the CVS ebuild. However, I cannot get it to install!
After some tinkering, I finally got ./configure to run successfully. Then I tried running "make". And here's the error. Any thoughts as to what's going on?
Code: |
...
x11.o(.text+0x72b): In function `init_window':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:282: undefined reference to `XGetWindowAttributes'
x11.o(.text+0x75c):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:314: undefined reference to `XFlush'
x11.o(.text+0x77f):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:318: undefined reference to `XSelectInput'
x11.o(.text+0x7af):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:320: undefined reference to `XClearWindow'
x11.o(.text+0x85e):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:230: undefined reference to `XCreateWindow'
x11.o(.text+0x896):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:240: undefined reference to `XSetClassHint'
x11.o(.text+0x8bd):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:244: undefined reference to `XStoreName'
x11.o(.text+0x8d3):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:246: undefined reference to `XClearWindow'
x11.o(.text+0x8fb):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:248: undefined reference to `XMoveWindow'
x11.o(.text+0x91a):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:253: undefined reference to `XInternAtom'
x11.o(.text+0x943):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:271: undefined reference to `XMapWindow'
x11.o(.text+0x967):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:262: undefined reference to `XInternAtom'
x11.o(.text+0x9bd):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:265: undefined reference to `XChangeProperty'
x11.o(.text+0xa13):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:256: undefined reference to `XChangeProperty'
x11.o(.text+0xa64): In function `find_subwindow':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:339: undefined reference to `XQueryTree'
x11.o(.text+0xa87):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:344: undefined reference to `XGetWindowAttributes'
x11.o(.text+0xabd):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:355: undefined reference to `XFree'
x11.o(.text+0xb46): In function `get_x11_color':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:367: undefined reference to `XParseColor'
x11.o(.text+0xbb0):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:372: undefined reference to `XAllocColor'
x11.o(.text+0xc56): In function `create_gc':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:388: undefined reference to `XCreateGC'
x11.o(.text+0xc95): In function `font_get_text_width':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:446: undefined reference to `XTextWidth'
x11.o(.text+0xceb): In function `font_render_string':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:450: undefined reference to `XDrawString'
x11.o(.text+0xd72): In function `load_normal_font':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:470: undefined reference to `XLoadQueryFont'
x11.o(.text+0xdbd):/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:473: undefined reference to `XFreeFont'
x11.o(.text+0xe64): In function `set_font':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:522: undefined reference to `XSetFont'
x11.o(.text+0xe9f): In function `set_foreground_color':
/var/tmp/portage/torsmo-cvs-091304/work/torsmo/x11.c:528: undefined reference to `XSetForeground'
collect2: ld returned 1 exit status
make: *** [torsmo] Error 1 |
|
|
Back to top |
|
|
oberyno Guru
Joined: 15 Feb 2004 Posts: 467 Location: /bin/zsh
|
Posted: Tue Jan 25, 2005 12:39 pm Post subject: |
|
|
I would suggest not using CVS right now. I did a CVS checkout last week, and it was completely broken. FWIW, the last Changelog entry at that time was: Code: | 2005-01-5
* Did some HUGE modifications to make torsmo more modular. Stuff is
probably most broken at the moment. Avoid using CVS version!
* Applied some FreeBSD patch (thanks Roman Bogorodskiy) |
The Changelog is at /usr/portage/distfiles/cvs-src/torsmo-cvs/torsmo/ChangeLog. |
|
Back to top |
|
|
dan_aka_jack Apprentice
Joined: 04 Dec 2004 Posts: 169
|
Posted: Tue Jan 25, 2005 1:15 pm Post subject: |
|
|
Cool, thanks for pointing that out. Back to the old version of Torsmo!
I wonder if these "huge modifications" suggest that a version upgrade is iminent?
Thanks,
Jack |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Tue Jan 25, 2005 2:28 pm Post subject: |
|
|
dan_aka_jack wrote: | After some tinkering, I finally got ./configure to run successfully. |
Could you possibly tell how you managed to get ./configure to work? |
|
Back to top |
|
|
dan_aka_jack Apprentice
Joined: 04 Dec 2004 Posts: 169
|
Posted: Tue Jan 25, 2005 3:49 pm Post subject: |
|
|
Hmmm... let me see if I can remember how I got ./configure to work... ah yes...
Here's how I did it:
* I followed the instructions for installing torsmo-cvs from the gentoo wiki
* This failed with the error "!!! ERROR: app-admin/torsmo-cvs-091304 failed" so I searched through "torsmo-cvs.ebuild" and commented out all the lines which started with "epatch" (see page 8 of this thread for more info).
* This allowed "emerge torsmo-cvs" to proceed to the point where it downloaded torsmo to /var/tmp/portage/torsmo-cvs-091304/work/torsmo but the emerge failed when it tried to run ./configure. The error was "configure: error: can not find install-sh or install.sh in .. ../.. ../../.."
* So I went and edited /var/tmp/portage/torsmo-cvs-091304/work/torsmo/configure. I set "srcdir=" to "srcdir=/var/tmp/portage/torsmo-cvs-091304/work/torsmo". When I tried to run ./configure, the error was "cannot find source files in /var/tmp/portage/torsmo-cvs-091304/work/torsmo"
* So then I edited configure again and did a search for "can not find sources". The first hit was a little if-then statement which reads:
Code: |
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
else
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
fi
fi |
* I edited this section and just deleted both instances of "exit 1;".
* This allowed ./configure to run successfully. But make fails. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Wed Jan 26, 2005 8:07 pm Post subject: |
|
|
Ok, thanks.
I just thought that mayby this could be fixed in the ebuild, but after a second thought it might be better just wait until they fix it. |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Sun Jan 30, 2005 4:40 pm Post subject: |
|
|
I guess there is no way to set a maximum_width or similar, right? I'm tail-ling the last two lines of a log file with torsmo, but the cpu and hd bars keep changing size, which is quite annoying... _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
MrApples Guru
Joined: 13 Dec 2002 Posts: 511
|
Posted: Sun Jan 30, 2005 5:20 pm Post subject: |
|
|
.18-r2 is in portage and now supports xft _________________ http://www.whatsinyourbox.org -- Technology discussion, news, and more. |
|
Back to top |
|
|
catkfr Guru
Joined: 02 Aug 2004 Posts: 300
|
Posted: Sun Jan 30, 2005 5:28 pm Post subject: |
|
|
Mirko_3, you can specify the width of the bar:
Code: | ${cpubar height,width}
${membar 5,20} |
|
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Sun Jan 30, 2005 5:39 pm Post subject: |
|
|
Why, thanks, in my readme it only says ${cpubar height}, but it works great! _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
fatalglitch n00b
Joined: 25 Nov 2003 Posts: 54
|
Posted: Sun Jan 30, 2005 9:58 pm Post subject: |
|
|
When I run torsmo, it says:
torsmo: Xft not enabled
Ok, so how do I enable Xft? I'd like to have nice fonts
-Tom |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Mon Jan 31, 2005 12:09 am Post subject: |
|
|
fatalglitch wrote: | When I run torsmo, it says:
torsmo: Xft not enabled
Ok, so how do I enable Xft? I'd like to have nice fonts
-Tom |
what version are you using? check its use flags, xft might be under that.
killfire _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
az_zel n00b
Joined: 12 May 2004 Posts: 69
|
Posted: Mon Jan 31, 2005 8:44 pm Post subject: |
|
|
I recently upgraded to the new version of torsmo and it seems that I no longer have control over the font size. No matter which setting I use on the .torsmorc, the same HUGE font comes out. Any thoughts on this?
(When run, it outputs the following
torsmo: can't open /proc/acpi/battery/1/state: No such file or directory
torsmo: can't open /proc/apm: No such file or director
torsmo: drawing to root window
torsmo: drawing to single buffer) |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Mon Jan 31, 2005 9:12 pm Post subject: |
|
|
I've had the same problem when there is xft support enabled.
Try:
Code: | echo "app-admin/torsmo -truetype" >> /etc/portage/package.use
emerge torsmo |
|
|
Back to top |
|
|
az_zel n00b
Joined: 12 May 2004 Posts: 69
|
Posted: Mon Jan 31, 2005 10:05 pm Post subject: |
|
|
Yup... That was it. Thanks for the help . I'll have to try and figure out why xft does not play nice with the Truetype... |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Mon Jan 31, 2005 10:19 pm Post subject: |
|
|
xft/truetype works fine with me. The problem is that for some reason regular X fonts don't like to work if torsmo is compiled with xft support. |
|
Back to top |
|
|
curious_bob l33t
Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Tue Feb 01, 2005 8:29 am Post subject: |
|
|
killfire wrote: | fatalglitch wrote: | When I run torsmo, it says:
torsmo: Xft not enabled
Ok, so how do I enable Xft? I'd like to have nice fonts
-Tom |
what version are you using? check its use flags, xft might be under that.
killfire |
I have to same problem. Changing the use flags didn't work.
I'm using 0.18-r2 _________________ Play me online, well ya know that I'll beat you. If I ever meet you, I'll CRTL-ALT-DEL you!!!
The Black Vault The Largest Online Military and Government Research Center |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Tue Feb 01, 2005 11:19 am Post subject: |
|
|
curious_bob wrote: | killfire wrote: | fatalglitch wrote: | When I run torsmo, it says:
torsmo: Xft not enabled
Ok, so how do I enable Xft? I'd like to have nice fonts :)
-Tom |
what version are you using? check its use flags, xft might be under that.
killfire |
I have to same problem. Changing the use flags didn't work.
I'm using 0.18-r2 |
Do you have the following in your .torsmorc? Code: | use_xft yes
xftfont bitstream vera sans-7 |
Also try to comment out the old font line and see if that helps. And make sure you have compiled torsmo with truetype use-flag enabled. |
|
Back to top |
|
|
curious_bob l33t
Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Tue Feb 01, 2005 4:18 pm Post subject: |
|
|
pussi wrote: | And make sure you have compiled torsmo with truetype use-flag enabled. |
Thanks, that did it.
Also, is double buffering still broken in 0.18-r2? Mine froze when double buffering was used. _________________ Play me online, well ya know that I'll beat you. If I ever meet you, I'll CRTL-ALT-DEL you!!!
The Black Vault The Largest Online Military and Government Research Center |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Tue Feb 01, 2005 4:49 pm Post subject: |
|
|
curious_bob wrote: | Also, is double buffering still broken in 0.18-r2? Mine froze when double buffering was used. | I just tried it and it worked in both 0.18 and cvs version when there's only one instance of torsmo running. If I try to run multiple torsmos at the same time it won't work. |
|
Back to top |
|
|
|