I have a Bluethood remote control left over from a Firetv stick.
How do I integrate it with Libreelec?
Posts by Mario77
-
-
Is there tool for file search like "whereis", "locate" or similar from Linux
If you'r just looking for a file you will need to do that from SSH..
Otherwise if you mean search for items in Kodi library you have the search option in the Kodi library menu..
-
Make your own script...do you know which gpio is this fan using for control?
Ok I see looks like the board is controlling the speed and is a 2 wired fan..sorry not sure then...if it was mine I would just disconnect fan from argon board and add a transistor and connect directly to gpios
-
This is much to deep water for me, if there is a typo, i won't regognize that and drowning would be likely. For instance: They are counting the GPIO headers in my option the wrong way arround. i would say that there button is connected on pin 13 and 14.
But I am so in experienced, that my pin 5 and 6 probably are 35 and 36
I changed that as your wiring if you look on my post above
use_button=3as Da Flex pointed out Pin 5 is GPIO 03 as gpiozero uses gpio numbering..
So you keep using pin 5 (+) and 6 (-)
-
Mario77 : downloaded the zip and tried to install it, but unable to.
Which zip?
I didn't mean you just download that zip and install it...
but on previous post I made you a small modified script that will work..
You ll need to create a system.d service that start the script or use autostart.sh to start it..
This you can play around how you want ex changing the when released function to something like
Codedef rls(): global held_for if (held_for > 3.0): check_call(['/sbin/poweroff']) else: check_call(['/sbin/reboot'])
this will exec shutdown if held more then 3 seconds or reboot if less...
You got plenty of options to playwith...ex my switch has an led built into it and it can blink or fade or whatever you want it to do but for that you ll need an npn transistor.
-
input settings-peripherals
-
Mario77 : How do I do that, where do i find an exact discription to do that?
Will look something like this
Taken from here just changed few bits to work with LE..
You ll need to install Rpi Tools addon for this to work..
Python
Display More#!/usr/bin/python3 import sys sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib') from gpiozero import Button from signal import pause from subprocess import check_call use_button=3 held_for=0.0 def rls(): global held_for if (held_for > 5.0): check_call(['/sbin/poweroff']) elif (held_for > 2.0): check_call(['/sbin/reboot']) else: held_for = 0.0 def hld(): # callback for when button is held # is called every hold_time seconds global held_for # need to use max() as held_time resets to zero on last callback held_for = max(held_for, button.held_time + button.hold_time) button=Button(use_button, hold_time=1.0, hold_repeat=True) button.when_held = hld button.when_released = rls pause() # wait forever
-
Hello #Mario77... It seems that you are good at Linux coding. I am not that good at Linux/LE, and i have make few changes through SSH, so i know what it is ans so. Today i have Generic AMD/Intel/NVIDIA (x86_64) installed on a PC, and it is connected to a UPS that support it at a power break. My idea was to make a script or so like: "if LAN/ethernet goes down start shutdown.sh" or something like that. Thought there was an "power manager addon" that has a function for my idea, but can not find any. Best regards from Thore in Sweden
Hi,sorry can't help you much with that..I mostly play with my Rpi but have no idea about Generic AMD/Intel/NVIDIA (x86_64)
-
Wht don't you try gpiozero Button..more flexible....you can add short press reboot,long press shutdown etc
-
That's the right one.. ARC
Just make sure it's enabled from both TV and Kodi LE
-
My Samsung UE40D6530WS TV supports HDMI-CEC
This function is now enabled on both my TV and Raspberry Pi, but the remote control still does not respond to presses.
Change HDMI at TV..most TV's have only 1 of the hdmi's capable of cec input
Or go for something like
-
Still using my old Rpi2 on LE11.03...nothing to complain about...yes UI is bit slow using Aeon Nox Silvo but if you keep standard skin you ll have no issues..
-
Just create a small script and run this
Bash
Display More#!/bin/sh systemctl stop kodi echo "Configuring Pulseaudio" pactl load-module module-udev-detect 2>/dev/null sink=`pactl list short sinks | grep 'alsa' | awk '{print $2}' | grep 'hdmi'` source=`pactl list short sources | grep bluez | awk '{print $2}'` echo $source $sink pactl set-default-sink $sink pactl set-default-source $source echo "Starting Kodi" systemctl start kodi
-
You can probably also set the calbacks addon to "on playback started" and on "playback stopped"
-
You need something like Callbacks addon..
You have many options in addon to choose from...you just need to run a small script on play media..
Assuming your songs are in a folder called Music or Songs and you know how to connect relay etc this is all you need to run..
something like this...
Code
Display Moreimport xbmc import os import signal import sys sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib') import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup (26, GPIO.OUT) # pin 37 relay path = xbmc.getInfoLabel('Player.Folderpath') if "My_Music" in path or "My_Songs" in path: GPIO.output(26, GPIO.HIGH) else: GPIO.output(26, GPIO.LOW)
-
Ah, OK. So you are already working on the next release.
Is the 11.0.2 RPi4 PreRelease available as download?
Maybe try latest Le11 nightly
-
HD-Idle from repository? which addon are you using?
and command?
-
I think LE11 nightlies are already on 20.2..have a look
Code2023-07-06 10:20:19.904 T:837 info <general>: Starting Kodi (20.2 (20.2.0) Git:20.2-Nexus). Platform: Linux ARM 32-bit 2023-07-06 10:20:19.904 T:837 info <general>: Using Release Kodi x32 2023-07-06 10:20:19.904 T:837 info <general>: Kodi compiled 2023-07-02 by G CC 12.2.0 for Linux ARM 32-bit version 6.1.36 (393508)