TM1829 aka Aldilight Arduino Hyperion Control

at Last…

For Example using a string of 26 LEDs.
using the neobob library in arduino IDE
line 36
#include <neobob.h>
setting line 37 to
#define NOLEDS 26

and line 39 to
const char head[] = {0x41, 0x64, 0x61, 0x00, 0x1A, 0x4F}; //AdaMagic-26LEDS 01-26

source:Adalight prefix Magic Generator

aswell leaving line 56 as it is.
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NOLEDS, PIN, NEO_GRB + NEO_KHZ800);

made the strip light up. When using the preset Bootsequence
colorWipe(PINK);
delay(100);
colorWipe(ORANGE);
delay(100);
colorWipe(BLACK);

the first pixel won’t show the correct color, ignore it!
even a simple colorWipe(BLACK); lit up the first pixel in blue flashes…

when controlled via hyperion, using the following hyperion.config.json works for 26 Pixel (every TM1829 controls 3 LEDs in the Aldi RGB LED Strip Configuration)
http://codepad.org/53wcKxWN (even setting diffrent bautrates like in neobob.in “460800” and in hyperion.config.json “500000” works, had to, to interact with a ESP8266)
the syslog output shows correct number of leds:
tail -f /var/log/syslog"
Feb 19 11:58:23 pi systemd[1]: Starting Hyperion Systemd service...
Feb 19 11:58:23 pi systemd[1]: Started Hyperion Systemd service.
Feb 19 11:58:23 pi hyperiond[24219]: Hyperion Ambilight Deamon (24219)
Feb 19 11:58:23 pi hyperiond[24219]: Version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
Feb 19 11:58:23 pi hyperiond[24219]: Build Time: Jul 25 2016 06:54:40
Feb 19 11:58:24 pi hyperiond[24219]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
Feb 19 11:58:24 pi hyperiond[24219]: HYPERION INFO: ColorTransform 'default' => [0; 26]
Feb 19 11:58:24 pi hyperiond[24219]: LEDDEVICE INFO: configuration:
Feb 19 11:58:24 pi hyperiond[24219]: {
Feb 19 11:58:24 pi hyperiond[24219]: "colorOrder" : "rgb",
Feb 19 11:58:24 pi hyperiond[24219]: "delayAfterConnect" : 200,
Feb 19 11:58:24 pi hyperiond[24219]: "name" : "Caps",
Feb 19 11:58:24 pi hyperiond[24219]: "output" : "/dev/ttyUSB0",
Feb 19 11:58:24 pi hyperiond[24219]: "rate" : 500000,
Feb 19 11:58:24 pi hyperiond[24219]: "type" : "adalight"
Feb 19 11:58:24 pi hyperiond[24219]: }
Feb 19 11:58:24 pi hyperiond[24219]: Opening UART: /dev/ttyUSB0
Feb 19 11:58:24 pi hyperiond[24219]: Device blocked for 200 ms
Feb 19 11:58:24 pi hyperiond[24219]: INFO: Creating linear smoothing
Feb 19 11:58:24 pi hyperiond[24219]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=75;updateDelay=0
Feb 19 11:58:24 pi hyperiond[24219]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
Feb 19 11:58:24 pi hyperiond[24219]: EFFECTENGINE INFO: Initializing Python interpreter
Feb 19 11:58:24 pi hyperiond[24219]: INFO: Hyperion started and initialised

Advertisements

MQTT Raspbian error ‘Nicht gen?gend Hauptspeicher verf?gbar’

a little workaround: the message is wrong, it should mean, “can’t extract file, because i’m too stupid to see a gzipp format and use the proper  command”

here’s the full message:

sudo cpan install Net::MQTT:Constants
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
 Database was generated on Mon, 13 Feb 2017 02:17:02 GMT
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
 Database was generated on Tue, 14 Feb 2017 12:17:02 GMT
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running install for module 'Net::MQTT::Constants'
Checksum for /root/.cpan/sources/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz ok
Uncompressed /root/.cpan/sources/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz successfully
Using Tar:/bin/tar xf "Net-MQTT-1.163170.tar":
Couldn't untar Net-MQTT-1.163170.tar: 'Nicht gen?gend Hauptspeicher verf?gbar' <--wrong Error!
'YAML' not installed, will not store persistent state
 BEANZ/Net-MQTT-1.163170.tar.gz
 Had problems unarchiving. Please build manually
  • i switched to root via
     sudo -s
  • went to
    /root/.cpan/sources/authors/id/B/BE/BEANZ/
  • did a
    tar xzf Net-MQTT-1.163170.tar.gz
  • then again forcing cpan again:
    cpan install Net::MQTT:Constants

worked! s0n1c3!

NFS on MAC OSX 10.11.6 El Capitan

slowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowetc…not!

use NFS Manager to mount your NFS shares. To get the correct options, login to your NFS via ssh and execute:

cat /etc/exports

should look somethin like

/home           *.galaxis.de(rw,no_subtree_check,insecure)
/usr/share      *.galaxis.de(ro,all_squash)
/nfs/Data *(rw,all_squash,sync,insecure,anonuid=65534,anongid=65534)

i also use nolocks and noatime.

Past: 5.6MB/s Now: 13.2MB/s

grant fhem root privileges on libreelec via ssh

on libreelec machine:

login via password is libreelec (or openelec)
ssh root@”hostname”
create ssh Directory:

mkdir .ssh

on fhem machine:

allow fhem user login via:

sudo nano /etc/passwd

change Path “/false” to “/bash” (exit nano via “ctrl+x” and confirm changes)

fhem:x:999:20::/opt/fhem:/bin/false
fhem:x:999:20::/opt/fhem:/bin/bash

generate password for user fhem via:

sudo passwd fhem

log in user fhem:

su fhem

generate ssh keys:

ssh-keygen -t rsa -b 4096

copy keys to libreelec:

ssh-copy-id -i /opt/fhem/.ssh/id_rsa.pub root@kodi

test connection (still logged in as fhem user):

ssh root@kodi && exit

exit fhem user session:

exit

disable fhem user login:

change Path “/bash” to “/false” (exit nano via “ctrl+x” and confirm changes)

fhem:x:999:20::/opt/fhem:/bin/bash
fhem:x:999:20::/opt/fhem:/bin/false

delete password for user fhem via:

sudo passwd -d fhem