User:Kd8ikt

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(bubble level)
(dont forget)
 
(20 intermediate revisions by one user not shown)
Line 1: Line 1:
much <3 openmoko
 
 
James Lutz
 
Cincinnati, Ohio USA
 
 
kd8ikt at fuse.net
 
 
my useless home hosted webserver ipv6+ipv4
 
<br>http://we.trekbeyond.org/
 
 
call me on my moko 513 476 nine six nine four
 
 
 
==Current Projects==
 
==Current Projects==
  
===bubble level===
+
===streaming music browser icecast/shoutcast (mplayer frontend)===
*STAGE=planning
+
 
**pygtk ?
+
=== dont forget===
using accelerometer inputs draw a graph and calibrate a "level" point<br>
+
*damnit i forgot
so we can visualize accellerometer inputs <br>
+
**something about wifi bluetooth and networking and automated search, connect and routeing mesh crap, olsr, etc a smart daemon that once enabled will try misc configs/network setups to establish anytype of link be it client adhoc etc (easier said than done)
[[Image:Bubble.jpg]]
+
  
 
===demon daemon===
 
===demon daemon===
randomly toggles all the lights on/off and vibrator
+
randomly toggles all the lights on/off at a random times
 +
<br> vibrator stuff has been commented out
  
 
<pre>
 
<pre>
 
 
#!/bin/bash
 
#!/bin/bash
 
#/hacker/kd8ikt
 
#/hacker/kd8ikt
 
#this could be a neat silent ringer  
 
#this could be a neat silent ringer  
# doesnt do anything(safe) needs proper start/cleanup
+
#  
 
# REQUIRES BASH  $RANDOM
 
# REQUIRES BASH  $RANDOM
chilltime=1
 
 
e=echo
 
e=echo
 
aux_r=/sys/class/leds/gta02-aux\:red/brightness
 
aux_r=/sys/class/leds/gta02-aux\:red/brightness
Line 36: Line 22:
 
pow_o=/sys/class/leds/gta02-power\:orange/brightness
 
pow_o=/sys/class/leds/gta02-power\:orange/brightness
 
vib=/sys/class/leds/neo1973\:vibrator/brightness
 
vib=/sys/class/leds/neo1973\:vibrator/brightness
 +
 +
 +
get_rand_sleep() {
 +
        rand_time=$RANDOM
 +
        RANGE=5
 +
                let "rand_time %= $RANGE"
 +
sleep $rand_time
 +
}
  
 
get_rand() {
 
get_rand() {
Line 43: Line 37:
 
}
 
}
  
get_rand_vib() {
+
#get_rand_vib() {
randy_vib=$RANDOM
+
# randy_vib=$RANDOM
RANGE=200
+
# RANGE=250
let "randy_vib %= $RANGE"
+
# let "randy_vib %= $RANGE"
}
+
#}
start() {
+
 
 
while [ 1 == 1 ]; do
 
while [ 1 == 1 ]; do
sleep $chilltime
+
        get_rand_sleep
 
get_rand
 
get_rand
 
$e $randy > $aux_r
 
$e $randy > $aux_r
 +
        get_rand_sleep
 
get_rand
 
get_rand
 
$e $randy > $pow_b
 
$e $randy > $pow_b
 +
        get_rand_sleep
 
get_rand
 
get_rand
 
$e $randy > $pow_o
 
$e $randy > $pow_o
get_rand_vib
+
# get_rand_vib
$e $randy_vib > $vib
+
# $e $randy_vib > $vib
 
done
 
done
}
+
</PRE>
stop() {
+
#killscipt
#cleanup
+
<PRE>
 +
e=echo
 +
#cleanupSCIPT
 +
aux_r=/sys/class/leds/gta02-aux\:red/brightness
 +
pow_b=/sys/class/leds/gta02-power\:blue/brightness
 +
pow_o=/sys/class/leds/gta02-power\:orange/brightness
 +
vib=/sys/class/leds/neo1973\:vibrator/brightness
 +
 
 +
 
 +
        killall abovescriptname
 
$e 0 > $aux_r
 
$e 0 > $aux_r
 
$e 0 > $pow_b
 
$e 0 > $pow_b
 
$e 0 > $pow_o
 
$e 0 > $pow_o
 
$e 0 > $vib
 
$e 0 > $vib
}
 
 
echo i'm painted into a corner
 
 
  
  
  
 
</pre>
 
