thank you very much for your help
Posts by Maltsev.v.v
-
-
I'm launching
Codeir-keytable -p lirc -p rc-5 -p rc-5-sz -p jvc -p sony -p nec -p sanyo -p mce_kbd -p rc-6 -p sharp -p xmp -p imon -p rc-mm
nothing happens. All other remotes show scanning. But not Iffalcon.
Then I decided to test lirc. I installed bookworm and lirc, ran irrecord, and the file was created.
iffalcon.lircd.conf
Code
Display Morebegin remote name IFFALCON_TV bits 24 flags SPACE_ENC|CONST_LENGTH eps 30 aeps 100 header 3968 3996 one 489 1999 zero 489 1007 ptrail 489 gap 65238 min_repeat 7 # suppress_repeat 7 # uncomment to suppress unwanted repeats toggle_bit_mask 0xA30A3 frequency 38000 begin codes KEY_UP 0xF590A6 KEY_DOWN 0xF580A7 KEY_LEFT 0xF560A9 KEY_RIGHT 0xF570A8 KEY_OK 0xFF400B KEY_EXIT 0xF060F9 end codes end remote
This is an Android TV, so CEC does not work very well.
Can you help, is it possible to solve the problem?
Is it possible to control libreelec with this remote?
-
Is it possible to run this script using your addon?
I need to see the remaining HDD space on OLED
Python
Display More#!/usr/bin/env python import re import time import busio import subprocess from threading import Timer from board import SCL, SDA from PIL import Image, ImageDraw, ImageFont import adafruit_ssd1306 i2c = busio.I2C(SCL, SDA) disp = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c) disp.fill(0) disp.show() width = disp.width height = disp.height image = Image.new("1", (width, height)) draw = ImageDraw.Draw(image) draw.rectangle((0,0,width,height), outline=0, fill=0) #draw.rectangle((0, 0, width, height), outline=0, fill=0) padding = -5 top = padding bottom = height - padding x = 0 # Load default font. font = ImageFont.truetype('/usr/local/bin/pistatus/icon/Ubuntu-R.ttf', 18) # Variables cpu_temp = 0 date_text = "01.01.1970" time_text = "00.00.00" hdd1_free = 0 hdd1_percent = 0 hdd2_free = 0 hdd2_percent = 0 screen_no = -1 def get_date_time(): global date_text global time_text cmd = "date +%H:%M" time_text = subprocess.check_output(cmd, shell = True).decode("utf-8") cmd = "date +%d-%m-%Y" date_text = subprocess.check_output(cmd, shell = True).decode("utf-8") t = Timer(10, get_date_time) t.start() get_date_time() def get_hdd(): global hdd1_free global hdd1_percent global hdd2_free global hdd2_percent cmd = "df -h | awk '$NF==\"/mnt/hdd\"{printf \"HDD1: %s\", $5}'" hdd1_percent = subprocess.check_output(cmd, shell = True).decode("utf-8") cmd = "df -h | awk '$NF==\"/mnt/hdd\"{printf \"FREE: %sB\", $4}'" hdd1_free = subprocess.check_output(cmd, shell = True).decode("utf-8") cmd = "df -h | awk '$NF==\"/mnt/hdd2\"{printf \"HDD2: %s\", $5}'" hdd2_percent = subprocess.check_output(cmd, shell = True).decode("utf-8") cmd = "df -h | awk '$NF==\"/mnt/hdd2\"{printf \"FREE: %sB\", $4}'" hdd2_free = subprocess.check_output(cmd, shell = True).decode("utf-8") t = Timer(2, get_hdd) t.start() get_hdd() def get_cpu_temp(): global cpu_temp cmd = "vcgencmd measure_temp" cpu_temp = subprocess.check_output(cmd, shell=True).decode("utf8") #return float(re.findall(r'\d+\.\d+', cpu_temp)[0]) t = Timer(5, get_cpu_temp) t.start() get_cpu_temp() def raise_screen_no(): global screen_no screen_no += 1 if screen_no > 5: screen_no = 0 t = Timer(4, raise_screen_no) t.start() raise_screen_no() while True: draw.rectangle((0,0,width,height), outline=0, fill=0) if screen_no == 1: #cpu°C image = Image.open("/usr/local/bin/pistatus/icon/temperature.bmp").convert("1") draw = ImageDraw.Draw(image) font = ImageFont.truetype('/usr/local/bin/pistatus/icon/Ubuntu-R.ttf', 30) draw.text((x, top+5), str(cpu_temp[5:9]+'°C'), font=font, fill=255) elif screen_no == 2: #hdd1 /dev/sda image = Image.open("/usr/local/bin/pistatus/icon/disk.bmp").convert("1") draw = ImageDraw.Draw(image) font = ImageFont.truetype('/usr/local/bin/pistatus/icon/Ubuntu-R.ttf', 18) draw.text((x, top), str(hdd1_percent), font=font, fill=255) draw.text((x, top+20), str(hdd1_free), font=font, fill=255) elif screen_no == 3: #hdd2 /dev/sdb image = Image.open("/usr/local/bin/pistatus/icon/disk.bmp").convert("1") draw = ImageDraw.Draw(image) font = ImageFont.truetype('/usr/local/bin/pistatus/icon//Ubuntu-R.ttf', 18) draw.text((x, top), str(hdd2_percent), font=font, fill=255) draw.text((x, top+20), str(hdd2_free), font=font, fill=255) else: #time font = ImageFont.truetype('/usr/local/bin/pistatus/icon/Ubuntu-R.ttf', 39) draw.text((x, top), str(time_text), font=font, fill=255) # Display image. disp.image(image) disp.show() time.sleep(1)
-
-
-
Hello.
LibreELEC 11
CSI camera connected to RPI. How to add to MotionEye that works in Docker.
Camera not showing up in libreelec system?
addon Raspberry PI Tools installed
uname -a
Linux LibreELEC 6.1.19 #1 SMP Sat Mar 18 20:56:24 UTC 2023 armv7l GNU/Linux
vcgencmd get_camera`
supported=1 detected=1, libcamera interfaces=0
v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12
/dev/video18
/dev/video31
/dev/media2
bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/media0
/dev/media1
Cannot open device /dev/video0, exiting.
nano /flash/config.txt
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2014 Stephan Raue ([email protected])
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
################################################################################
# Bootloader configuration
# config.txt version v1 (do not remove or change this line!)
################################################################################
# For more options and information see
################################################################################
# Default GPU memory split, 76MB are needed for H264 decoder
gpu_mem=76
# Enable I2C OLED
dtparam=i2c1=on
dtparam=i2c_arm=on
enable_uart=1
# Don't send initial active source message.
# Avoids bringing CEC (enabled TV) out of standby and channel switch when
# rebooting.
hdmi_ignore_cec_init=1
################################################################################
# Include distribution specific config file if it exists.
################################################################################
[all]
include distroconfig.txt
# uncomment to enable infrared remote recevier connected to GPIO 18
#dtoverlay=gpio-ir,gpio_pin=18
# uncomment to enable analog audio output
#dtparam=audio=on
#audio_pwm_mode=1
initramfs edid.cpio
docker ccrisan/motioneye:master-armhf
Codedocker run --name="motioneye" \ -p 8765:8765 -p 8081:8081 -p 81:81\ --hostname="motioneye" \ -v /var/run/localtime:/etc/localtime:ro \ -v /storage/.config/motioneye:/etc/motioneye \ -v /var/media/hdd2/motioneye:/var/lib/motioneye \ -e TZ=Europe/Minsk \ --restart="always" \ --detach=true \ ccrisan/motioneye:master-armhf
-
Yes you are right. Installed 10.9.5 Nexus and the problem was solved
-
cmdline.txt
config.txt
Code
Display More# Default GPU memory split - at least 288M is needed for some 4k HEVC files gpu_mem=320 # Set 'force_turbo=1' to disable dynamic overclocking and enable overclocking always. #force_turbo=0 # Force HDMI even if unplugged or powered off hdmi_force_hotplug=1 hdmi_ignore_cec_init=1 dtparam=i2c_arm=on ################################################################################ # Include distribution specific config file if it exists. ################################################################################ [all] include distroconfig.txt dtoverlay=gpio-shutdown,gpio_pin=26
-
Thank you. Could you please tell me how to do it.
edit /flash/config.txt?
-
Why do I want to use LE 9.2
Kodi18 and not use LE 10 Kodi10.0:
- several PI3s on the network at home
- iptv simple client - works much faster, with multicast and HLS
- addons flexget and transmission
-
-
Power supply 1 for them 12v8A
-
RPI + 2 HDD
Raspberry pi4 reboots intermittently.
To run LibreELEC-RPi4.arm-9.2.8.img
Copied start.elf from LibreELEC-RPi4.arm-11.0-nightly-20220618-b78941a.img
Please, tell me the reason
PS. On RPI3 everything works ok
-
Hello. tell me how to add pictures to games, as it is done for movies.
In the Home Menu, I select the GAMES category, add a folder with games.
choose, play. Everything is fine.example game SONIC.nes, next to put SONIC.png
well, or add another .nfoIn Movies and TV shows, this is easy to do, but with games it doesn’t work. interested in adding manually, not room collection brouse?
-
Thanks for the answer, please give a specific example of how to do this (compile).
Step by step in ssh -
Hi, I am using the RPI + MCP2515 can module.
I need to install
"can-utils-master" (https://drive.google.com/open?id=0b1o28l8c2amwse15q2xubhhvvkk)
and "hardbyte-python"
(https://drive.google.com/open?id=0b1o28l8c2amwqwswdtbqumr6mda)
How can I do it.
Please with the commands in the terminal