I think the main issue was that he couldn't get the camera stream to work from LE..
Posts by Mario77
-
-
Allright guys i did it. It is working now. I've changed every path to correct one and i imported everything as shown in code below:
Python
Display Moreimport time import sys sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib') sys.path.append('/storage/.kodi/addons/virtual.adafruit-libraries/lib') sys.path.append('/storage/.kodi/addons/virtual.system-tools/lib') import Adafruit_GPIO.I2C as I2C import os import smbus bus = smbus.SMBus(1) import Adafruit_SSD1306 from PIL import Image from PIL import ImageDraw from PIL import ImageFont
Thanks everyone for help.
Great Job!
Didn't notice you needed also system-tools libraries for smbus.so
Glad it's working ..
-
I think it's another issue you have..
Never played with adafruit on LE but I dont't think virtual.rpi-tools is what you need to run that script..
I m sure I v seen an adafruit library addon somewhere on this forum..but have no idea where to start from ..
Ok had a look it's in LE repo virtual.adafruit-libraries
Looks like it got what you need
-
Thanks,
I will try it and post result here.
How about that /storage/ folder?That s fine where it is..
make sure script have permissions to run..
can you show us what's in RGB_Cooling_HAT.py?
-
-
Klojum and Mario77
I think that you are right. I should try JSON-RPC and create script. (I never did it but I will try)
Mario77, you gave me the best clue how to do it. I assume that I have to set static IP for every player and then send the same command to all of them.I will try.
yes they will have to have static IP..
If you get stuck with script ask here..
Going to give you a good hint where to start from..all you need is something like this..
Bash
Display More#!/bin/sh monitor() { /storage/.kodi/addons/virtual.system-tools/bin/inotifywait -m -r -e close_write,delete --format "%e %T %w%f" --fromfile /path/to/your/file/with/movie_paths --timefmt "%d_%b_%Y_%T_%Z" --exclude '(\.jpg|\.nfo|\.edl|\.removing|\.logo.txt)' | while read event datetime watched_filename; do if [[ $event = "CLOSE_WRITE,CLOSE" ]]; then kodi-send --host=box_a.xxx.x.xxx --port=xxxx --action="UpdateLibrary" kodi-send --host=box_b.xxx.x.xxx --port=xxxx --action="UpdateLibrary" kodi-send --host=box_c.xxx.x.xxx --port=xxxx --action="UpdateLibrary" etc.. etc.. elif [[ $event = "DELETE" ]]; then kodi-send --host=boxa.xxx.x.xxx --port=xxxx --action="CleanLibrary" kodi-send --host=boxa.xxx.x.xxx --port=xxxx --action="CleanLibrary" kodi-send --host=boxa.xxx.x.xxx --port=xxxx --action="CleanLibrary" etc... fi done } monitor &
then create another file with just the paths to your movies folders that you want to watch for changes one under the other and set path in script for that file
Also I just remembered that there is also an addon called WatchDog you can use...but probably you will have to install it on every box and I don t think it's network friendly...it's probably just for connected devices but you can always try..
The other way in previous post is only set up on 1 box and sends json to all boxes which is better once setup..
-
You probably have to make your own script..
The tools you need are already their with the System Tools Addon..
I have something similar to what you r asking altough it's a bit more elaborated then just cleaning library..I got a TVHeadend server sending recordings to my box after they r done with comskip etc..that is when inotifywatch from system tools comes in handy..
What you need to do is set 1 of your boxes that has LibreElec running to watch the folder where your movies are saved with inotifywait..
It works wonders..
then set up a script..something like if event is CLOSE_WRITE,CLOSE (movie added) update all libraries,if event is DELETE then clean all libraries..
...use kodi-send --action to send commands to clean libraries or update added movies to all boxes..
-
-
Been trying AEL, but it won't launch, just get a swirling circle constantly, so can't even get the setup started.
My system is an Asus CN60 Chromebox with Chrome OS removed and running latest generic intel x86/64 LibreELEC.
I have retroArch and IAGL set up and working, but IAGL downloads the ROM every time.
I have all the emulators, ROMs and Bios set up, I can play all the ROMs by going to file manager and selecting play with retroplayer and they run fine, I just need a way of organising, displaying and launching them.
Does Rom collection browser not work with LibreELEC? Am I missing something?
I followed the instructions on seo-michael and I just checked the nfo files that RCB created during import, most of the fields are blank, just the platform and games name filled in, no artwork gets download during the import.
Not sure about if it works on your setup...but AEL works fine on RPI
-
Try to setup Advanced Emulator Launcher from Gamestarter Repo
-
Look i know it has probably been asked a thousand times but my Libre elec os has failed today and is now useless as i cant get anything installed if it needs to restart. It keeps going back to safe mode. I have no idea of how to rectify or what caused it. I am not a brain surgeon or a tech wizard , i have tried some suggestions from Kodi people but still wont work properly. Is there anyone hear who can do a walk through in lamens terms please as im about to throw it in the bin. Please help asap.
Although your best bet is post a log and try to get some help regarding your crash and what's causing it..a temporary workaround would be to create a file and name it
place it in:
That will disable safe mode..
-
Hardware decoding (with licenses) will still work on RPi2/3.
Major issues on RPi2/3 are that the video driver currently has a severe problem (video cuts out and needs reboot), GPU accelerated HEVC decoding and deinterlacing doesn't work (deinterlacing also doesn't work on RPi4).
Therefore we decided to do the initial LE10 releases only for RPi4 - RPi2 will follow later, when the major bugs are ironed out.
so long,
Hias
Thanks for quick info..I asked as I v seen a post elsewhere that has nothing to do with LE, which made me wonder:
QuoteThere is no support for hardware accelerated VC-1 or MPEG2 on Raspberry Pi, even on existing devices where codec packs have been purchased.
There is also no deinterlacing for Live TV with hardware acceleration on Raspberry Pi, but we are hoping that support is introduced later at some point with a Kodi 19 point release. This should be less of an issue on Raspberry Pi 4, which should be able to handle deinterlacing in software.
-
Did I Understand properly regarding hardware decoding on RPi 2 that mpeg2 video won't work anymore with rpi licences but is done via software?
Main issue is will live Tv be affected?
-
Due the lack of further developement at Tvheadend I have no idea what future brings.
Hi CVH.
What you mean by lack of further development?
Is that bad news?
-
additive
sh /storage/.config/autostart.sh results in:
LibreELEC: ~ # sh /storage/.config/autostart.sh
LibreELEC: ~ # File "/storage/.kodi/userdata/scripts/powershutdown_serialless.py", line 51 os.system ("echo" Raspberry Pi Shutdown! "> / dev / pts / 1") ^
SyntaxError: invalid syntaxtry copy and paste this exactly..
below is yours...you moved few bits:
It worked here...no reason it doesn't work for you...you can open more terminal windows to test from one to the other and you ll see the message popping up..
I m not great with python hence i gave you the shell version of the command..you r basically sending an sh command from a py script..
I m not sure what your script is for but if it's something important you can even send an automated email from libreelec to your email..
-
the problem was definitely autostart.sh
I logged in with a terminal program (mobaxterm) and the /storage/.config/autostart.sh file was just one line
python /storage/.kodi/userdata/scripts/powershutdown_serialless.py &created and the rights set with chmod.
the command is now executed correctly. after entering ps -ef i can also see the running process. 566 root 0:00 python /storage/.kodi/userdata/scripts/powershutdown_serialless.pyit would be nice if a message could be sent to all logged-in terminals in the event of a power failure - is that possible?
the print commands from the powershutdown_serialless.py script do not arrive on a logged-in terminal
Many Thanks
try before line 50 in your script add
that is for 1 open terminal
if you have more then
to find all open terminals
then you can edit your script ex
Codeos.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1") os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/2") os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/3")
etc
that should send a message to all terminals
"Raspberry Pi Shutdown!"
-
Check your autostart.sh script if you just created it for any errors DOS format and not UNIX?
this should start your script like on startup..
run this on autostart.sh
the autostart.sh in your zip file is in windows dos...needs to be unix format..but might have changed by uploading or downloading or whatever..not sure...try those 2 commands and you should be good to go..
-
I just had a thought.
A faulty usb to sata adapter couldn't short something in the pi and make HDMI audio not work could it?I have that, plus also that ssd fail, plus my spdif card on my pc seems faulty now as well.
Plus I tried to charge my torch up from my pc and that won't charge from anything now.
I am wondering if i have a fault somewhere.
I can't think of anything other than the adapter and ssd that are common between my pc and pi.
I had a cable like that for a long time connected to my pi2 and hdd never gave me problems...Now I got an external hdd connected which is a little better aesthetically but nothing else..