I have been helped another HiFi enthusiast to make DTS work for him. It can end up buying a lot of new equipment.
Read the thread:
I have been helped another HiFi enthusiast to make DTS work for him. It can end up buying a lot of new equipment.
Read the thread:
Just to be curious, do you know what that line we deleted in python code was for? (The one which contained port 80?)
Yes, this are notifications to make the on/off calls visible at the LibreELEC GUI. Definitely not needed, you'll see it anyway.
That's great, man! Thanx for the symbolic beer.
Please mark this thread as solved.
I guess I found the port 80 error. It's inside "ledon.py". One line must be deleted, and it should look like this:
import subprocess
import time
subprocess.call('/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json </dev/null >/dev/null 2>&1 &', shell=True)
time.sleep(2)
subprocess.call('/storage/hyperion/bin/hyperion-remote.sh --priority 100 --duration 400 --effect "Rainbow Swirl"', shell=True,)
Please edit the file, and try to run it again:
After that edit the "ledoff.py" to avoid the same port 80 error. It should look like this:
terminate called after throwing an instance of 'std::runtime_error'
what(): JSONSERVER ERROR: could not bind to port
LibreELEC:~ #
Maybe because of this?
Quote
Tried editing script and changing port 22 instead of 80..
Please set the port number back to the original value and comment the Python script out by adding # at that line:
Then reboot, and try the command from my last post again. Don't be too quick.
Excellent, that's it!
If you only have a Win10 PC, you can edit the files by SSH login (use PuTTY).
If you have a Linux PC, simply remove the MicroSD card, and plug it into the PC.
Create the directory "/storage/hyperion/scripts" for the scripts.
On SSH:
Copy "ledon.py" and "ledoff.py" into that folder.
Insert this code into autostart.sh, if you want to start Hyperion by default:
Copy "remote.xml" into the "/storage/.kodi/userdata/keymaps" folder, if you want to switch it on and off by red and green remote buttons.
Tell us, if it works!
I try with Rapsberry 2 and Amp+ and last LibreElec.
In this configuration, everything is good.
This indicates a PSU issue, too. The RasPi 3B+ needs more wattage by default. In case you are using WiFi for NFS access, I'm very sure that it's a PSU issue. WiFi transmission needs more wattage, compared to Ethernet.
It's better to remove all unnecessary hardware to find the bug. Just use the RasPi and the MicroSD card.
OK, I will have a look at the LibreELEC add-on repository. If I find it, I can install it to see what shell commands it provides. Maybe adding the right command to autostart.sh is all you need.
Is "hyperion creator" part of an add-on? If yes, is it an official add-on from the LibreELEC repository? What's the name of the add-on?
PS: I'm asking because there are two ways to install Hyperion: By using HyperCon (Win10) installer, or by using a LibreELEC add-on.
How do you usually start Hyperion after you have been plugged in the power cable for RasPi / Hyperion?