Montag, 20. Oktober 2014

Raspberry Standard Time

permanent standard time clock

powered by raspberry pi








Install rasperiam wheezy on  an 16GB SD Card. Resize the card to full access

buy a standard time DVD from http://www.standard-time.com

* copy the st24.mov to your favorite folder ie /home/pi/time

* autologin to your raspberry pi:

edit /etc/inittab change

# 1:2345:respawn:/sbin/getty --noclear 38400 tty1
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1


* edit /boot/config.txt change overscan

disable_overscan=1

* edit /etc/kbd/config to disable blank screen

BLANK_TIME=0
BLANK_DPMS=off
POWERDOWN_TIME=0


* Install omxplayer

* edit a script to restart at 00:00 the omxplayer i.e. startst.sh

for i in $(ps -ax | grep omxplayer | cut -d " " -f2 )
do
  echo $i
  sudo kill $i
 sleep 2
done
clear

dat=$(date | cut -c 12-19 | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }')
/usr/bin/omxplayer -l $dat /home/pi/time/st24.mov


* cron your script every 00:00

crontab -l
#
59 23 * * * /home/pi/startst.sh

* To disable display during night hours you can cron this scripts to disable hdmi and enable hdmi


$ cat moff.sh
tvservice -o


$ cat mon.sh
#!/bin/bash
tvservice -p
sleep 1
sudo chvt 6
sleep 1
sudo chvt 7







Options to start with different players at actual time:


mplayer --ss hh:mm:ss (will not work in fullscreen on my 1920 x 1024 display)

omxplayer -l (in seconds) i.e 20:00:40 = 20 x 3600 + 0 x 60 + 40 x 1 = 72040



Sonntag, 5. Oktober 2014

Macintosh Nostalgie



Mac Emulator auf Raspberry PI


Emulator installieren:

http://minivmac.sourceforge.net/

Das Rom muss über google gesucht werden (vMAC.ROM)
Images sind hier zu finden: http://tkc8800.com/page/Macintosh-128k-512k-disk-images

pi@raspberrypi ~/macemu $ ls -l
total 3036
-rw-r--r-- 1 pi pi 819200 Oct  5 09:32 Disk603.dsk
-rw-r--r-- 1 pi pi 819200 Sep 15  1999 MacDraw.dsk
-rw-r--r-- 1 pi pi 409600 Feb 12  2014 MacPaint1.0_MacWrite1.0.dsk
-rw-r--r-- 1 pi pi 409600 Oct  5 09:31 MacPaint.dsk
-rwxr-xr-x 1 pi pi  96384 Nov 28  2013 MinivMac
drwxr-xr-x 2 pi pi   4096 Oct  5 09:34 sources
-rw-r--r-- 1 pi pi 409600 Feb 12  2014 SpaceInvaders.dsk
-rw-r--r-- 1 pi pi 138576 Sep 27  1997 vMac.ROM



Zunächst den VNC auf dem Raspi starten:


pi@raspberrypi ~ $ tightvncserver

New 'X' desktop is raspberrypi:1

Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log


Dann geht es auf dem Mac weiter:


starten wir mal den Mac



wir ziehen das System 6 auf den Emulator



Paint auch und schon können wir malen....






Macquarium ist zwar schon was älter, aber macht noch Spass

Mein altes Macquarium hat in der Firma ausgedient. Gute Gelegenheit mal statt Ostsee- ein Nordsee Aquarium zu machen. Viel mehr Muscheln...

Zunächst Kernsanierung:



für das Aquarium etwas zugesägtes Holz


uns einbauen


Ein Lampe, nun moderenes LED statt Leuchstoff



das Aquarium zusammenbauen


Alles montieren


Der Nordseesand muss noch geholt werden. Das da ist meine Version mit Ostsseeflair, Ostseesand habe ich noch jede Menge
 

Einen Macintosh Classic wieder herrichten

Dieser Mac hat einen "Simasi" Effekt. Wir nennen es Beulenpest. Er startet nicht. Der Schirm zeigt dicke weiße Streifen. Die Kondensatoren sind defekt. Ich besorge mit Welche und tausche sie aus.

Immerhin 17 Stück, alles SMD. Mal sehen ob es klappt