Posts by spotless

    I am using the same box to water the garden and I need to do a check after start up.

    How do I get a script to run after start up?

    I can start the script at a particular time eg 3:20 pm but I can not work out how to start it after boot up.

    I have edited crontab and used the @boot command

    crontab -e

    @reboot /path-to-script/script (or command)

    20 15 * * * /storage/Daves-script/script

    The script does not run at reboot but does at 3:20 pm

    Any help would be welcomed

    Dave

    So now I have done this

    1) systemctl stop kodi

    2) systemctl stop eventlircd


    3) I edited nano /storage/.config/rc_maps.cfg

    and placed this line at the bottom

    * rc-leadtek-y04g0051 /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    4) ir-keytable -c -w /storage/.config/rc_keymaps/leadtek_y04g0051.toml


    5) ir-keytable -a /storage/.config/rc_maps.cfg -s rc0


    6) test with ir-keytable -t -s rc0

    All looks good


    7) systemctl start eventlircd

    8) systemctl start kodi


    9) reboot

    result remote not working

    Re-read guide Infra-Red Remotes - LibreELEC.wiki

    and tried


    1) systemctl stop kodi

    2) systemctl stop eventlircd


    3) Thought this was ok

    4) not done


    5) ir-keytable -a /storage/.config/rc_maps.cfg

    Note I did not get any output as in the guide ( below) with this rc_maps.cfg

    A clue

    back to 3)

    3) I edited nano /storage/.config/rc_maps.cfg

    # driver table file

    #

    * rc-leadtek-y04g0051 /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    first change was to

    sunxi-ir rc-leadtek-y04g0051 /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    still did not work. So changed to

    sunxi-ir * /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    Worked so my problem is in the table name

    LibreELEC:~ # ir-keytable -a /storage/.config/rc_maps.cfg

    Old keytable cleared

    Wrote 50 keycode(s) to driver

    Protocols changed to nec

    6) test with ir-keytable -t -s rc0

    All looks good

    7) systemctl start eventlircd

    8) systemctl start kodi


    9) reboot


    Remote Works now.

    On a side note

    I noticed Default keymap: rc-empty could this be a problem in the future?


    # ir-keytable

    Found /sys/class/rc/rc0/ with:

    Name: sunxi-ir

    Driver: sunxi-ir

    Default keymap: rc-empty

    Input device: /dev/input/event0

    LIRC device: /dev/lirc0

    Attached BPF protocols:

    Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm

    Enabled kernel protocols: lirc nec

    bus: 25, vendor/product: 0001:0001, version: 0x0100

    Repeat delay = 500 ms, repeat period = 125 ms

    Thanks for your reply ghtester

    It sent me into the right direction to find the solution

    Dave

    First: Thank you all for this great project

    The version is Nightly-20210119-c4186be

    I am using this guide Infra-Red Remotes - LibreELEC.wiki and an ssh into a terminal

    I edited nano /storage/.config/rc_maps.cfg

    and placed this line at the bottom

    * rc-leadtek-y04g0051 leadtek_y04g0051.toml

    Then I cp /usr/lib/udev/rc_keymaps/leadtek_y04g0051.toml /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    so that I could change the remote to include the "back" command

    I enable the changes with

    ir-keytable -c -w /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    The remote works great until I reboot

    Then it does nothing until I

    ir-keytable -c -w /storage/.config/rc_keymaps/leadtek_y04g0051.toml again


    I noticed this in the wiki

    "The embedded files can be overridden at boot time by creating

    /storage/.config/lircd.conf and

    /storage/.config/lirc_options.conf

    with needed changes."

    What are they for? Is this what I need to change?

    Mine are empty.

    Any help would be appreciated

    Dave

    I noticed that the gpio is being used for a remote control projects so I am wondering if I could use it for temperature sensing with the DS18B20.

    In armbian I enable it by adding to /boot/armbianEnv.txt:

    Code
    overlays=w1-gpio
    param_w1_pin=PD14

    If it is possible to use this sensor. How do I enable it?

    I have a orange pi PC

    Thanks for your help

    Dave