summaryrefslogtreecommitdiffstats
path: root/oncology
diff options
context:
space:
mode:
Diffstat (limited to 'oncology')
-rw-r--r--oncology/Makefile22
-rw-r--r--oncology/lcd4linux.conf47
2 files changed, 56 insertions, 13 deletions
diff --git a/oncology/Makefile b/oncology/Makefile
new file mode 100644
index 00000000..258ee130
--- /dev/null
+++ b/oncology/Makefile
@@ -0,0 +1,22 @@
+build-deps:
+ #punani -Ei libtool automake autoconf zlib1g-dev libssl-dev python-dev libc6 libusb-dev libibus-dev subversion libgd2-noxpm-dev libgd2-noxpm lcd4linux
+
+/usr/bin/lcd4linux: build-deps
+ #punani -Ei lcd4linux
+ sed -i 's/usr\/sbin\/lcd4linux/usr\/bin\/lcd4linux/g' /etc/init.d/lcd4linux
+ dpfhack_display/build-dpf-lcd4linux.sh
+ make -C dpfhack_display/lcd4linux/ install
+
+lcd4linux_autostart:
+ # service lcd4linux start
+ # update-rc.d lcd4linux
+
+install: /usr/bin/lcd4linux /etc/lcd4linux.conf lcd4linux_autostart
+ # TODO this is debian only
+
+update: /etc/lcd4linux.conf
+
+/etc/lcd4linux.conf: lcd4linux.conf
+ chown krebs:krebs lcd4linux.conf
+ chmod 600 lcd4linux.conf
+ cp -a lcd4linux.conf /etc/lcd4linux.conf
diff --git a/oncology/lcd4linux.conf b/oncology/lcd4linux.conf
index c8cbe75e..34df9f65 100644
--- a/oncology/lcd4linux.conf
+++ b/oncology/lcd4linux.conf
@@ -435,7 +435,7 @@ Widget FileTitle {
Widget SetFileMsg {
class 'Timer'
- expression FileMsg = exec('tail -n 1 /root/dskeylistener/listener.log', 2 * second)
+ expression FileMsg = exec('tail -n 1 /var/log/syslog', 2 * second)
active 1
update 2 * second
}
@@ -470,7 +470,26 @@ Widget File3 {
Widget Weather1 {
class 'Text'
expression exec('/krebs/kachelmann/wetter', 10 * second)
- prefix 'Wetter'
+ prefix 'Wetter:'
+ width width100
+ align 'L'
+ Background darkgray
+ update 10 * second
+}
+Widget Bitcoin {
+ class 'Text'
+ expression exec('/krebs/btc/mtgox/ticker_text.sh', 10 * second)
+ prefix 'BTC: '
+ width width100
+ align 'L'
+ Background darkgray
+ update 30 * second
+}
+
+Widget Stream {
+ class 'Text'
+ expression exec('/krebs/streams/streams status', 10 * second)
+ #prefix 'Stream:'
width width100
align 'L'
Background darkgray
@@ -479,7 +498,7 @@ Widget Weather1 {
Widget Debug {
class 'Text'
- expression 'Serverdisplay - pkern.at'
+ expression 'Serverdisplay - Krebs'
width linesize
align 'C'
Foreground lightgray
@@ -494,7 +513,7 @@ Widget na {
Widget Bgnd {
class 'Image'
- file '/krebs/cholerab/bling/krebs-v2_320x240.png '
+ file '/krebs/cholerab/bling/krebs-v2_320x240.png'
reload 0
update 0
inverted 0
@@ -525,16 +544,18 @@ Layout Krebs {
Row14.Col29 'FSSpace1'
Row17.Col02 'ServicesTitle'
- Row18.Col02 'BindDNSStatus'
- Row19.Col02 'MuninStatus'
+ #Row18.Col02 'BindDNSStatus'
+ #Row19.Col02 'MuninStatus'
Row20.Col02 'ApacheStatus'
- Row21.Col02 'MiniDLNAStatus'
- Row18.Col29 'PostfixStatus'
- Row19.Col29 'ProFTPStatus'
- Row20.Col29 'SambaStatusDS'
- Row21.Col29 'SSHStatusDS'
+ #Row21.Col02 'MiniDLNAStatus'
+ #Row18.Col29 'PostfixStatus'
+ #Row19.Col29 'ProFTPStatus'
+ #Row20.Col29 'SambaStatusDS'
+ Row20.Col29 'SSHStatusDS'
- Row23.Col02 'Weather1'
+ Row21.Col02 'Weather1'
+ Row22.Col02 'Bitcoin'
+ Row23.Col02 'Stream'
Row25.Col02 'FileTitle'
Row26.Col02 'File1'
@@ -543,7 +564,7 @@ Layout Krebs {
Row30.Col01 'Debug'
- #Timer1 'SetFileMsg'
+ Timer1 'SetFileMsg'
Layer 2 {
X1.Y1 'Bgnd'