input settings-peripherals
Posts by Mario77
-
-
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) -
Probably at some point you had those addons installed and altough you removed them you still have left overs in your addons db..
Quick dirty solution if you r trying to clean your leftovers is to just rename your addons db - restart your LE box and re enable all your addons again.
-
-
I did install both: Services-tvheadend 4.1 stable and client on Le12 nightly, entered config at http://libreelec:9981/ but under Settings>DVB>TV Tuners, my PI DVB Tv tuner hat does not appear.
Shall i add any dtoverlay for the tv hat?
I entered dtoverlay=rpi-tv in confix.txt but I can't see the tuner in the web app.
Does it show in LE11 without any overlays?
-
Same problem here, but worse, the remove unsafe chars and windows compatible filename options only seems to work with the filename not the folder name (actually it might work intermittently which is even odder). But the problem is I am using exFat formatted external drive so any recording with for example a : in like New: xxx fails when trying to create this directory. I moved away from formatting the external drive with a linux format as every time I had a power cut the drive would get corrupted. exfat doesn't do this, but now there is the problem with filenames. I am really struggling to find a solution. Ay thoughts appreciated
Your issue is the way you are setting up your recordings...
If you are just recording from epg your recordings directory is going to be exactly as it s showing in the epg..
Your solution is that when you set a recordings go to your auto recordings menu from tvheadend pvr and edit the directory otherwise do it from the tvheadend UI ...menu digital video recorder-autorecs and edit/fix your directory from there..
-
What is your hardware?
RPi2