</pre>

Latest revision as of 16:27, 3 March 2009

Contents

[edit] Current Projects

[edit] streaming music browser icecast/shoutcast (mplayer frontend)

[edit] dont forget

  • damnit i forgot
    • something about wifi bluetooth and networking and automated search, connect and routeing mesh crap, olsr, etc a smart daemon that once enabled will try misc configs/network setups to establish anytype of link be it client adhoc etc (easier said than done)

[edit] demon daemon

randomly toggles all the lights on/off at a random times
vibrator stuff has been commented out

#!/bin/bash
#/hacker/kd8ikt
#this could be a neat silent ringer 
# 
#		REQUIRES BASH  $RANDOM
e=echo
aux_r=/sys/class/leds/gta02-aux\:red/brightness
pow_b=/sys/class/leds/gta02-power\:blue/brightness
pow_o=/sys/class/leds/gta02-power\:orange/brightness
vib=/sys/class/leds/neo1973\:vibrator/brightness


get_rand_sleep() {
        rand_time=$RANDOM
        RANGE=5
                let "rand_time %= $RANGE"
sleep $rand_time
}

get_rand() {
	randy=$RANDOM
	RANGE=2
		let "randy %= $RANGE"
}

#get_rand_vib() {
#	randy_vib=$RANDOM
#	RANGE=250
#	let "randy_vib %= $RANGE"
#}

	while [ 1 == 1 ]; do
        get_rand_sleep
	get_rand
		$e $randy > $aux_r
        get_rand_sleep
	get_rand
		$e $randy > $pow_b
        get_rand_sleep
	get_rand
		$e $randy > $pow_o
#			get_rand_vib
#		$e $randy_vib > $vib
	done
  1. killscipt
e=echo
#cleanupSCIPT
aux_r=/sys/class/leds/gta02-aux\:red/brightness
pow_b=/sys/class/leds/gta02-power\:blue/brightness
pow_o=/sys/class/leds/gta02-power\:orange/brightness
vib=/sys/class/leds/neo1973\:vibrator/brightness


        killall abovescriptname
	$e 0 > $aux_r
	$e 0 > $pow_b
	$e 0 > $pow_o
	$e 0 > $vib



Personal tools

much <3 openmoko

James Lutz Cincinnati, Ohio USA

kd8ikt at fuse.net

my useless home hosted webserver ipv6+ipv4
http://we.trekbeyond.org/

call me on my moko 513 476 nine six nine four

Current Projects

bubble level

  • STAGE=planning
    • pygtk ?

using accelerometer inputs draw a graph and calibrate a "level" point
so we can visualize accellerometer inputs
Bubble.jpg

demon daemon

randomly toggles all the lights on/off and vibrator


#!/bin/bash
#/hacker/kd8ikt
#this could be a neat silent ringer 
# doesnt do anything(safe) needs proper start/cleanup
#		REQUIRES BASH  $RANDOM
chilltime=1
e=echo
aux_r=/sys/class/leds/gta02-aux\:red/brightness
pow_b=/sys/class/leds/gta02-power\:blue/brightness
pow_o=/sys/class/leds/gta02-power\:orange/brightness
vib=/sys/class/leds/neo1973\:vibrator/brightness

get_rand() {
	randy=$RANDOM
	RANGE=2
		let "randy %= $RANGE"
}

get_rand_vib() {
	randy_vib=$RANDOM
	RANGE=200
	let "randy_vib %= $RANGE"
}
start() {
	while [ 1 == 1 ]; do
	sleep $chilltime
	get_rand
		$e $randy > $aux_r
	get_rand
		$e $randy > $pow_b
	get_rand
		$e $randy > $pow_o
			get_rand_vib
		$e $randy_vib > $vib
	done
}
stop() {
#cleanup
	$e 0 > $aux_r
	$e 0 > $pow_b
	$e 0 > $pow_o
	$e 0 > $vib
}

echo i'm painted into a corner