i need some info btw. some help with apache2.
- were i can find the apache2 config ?
- is this the file httpd.conf i have to edit ?
- can i edit the apache config without lost samy root ?
- have the samsung tv H-Series cronjob / crontab ?
- were i can find the crontab config file ?
if you asking why do i want to know this?
I'm working on an app that I want to share with you the next days.
the last missing piece is an m3u8 file callable in the app, which should update itself automatically
or manually with this script:
SpoilerShow
Code: Select all
#!/bin/bash
#
#
#
# Run everything as root !
#
# Install Apache2:
#
# apt install apache2
# mkdir /mnt/var/www/html/live/
# a2enmod rewrite && systemctl restart apache2
#
# save this script in /mnt/etc/init.d/01_20_vavoo.init.dis
# make the file 777. open putty and paste following
#
# chmod 777 /mnt/etc/init.d/01_20_vavoo.init.dis
#
# to activate script, delete .dis file ending after install
#
#
# In the apache2 config file /etc/apache2/apache2.conf
# change under <Directory /var/www/>
# the line AllowOverride none
# change to AllowOverride all !
#
# Call cronjob with (root) crontab */15 * * * * /Path to script!
#
#
#
#
#
#
### url details
url1="https://www2.v****.to/live2/index"
url2="https://www.v****.tv/api/box/ping2"
datei="/mnt/var/www/html/live/Germany.m3u8" # YOU HAVE TO Make DIR /mnt/var/www/html/live/
my_server="192.168.1.100" #Change to match IP from your TV.
### download file
wget -q --timeout=30 --no-check-certificate --user-agent="V****/2.6" $url1 -O list1
authkey=$(curl -fs --location --request POST $url2 --header 'Content-Type: application/json' --data "{\"vec\": \"9frjpx*****************"}" | sed 's#^.*"signed":"##' | sed "s#\"}}##g")
### create file
cat list1 | grep -i -A1 'group-title="Germany"' | sed -e "/--/d" -e "1 i \#EXTM3U" -e "/^\#EXTINF/a \#EXTVLCOPT:http-user-agent=V****/2.6" -e "s/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}:8008\/a\/willene/"$my_server"/" > $datei
cat list1 | grep -i -A1 'group-title="Germany"' | grep 'http:' > list2
cat list2 | sed -e "s/http:\/\/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}:8008\/a\/willene\/live\///" -e "s/\..*//" > list3
### redirect adresses
rm /mnt/var/www/html/live/.htaccess
while read -r id; do
url3=$(grep $id < list2)
echo 'Redirect 302 /live/'$id'.ts '$url3'?n=1&b=5&va****_auth='$authkey >> /mnt/var/www/html/live/.htaccess
done < list3
### clean up
rm list*
#
#
#
that the script should then be displayed here: http://YOUR_TV_IP:1080/cgi-bin/test.cgi
need help,
that the user should also be able to start and stop the script in a web browser
displayed here:
http://YOUR_TV_IP:1080/cgi-bin/test.cgi
the addon is already finished, but that's the last piece that is missing!'
-----------
copy the script to:
/mnt/etc/init.d/01_20_vavoo.init
and make it 777
Code: Select all
chmod 777 /mnt/etc/init.d/01_20_vavoo.init
Can somebody from the mods or devs help me to solve it, please?!
Attachment:
01_20_vavoo.init best regards
maybee also interesting for the nice app from @wluczykijwf
---edit---
i can start the sript in www browser with
Code: Select all
http://192.168.1.100:1080/cgi-bin/test.cgi?/mnt/etc/init.d/01_20_vavoo.init+start
were is the mistake?
i have to edit
#
# In the apache2 config file
#
# change the line AllowOverride none
# change to AllowOverride all !
#
but i do not know were to find apache config file....
The change in the apache2.conf file is important so that forwarding via .htaccess works at all
N E E D H E L P!!!!