|
2012-11-24
, 09:29
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#282
|
I copied your sample script verbatim and saved is plain text "wtc.sh" in a "/home/user/MyDocs/scripts" directory. Then I pointed Billboard to it via:
{script:/home/user/MyDocs/scripts/wtc.sh}
The Following 3 Users Say Thank You to thp For This Useful Post: | ||
|
2012-11-24
, 10:33
|
|
Posts: 665 |
Thanked: 2,388 times |
Joined on Feb 2012
@ Zagreb, Croatia
|
#283
|
|
2012-11-24
, 12:28
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#284
|
I have a suggestion...
I'm running out of rows to display info I want visible at all the time.
I tried changing text size to Small in hope that I'll gain more space for more rows, but frame itself shrinks too.
Can that be separated?
Temp frame size set to biggest possible and then text on it rendered separately in it's own size, so some of us can gain more rows?
{song!{network-name}}
|
2012-11-27
, 09:00
|
Posts: 26 |
Thanked: 2 times |
Joined on Nov 2012
|
#285
|
- Add "#!/bin/sh" as the first line of the script
- Save the script in e.g. /home/user/wtc.sh
- chmod +x /home/user/wtc.sh
- Add to Billboard: {script:/home/user/wtc.sh}
|
2012-11-27
, 11:30
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#286
|
|
2012-11-27
, 20:22
|
Posts: 26 |
Thanked: 2 times |
Joined on Nov 2012
|
#287
|
|
2012-11-28
, 05:56
|
Posts: 3 |
Thanked: 6 times |
Joined on Nov 2012
|
#288
|
is it possible to get the date for these locations to display as DDMMYY instead of YYYYMMDD (i.e. "11/27/12" or "11-27-2012" instead of "2012-11-27"?) And display time as 12-hour format instead of 24-hour format?
Thanks.
date +"%m/%d/%y %H:%M"
date +"%m-%d-%Y %H:%M"
The Following 2 Users Say Thank You to deseven For This Useful Post: | ||
|
2012-11-28
, 06:04
|
Posts: 3 |
Thanked: 6 times |
Joined on Nov 2012
|
#289
|
echo "krn: "`uname -r | cut -f1 -d"-"`"-"`uname -m`
echo "la: "`cat /proc/loadavg | cut -f1,2,3 -d" "`
uptime=`cat /proc/uptime` uptime=${uptime%%.*} m=$(( uptime/60%60 )) h=$(( uptime/60/60%24 )) d=$(( uptime/60/60/24 )) echo "up: "$d"d "$h"h "$m"m"
echo "mem: "`awk '/MemFree/ {printf( "%.0f\n", $2 / 1024 )}' /proc/meminfo`"/"`awk '/MemTotal/ {printf( "%.0f\n", $2 / 1024 )}' /proc/meminfo`"M"
echo "disk: "`df -hP | awk '/MyDocs/ {printf( "%.1f\n", $4 )}'`"/"`df -hP | awk '/MyDocs/ {printf( "%.1f\n", $2 )}'`"G"
|
2012-11-29
, 02:20
|
Posts: 26 |
Thanked: 2 times |
Joined on Nov 2012
|
#290
|
I copied your sample script verbatim and saved is plain text "wtc.sh" in a "/home/user/MyDocs/scripts" directory. Then I pointed Billboard to it via:
{script:/home/user/MyDocs/scripts/wtc.sh}
But nothing comes up except the {weekday} and {date} that I already have set a line above it.