Could some one tell me how to run multiple instances of the same program?
I want to run webgrabplus simultaneously 3 instances to reduce the time and then join it all together in one process.
My current download takes 4-5 hours to complete.
Could some one tell me how to run multiple instances of the same program?
I want to run webgrabplus simultaneously 3 instances to reduce the time and then join it all together in one process.
My current download takes 4-5 hours to complete.
your code worked. Thanks
I cannot get this to work with tvh. Can anyone help? keep getting:
xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: no output detected
xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab returned no data
Have pointed file to a folder in .kodi and not userdata. I have pointed to the correct file (which is grabbing data from sites and making the xml file which is 6mb big)
So i have setup the webgrab plus on my PC and generated a XML which I now put into libreelec. Pointed the TVH server towards the file but it doesn't seem to be populating TVH epg sources.
I think its something to do with tv grab file which is as follows:
#!/bin/sh
if [ $# -lt 1 ]
then
. /etc/profile
ADDON_HOME="$HOME/.kodi/userdata/addon_data/service.tvheadend42"
ADDON_SETTINGS="$ADDON_HOME/settings.xml"
XMLTV_TYPE=`grep XMLTV_TYPE $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
XMLTV_LOCATION_FILE=`grep XMLTV_LOCATION_FILE $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
XMLTV_LOCATION_WEB=`grep XMLTV_LOCATION_WEB $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
XMLTV_LOCATION_SCRIPT=`grep XMLTV_LOCATION_SCRIPT $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
if [ "$XMLTV_TYPE" = "FILE" ]; then
cat "$XMLTV_LOCATION_FILE"
exit 0
elif [ "$XMLTV_TYPE" = "SCRIPT" ]; then
if [ -e "$XMLTV_LOCATION_SCRIPT" ] ; then
exec "$XMLTV_LOCATION_SCRIPT"
fi
elif [ "$XMLTV_TYPE" = "WEB" ]; then
wget -qO - "$XMLTV_LOCATION_WEB"
exit 0
fi
fi
dflag=
vflag=
cflag=
for a in "$@"
do
[ "$a" = "-d" -o "$a" = "--description" ] && dflag=1
[ "$a" = "-v" -o "$a" = "--version" ] && vflag=1
[ "$a" = "-c" -o "$a" = "--capabilities" ] && cflag=1
done
if [ -n "$dflag" ]
then
echo "tv_grab_file is a simple grabber that can be configured through the addon settings from Kodi"
fi
if [ -n "$vflag" ]
then
echo "1.0"
fi
if [ -n "$cflag" ]
then
echo "baseline"
fi
Display More
Doesn't want to work
mine takes about 5-6 seconds but that is from complete power off. i am assuming it takes some time for the box to turn on and cec to become active and then to send the signal.
however when it is on standby as you say then why is the signal sent so quickly when i press a button for kodi to become active which is instantaneously.
im curious to know why when i send command for tv to to turn on via a command or script it takes a few seconds for the hdmi cec to send that command. however waking the tv after screensaver is instant volume up down is instant when it is not me sending the commands manually via script.
how can i make sure my commands are instant.
i have tried
echo "on 5" | cec-client -s -d 1
this takes a good 5 seconds or so to turn on
can anyone help me to map a script to a button i press on the remote? i want to use the power tv button on the wp2 remote to power the avr reciever on.
im running the beta of krypton by raybuntu
i can power on using the following command in ssh
echo "on 5" | cec-client -s
i want this to be the on off button for avr if already on then turn off if off turn on any clues?
also want to add a script as a favourite and run it from there if this is possible.
any update on this? i have a wetek play2 if that helps
You've been a great help. Its no secret that this was for EPG so i have created a guide on the wetek forums (as thats the device i own) perhaps i can upload it here as well if required.
The screenshot is not helpful. Get us a full debug log, please
Sorry, new to this i thought the codec might be relevant to people.
Another thing i noticed was if I turn off hardware acceleration so only HD and lower played with hardware acceleration off then it did work. However I do not want to be toggling hardware on off for videos that can or cannot support it and would really would want to use the hardware acceleration as less load on the system and i feel as if the quality is better since i see less deinterlacing lines if that makes sense.
press and hold the ok button. there are issues with the remote some buttons dont work.
tried it all it did was pause on the libreelec screen for 20 seconds and carried on its loading so no messages. unless it actually did it. i kind of want it to run after kodi gui has been loaded
so would this be okay?
(
sleep 15
sh ~/autoepg/rytec.sh
kodi-send
--action="Notification(EPG,done,6000)"
)
btw thats all of the contents of autostart.sh
Sent from my SM-G935F using Tapatalk
yh had a look at that and thats what i have been following but perhaps its working too quickly before netowrk is up
(
sh ~/autoepg/rytec.sh
kodi-send
--action="Notification(EPG,done,6000)"
)
thanks mate now just trying to work out how to auto run this script.
dont think autostart is working
Sent from my SM-G935F using Tapatalk
ah thanks that worked.
i think i know the problem now it was that i made it in windows and my eol was windows and not unix. thats probably the issue
since you know your way around it, maybe u can help me out with this as part of extension of this.
Every time kodi is started i want to run this script but only if the file is not equal to today's date.
I am very new to bash any help would be great.
thank you again:
I seem to have narrowed the problem down. When creating the file, it is not saving it as "
but rather
I don't know why that is i have tried multiple times to create a new file start from scratch, type it in etc. It doesn't seem to be working. When i manually go in, it just sppears to be a sapce in the file name at the end 'rytecxmltv-UK.gz '
Further more, it still keeps saying no directory found when trying to gunzip.
Perhaps you can send me the .sh file with this in it maybe windows doing something funny?
Btw i have gone in manually made this file "executable" through properties of winscp. making it "777"
Thanks