@uspino
I fixed the bmitunetest.sh to bmitune.sh...
The Spectrum App uses DeepLinks to go directly to the live stream for each channel tuned. I don't know your apps or whether they have deep links for the live stream or not. I currently don't know how you go about finding the deeplinks for the ATV. But...we should be able to tune them manually.
As far as the Tennis Channel and CNN Max app or any others.
I will assume 2 things.
- The app is installed on the ATV that you are using as a tuner
- You can step through the screens using the remote and play the content you are asking about.
Part 1: Using Portainer and ah4c stack Exec Console
- Go to the ah4c Stack and log into the Exec Console again.
- Type atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 app_list
- Look through list and find the name of the app you want
- In Spectrum's case it is called Spectrum TV
- Remove any spaces in the name and try to launch it
- Type atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 launch_app=spectrumTV:
- You have to remove all spaces and it may not care about capitalizations. Don't forget the ":" at the end. On the ATV it may ask you if you are trying to launch a specific app the first time and you will have to confirm.
Ok now that you know how to lauch the app...
Part 2: Figure out the remote commands to move through App and start stream if needed...
- Launch the App...then type in some of the following commands to figure out the correct sequence of commands to get to live stream while watching the ATV output.
atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 up
atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 down
atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 right
atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 left
atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 select
- Create a command combining the required commands with any needed delays to make sure it works everytime...
Example: atvremote --storage-filename /root/.android/.pyatv.conf -s 10.10.11.42 up delay=100 up delay=200 right right delay=400 select
Part 3: Use "Case" in bmitune.sh script to launch specific channel
Possible m3u file
#EXTM3U
#EXTINF:-1 channel-id="1001" channel-number="1001" tvg-name="Tennis" tvc-guide-stationid=" ",Tennis_Channel
http://{{ .IPADDRESS }}/play/tuner/1001
#EXTINF:-1 channel-id="1002" channel-number="1002" tvg-name="CNN_Live" tvc-guide-stationid=" ",CNN_Live
http://{{ .IPADDRESS }}/play/tuner/1002
Possible bmitune.sh
/bin/bash
channelID="$1"
streamerIP="$2"
case $channelID in
1001)
atvremote --storage-filename /root/.android/.pyatv.conf -s $streamerIP launch_app=TennisTV:
atvremote --storage-filename /root/.android/.pyatv.conf -s $streamerIP up delay=100 up delay=200 right right delay=400 select
;;
1002)
atvremote --storage-filename /root/.android/.pyatv.conf -s $streamerIP launch_app=MaxCNN:
atvremote --storage-filename /root/.android/.pyatv.conf -s $streamerIP up delay=100 up delay=200 right right delay=400 select
;;
*)
#run this line if nothing matched earlier
;;
esac
Let me know how it all works.