Tu vas la décommenter cette ligne nom di diou????
Enlevé le dièse devant le echo juste en dessous du wget.
Nom di diou
je ne comprends plus c'est pourtant ce que j'ai fais
:
- Code: Tout sélectionner
wget -O - "http://192.168.0.18/cgi-bin/do?cmd=launch_media_url&action_on_exit=black_screen&media_url=$url";
echo "http://192.168.0.18/cgi-bin/do?cmd=launch_media_url&action_on_exit=black_screen&media_url=$1"
Après J'ai fais un copier/coller de tout le script dans le ssh que j'ai posté aussi plus haut!
- Code: Tout sélectionner
OpenELEC (official) Version: 4.0.5
XBMC:~ # #!/bin/bash
XBMC:~ # # dunefeeder for feeding videos to your dune from a Windows Seven P
C with XBMC - by djoole - v0.1
XBMC:~ # # fork for raspberry pi by Lyksyr - switch hdmi port by cec on AVR
Yamaha
XBMC:~ #
XBMC:~ # # Telling the receiver to switch to DUNE input - HDMI 1
XBMC:~ # `echo "tx 1f 82 11 00" | cec-client -s -d 1`
-sh: opening: not found
XBMC:~ #
XBMC:~ # # Waiting a little for the TV to sync
XBMC:~ # sleep 7;
XBMC:~ #
XBMC:~ # # url encode via python for spaces and accents
XBMC:~ # url=$(python -c "import urllib; print urllib.quote('''$1''')");
XBMC:~ #
XBMC:~ # # Telling the Dune to start playback
XBMC:~ # wget -O - "http://192.168.0.18/cgi-bin/do?cmd=launch_media_url&acti
on_on_exit=black_screen&media_url=$url";
Connecting to 192.168.0.18 (192.168.0.18:80)
<?xml version="1.0" ?>
<command_result>
<param name="protocol_version" value="3"/>
<param name="command_status" value="failed"/>
<param name="error_kind" value="invalid_parameters"/>
<param name="error_description" value="'media_url' parameter value '' is invalid: qualified url is expected"/>
<param name="player_state" value="navigator"/>
<param name="pip_zorder" value="400"/>
<param name="video_zorder" value="200"/>
<param name="osd_zorder" value="500"/>
</command_result>
- 100% |*******************************| 478 0:00:00 ETA
XBMC:~ # echo "http://192.168.0.18/cgi-bin/do?cmd=launch_media_url&action_on
_exit=black_screen&media_url=$1"
http://192.168.0.18/cgi-bin/do?cmd=launch_media_url&action_on_exit=black_screen&media_url=
XBMC:~ # #echo "Wait for 2s for video to launch"
XBMC:~ # #sleep 2;
XBMC:~ #
XBMC:~ # # Now waiting for the playback to finish
XBMC:~ # play=1;
XBMC:~ # while [ $play -eq 1 ]
> do
> sleep 1;
> wget -O /storage/.xbmc/userdata/dunefeeder.html "http://192.168.0.18/cg
i-bin/do?cmd=status";
> if grep -c -h -e 'name=\"player_state\" value=\"file_playback\"' "/sto
rage/.xbmc/userdata/dunefeeder.html"
>
> then
> if grep -c -h -e 'name=\"playback_state\" value=\"stopped\"' "/stora
ge/.xbmc/userdata/dunefeeder.html"
> then
> play=0;
> fi
>
> else
> if grep -c -h -e 'name=\"player_state\" value=\"navigator\"' "/stora
ge/.xbmc/userdata/dunefeeder.html"
> then
> play=0;
> fi
>
> fi
>
> if grep -c -h -e 'name=\"player_state\" value=\"standby\"' "/storage/.
xbmc/userdata/dunefeeder.html"
> then
> play=0;
> fi
>
> done
Connecting to 192.168.0.18 (192.168.0.18:80)
dunefeeder.html 100% |*******************************| 267 0:00:00 ETA
0
1
0
XBMC:~ #
XBMC:~ #
XBMC:~ # # Telling the receiver to switch back to XBMC input - HDMI 2
XBMC:~ # sleep 4;
XBMC:~ # `echo "tx 4f 82 12 00" | cec-client -s -d 1`
-sh: opening: not found
XBMC:~ # # the dune player reswitch via CEC, we need to switch again to xbmc
, but without blocking xbmc control
XBMC:~ # /storage/.xbmc/userdata/toxbmc.sh &
XBMC:~ # /storage/.xbmc/userdata/toxbmc.sh: line 2: opening: not found
Et sinon lorsque tu lances le script, strictement rien ne se passe sur la Dune?
Alors:
-ma dune est en veille
-je lance le script via ssh
-la dune démarre, la tv commute bien sur l'entrée hdmi de la dune HDMI 1
-je suis sur l'onglet "sources" de la dune et c'est tout.
Même topo lorsque la dune est déjà allumée, seule la tv commute encore sur hdmi 1, la dune elle reste sur l'onglet "sources" (donc rien ne se passe)
Bon c'est bien prise de tête ce truc merci en tout cas pour votre patience et votre aide
je vais faire dodo la nuit porte conseil paraît-il