Sep 9 2013

Rev eng cheap china g4 leds

20130909-224257.jpg


Jun 22 2013

vlc – add options to plugin

fn=”http://…mjpg”

number = vlc.playlist.add(fn,fn , ” :network-caching=290″);
vlc.playlist.playItem(number)

OR

vlc.playlist.add(fn,fn , ” :network-caching=290″);


May 11 2013

gpg error on apt-get update ?

apt-get update

gpg –keyserver subkeys.pgp.net –recv YOUR_KEY
gpg –export –armor YOUR_KEY | apt-key add –


May 5 2013

ffmpeg : single image to movie with sound

very simple:
ffmpeg -loop 1 -i bild.jpg -i sound.mp3 out.mov

besser (für 10sek mit x264 codec, größe 640×480) :
ffmpeg -loop 1 -i bild.jpg i Bengu_yarali.mp3 -t 10 -s 640×480 -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -y out.mov


Apr 25 2013

apt list Upgradeable packages

apt-get --just-print upgrade


Apr 17 2013

ffmpeg rotate video 90 or 180 degrees


#!/bin/bash

if [ “$2” == “180” ];then
#echo “180 Grad”;
ROTATE=”vflip,hflip”
elif [ “$2” == “90” ];then
#echo “90 Grad”;
ROTATE=”transpose=1″
else
echo -e “$0 mov [180/90]\n\t90 180″
exit
fi

MAX=”-maxrate 3020k -b 3020k -bufsize 2835k ”

#echo ffmpeg -i “$1” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf $ROTATE -y “$1.mov”
#ffmpeg -i “$1” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf “$ROTATE” “/cygdrive/z/09. Private/180/$1″
echo ffmpeg -i \”$1\” -vcodec libx264 -crf 23 -preset medium -profile:v high -level 41 -pix_fmt yuv420p -vf \”$ROTATE\” -y \’out/$1\’

 


Apr 7 2013

bash: all terminal colors:


for x in 0 1 4 5 7 8 ;do for i in `seq 30 37`; do for a in `seq 40 47`;do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m";done;echo ;done;done;echo "";

looks like this:
bash_colors


Mar 31 2013

tcpdump

tcpdump -n host 192.168.0.142 and not port 22 and not arp and not igmp and host 127.0.0.1

tcpdump commands chain. use  host, port, proto  or “not arp” etc. and “and” as chain

 

-w to write a file

-s 65535 for max possible size.

example to read in realtime packets:

tcpdump -XX not port 22 -s 65535


Mar 10 2013

ethersex – netio – dht11 (dht22 not working yet)

yes, ethersex has included now dht11 (cheap humidity and temperature sensor – 1 wire similar digital protocol)

 

here are some task I needed to do in order to get that working:

– scripts/add-hardware netio_local

then edit the newly created user file: pinning/hardware/user_netio_local.m4

for my lcd hd47780, yours maybe different pins:


dnl
dnl user_netio_local.m4
dnl
dnl Pin Configuration for 'user_netio_local'. Edit it to fit your needs.
dnl

/* onewire port range */
ONEWIRE_PORT_RANGE(PA6, PA6)

/* port the enc28j60 is attached to */
pin(SPI_CS_NET, SPI_CS_HARDWARE)

/* DHT 11/22 humidity and temperature sensors */
pin(DHT, PA7, INPUT)

pin(HD44780_RS, PD3)
pin(HD44780_EN1, PB0)
pin(HD44780_D4, PD4)
pin(HD44780_D5, PD5)
pin(HD44780_D6, PD6)
pin(HD44780_D7, PD7)

pin(HD44780_RW, PD2)

pin(HD44780_BL, PB1, OUTPUT)

then

make menuconfig

then make

then you have your hex file ethersex.hex

upload this file to your avr / netio .

I have a atmega32 inside, and it is filled up to the top. so space is an issue here.

99.8% full 🙂

I have activated i2c, 1wire, dht, hd44780, vfs, httpd


Mar 8 2013

Oktolight 16 is ready

full new design. now on atxmega128a1u and atxmega128a1 .
1khz pwm. same size and price as oktolight 8

sizes:

106 mm x 63 mm x 23 mm

smallest as possible oktolight for 16 channels so far. specially the height with 2,3 cm is amazing, you can squeeze it now everywhere in 🙂

so no master and no slave anymore. to complicated and too many devices. 🙂
you have now only 1 device and decide if you want to use 1, 4, 8,16 channels. Oktolight 16 is working great with boblight-enigma2, boblight and atmolight. And indeed with oktolight.exe. 🙂

oktolight-16Foto 1

Foto 2

Foto 5