OpenELEC (official) 8 LIRC dropped

You don’t need Lircmap.xml in your userdata or yout lirc.cfg anymore, but you need to create an other keytable via ir-keytable… have a look here
furthermore i had to change the config.txt via

mount -o remount,rw /flash && nano /flash/config.txt

from:

dtoverlay=lirc-rpi

to:

dtoverlay=gpio-ir

and change autostart

systemctl stop eventlircd.service
ir-keytable -a /storage/.config/rc_maps.cfg

where rc_maps.cfg consists of ” * * NAME” which is pointing to
“.config/rc_keymaps/NAME” which looks as follows:

# table NAME, type: NEC
0x813712 BTN_TRIGGER_HAPPY
0x813755 KEY_INFO
0x81370f KEY_UP #Up
0x81370b KEY_DOWN #Down
0x813728 KEY_RIGHT #right
0x813727 KEY_LEFT #left
0x81370a KEY_PLAY #play_pause
[…]
0x813759 KEY_MENU #menu

[SOURCE]

everything else, linke longpress feature works as in the old days with lircd. [SOURCE]

Advertisements

flickering hyperion

hyperion Wall Light in RPI b+ with Arduino-TM1829 anti flicker, strobe etc.

change service user (pi) to lesser restricted user (root) cause libreelec/openelec/OSMC uses root privileged hyperion forwarder….
: $ sudo service hyperion status

hyperion.service – Hyperion Systemd service
Loaded: loaded (/etc/systemd/system/hyperion.service; enabled)

: $ sudo nano /etc/systemd/system/hyperion.service

change line 6:

User=pi

to:

User=root

: $ sudo systemctl daemon-reload
: $ sudo service hyperion restart

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

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

SPf3EVO & HC05

I managed to get the HC05 Bluetooth Module (on a ZS-040 Adapterboard) working on my  Seriously Pro Racing F3 Evolution flight Controller.

i had to pull PIN34 on the HC05 to HIGH to get into “Full AT+Mode” change the UART Baudrate to 115200 via

at+uart=115200,0,0

Then connect

(HC05) RXD-T1 (SPf3 UART1)
(HC05) TXD-R1 (SPf3 UART1)
(HC05) VCC-5V (SPf3 5V RAIL)
(HC05) GND-GND (SPf3 GND RAIL)

finally go into Cleanflight, Port tab and activate MSP on Port1 with 115200

Full AT+COMMAND List for HC05

[Sources: http://blog.dronetrest.com & http://www.martyncurrey.com]

GMX freemail IMAP

S0 n1c3,
found out, that, if you have free GMX mail, you can use imap Protocol Server.
for Mac:
  • create new Mailbox, use a wrong password.
  • After failing the test, select on the next screen the imap protocol and change the imap server to “imap.gmx.net” and user your correct password.
  • voilà! now your email read status & deleted emails will be in sync if you set up the imap mailbox on every device.