Forum
PVR IPTV Simple Client Comand Line start/stop - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: PVR + Live TV (/forum-29.html)
+--- Thread: PVR IPTV Simple Client Comand Line start/stop (/thread-4062.html)



PVR IPTV Simple Client Comand Line start/stop - dvv06 - 3rd Dec, 2019 12:26 AM

Hello Frends!
Sorry for my English (this is not my native language).
I have:
1.Raspberry Pi 3B + (XBian 18.1)
2. AceStream Madia + PVR IPTV Simple Client
---------
The problem is this:
When XBian loads, it loads the PVR IPTV Simple Client earlier than AceStream Madia and a situation arises that the playlist in the PVR IPTV Simple Client is empty.
I had an idea:
1. either manually restart the PVR IPTV Simple Client from the command line after AceStream Madia (then the channels will be loaded)
2. Either delay the start of the PVR IPTV Simple Client
but in what file to set a delay I do not know. And I don’t know the command to launch PVR IPTV Simple Client from the command line.
If anyone knows, please tell me.


RE: PVR IPTV Simple Client Comand Line start/stop - Nachteule - 4th Dec, 2019 03:31 AM

Are you using my script?

Code:
#!/bin/sh

echo "-----------------------------------"
echo "$(date) $0 $@"
echo "-----------------------------------"

case $1 in

        screensaver)            # See /etc/init/xbmc-screensaver.conf
                case $2 in
                        start)
                                ;;
                        stop)
                                ;;
                esac
                ;;

        preload)                # See /etc/init/xbmc-preload.conf
                case $2 in
                        start)
                                # Start acestream and wait 10s until its up
                                /home/xbian/acestream.engine/acestream.start && sleep 10 || :
                                ;;
                        stop)
                                # This never happens
                                ;;
                esac
                ;;

        xbmc)                   # See /etc/init/xbmc.conf
                case $2 in
                        start)
                                ;;
                        stop)
                                ;;
                esac
                ;;
                
esac

exit 0

In this case, you can add a sleep to wait until acestream is up, see above

You cant do a delayed start of IPTV Simple client addon
You cant start/restart IPTV Simple client via cmdline script


RE: PVR IPTV Simple Client Comand Line start/stop - dvv06 - 4th Dec, 2019 04:52 AM

I am ashamed, but I do not know where to write this script

I use supervisor to start and control the restart in case of acestream crash.
https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps
1. apt-get install supervisor
2. Created myacestream.conf file with the following contents:
[program:myacestream]
command = /home/xbian/acestream.engine/acestream.start
stdout_logfile = /var/log/acestream.log
stderr_logfile = /var/log/acestream.log
startsecs = 10
autostart = true
autorestart = true
3. and put along the way /etc/supervisor/conf.d/
4. reboot RPi3B+
the work is very stable, but after the start of AceStream you have to go into the settings of the IPTV IPTV Simple client disabled and enabled, only then the channels appear in the playlist

my screensaver is disabled
----------------------------------
there is another nuance that is not convenient when using TVset
When I watch cable TV on the TVset, after about 10 minutes the TV screen switches to HDMI from RPi3B+ (XBian).
Therefore, I changed it in the settings (config.txt):
hdmi_force_hotplug=0
hdmi_ignore_hotplug=0
hdmi_ignore_cec_init=1
hdmi_ignore_cec=0
, but now if you watch TVset and turn on the raspberry, it is impossible to switch to HDMI (the Xbian screen appears with the message "connection ...") and there is no way to control, because the connection did not succeed
It is connected only then you turn on the raspberry with the HDMI source previously switched in the TV settings


RE: PVR IPTV Simple Client Comand Line start/stop - Nachteule - 4th Dec, 2019 05:27 AM

OMG, plz read the other thread, there you can find all infos you need


RE: PVR IPTV Simple Client Comand Line start/stop - ThomasBradbarry - 11th Nov, 2022 04:39 AM

This article provides valuable insights into aviation cybersecurity strategies, highlighting the critical importance of protecting aircraft systems from cyber threats. The detailed analysis of potential vulnerabilities and recommended security measures is informative and relevant in today's digital age. A must-read for both aviation professionals and cybersecurity experts seeking to safeguard air travel.


RE: PVR IPTV Simple Client Comand Line start/stop - Nachteule - 11th Nov, 2022 04:57 AM

Help with what?


PVR IPTV Simple Client Comand Line start/stop - f1vefour - 13th Nov, 2022 08:33 PM

Looks like spam to me.