its for windows 11
I'm updating the prebmitune.sh script to use the alternate package name if the primary name results in an "Error type 3". I'll build a new container and you can download it shortly. Be sure to keep UPDATE_SCRIPTS set to true, and we'll see if that takes care of it. I'll ping you here when it's ready to try.
ok and thank you for all your assistance
Update pushed to bnhf/ah4c:test. I'd like to see the Portainer log output this time when you start the container, before you do anything else. That's found in Portainer-Containers, and then you generally want to change the lines value to "10000" and hit enter. Then, turn off Auto-refresh logs to be able to copy and paste the output here. It should look similar to this:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.29.0.2 ah4c
192.168.110.50 firestick-rack1
192.168.110.192 firestick-rack2
192.168.110.130 encoder_48007
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
connected to firestick-rack1:5555
connected to firestick-rack2:5555
Existing ./scripts/onn/youtubetv/prebmitune.sh found, and will be preserved
Existing ./scripts/firetv/directv/prebmitune.sh found, and will be preserved
Existing ./scripts/onn/youtubetv/bmitune.sh found, and will be preserved
Existing ./scripts/firetv/directv/bmitune.sh found, and will be preserved
Existing ./scripts/onn/youtubetv/stopbmitune.sh found, and will be preserved
Existing ./scripts/firetv/directv/stopbmitune.sh found, and will be preserved
No existing directv.m3u found or UPDATE_M3US set to true
No existing foo-fighters.m3u found or UPDATE_M3US set to true
No existing hulu.m3u found or UPDATE_M3US set to true
No existing youtubetv.m3u found or UPDATE_M3US set to true
No existing sling.m3u found or UPDATE_M3US set to true
[START] androidhdmi-for-channels is starting
[ENV] Not loading env
[ENV] IPADDRESS htpc6:7654
[ENV] ALERT_SMTP_SERVER
[ENV] ALERT_AUTH_SERVER
[ENV] ALERT_EMAIL_FROM
[ENV] ALERT_EMAIL_PASS
[ENV] ALERT_EMAIL_TO
[ENV] ALERT_WEBHOOK_URL
[ENV] ALLOW_DEBUG_VIDEO_PREVIEW
[ENV] Creating tuner 1
[ENV] ENCODER1_URL http://encoder_48007/0.ts
[ENV] TUNER1_IP firestick-rack1:5555
[ENV] CMD1
[ENV] TEECMD1
[ENV] PRE SCRIPT ./scripts/firetv/directv/prebmitune.sh
[ENV] START SCRIPT ./scripts/firetv/directv/bmitune.sh
[ENV] STOP SCRIPT ./scripts/firetv/directv/stopbmitune.sh
[ENV] REBOOT SCRIPT ./scripts/firetv/directv/reboot.sh
[ENV] Creating tuner 2
[ENV] ENCODER2_URL http://encoder_48007/4.ts
[ENV] TUNER2_IP firestick-rack2:5555
[ENV] CMD2
[ENV] TEECMD2
[ENV] PRE SCRIPT ./scripts/firetv/directv/prebmitune.sh
[ENV] START SCRIPT ./scripts/firetv/directv/bmitune.sh
[ENV] STOP SCRIPT ./scripts/firetv/directv/stopbmitune.sh
[ENV] REBOOT SCRIPT ./scripts/firetv/directv/reboot.sh
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /favicon.ico --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (2 handlers)
[GIN-debug] HEAD /favicon.ico --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (2 handlers)
[GIN-debug] Loaded HTML Templates (11):
- edit.html
- editm3u.html
- index.html
- logs.html
- routes.html
- status_and_logs.html
- stream.html
-
- m3us.html
- status.html
- config.html
[GIN-debug] GET /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] GET / --> main.run.func1 (2 handlers)
[GIN-debug] GET /routes --> main.run.func2 (2 handlers)
[GIN-debug] GET /play/tuner:tuner/:channel --> main.run.func3 (2 handlers)
[GIN-debug] GET /m3u/:channel --> main.run.func4 (2 handlers)
[GIN-debug] GET /env --> main.run.func5 (2 handlers)
[GIN-debug] GET /logs/text --> main.run.func6 (2 handlers)
[GIN-debug] GET /logs --> main.run.func7 (2 handlers)
[GIN-debug] GET /status/andlogs --> main.run.func8 (2 handlers)
[GIN-debug] GET /logs/json --> main.run.func9 (2 handlers)
[GIN-debug] GET /video --> main.run.func10 (2 handlers)
[GIN-debug] GET /status --> main.statusPageHandler (2 handlers)
[GIN-debug] GET /api/status --> main.apiStatusHandler (2 handlers)
[GIN-debug] GET /stream --> main.run.func11 (2 handlers)
[GIN-debug] GET /test/webhook --> main.run.func12 (2 handlers)
[GIN-debug] GET /test/email --> main.run.func13 (2 handlers)
[GIN-debug] GET /status/channelsactivity --> main.run.func14 (2 handlers)
[GIN-debug] GET /edit --> main.run.func15 (2 handlers)
[GIN-debug] POST /save --> main.run.func16 (2 handlers)
[GIN-debug] POST /m3usave/:file --> main.run.func17 (2 handlers)
[GIN-debug] GET /m3us --> main.run.func18 (2 handlers)
[GIN-debug] GET /editm3u/:file --> main.run.func19 (2 handlers)
[GIN-debug] GET /config --> main.run.func20 (2 handlers)
[GIN-debug] POST /configsave --> main.run.func21 (2 handlers)
[START] androidhdmi-for-channels is ready
[GIN-debug] Listening and serving HTTP on :7654
> [email protected] start
> node ./index.js
Listening on:
http://ah4c:8000 http://localhost:8000
http://127.0.0.1:8000 http://172.29.0.2:8000
After that try tuning to a channel, and then post the Portainer log snippet related to that, not including the startup stuff you will have already posted.
The Portainer log viewer looks like this:
The logs button is found under "Quick Actions" on the line where ah4c is listed in Portainer-Containers.
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.32.2 ah4c
* daemon not running; starting now at tcp:5037
List of devices attached
* daemon started successfully
connected to 192.168.1.231:5555
No existing ./scripts/onn/youtubetv/prebmitune.sh found or UPDATE_SCRIPTS set to true
No existing ./scripts/firetv/directv/prebmitune.sh found or UPDATE_SCRIPTS set to true
No existing ./scripts/onn/youtubetv/bmitune.sh found or UPDATE_SCRIPTS set to true
No existing ./scripts/firetv/directv/bmitune.sh found or UPDATE_SCRIPTS set to true
No existing ./scripts/onn/youtubetv/stopbmitune.sh found or UPDATE_SCRIPTS set to true
No existing ./scripts/firetv/directv/stopbmitune.sh found or UPDATE_SCRIPTS set to true
cp: can't stat '/tmp/scripts/onn/youtubetv/isconnected.sh': No such file or directory
cp: can't stat '/tmp/scripts/firetv/directv/isconnected.sh': No such file or directory
cp: can't stat '/tmp/scripts/onn/youtubetv/keep_alive.sh': No such file or directory
cp: can't stat '/tmp/scripts/firetv/directv/keep_alive.sh': No such file or directory
cp: can't stat '/tmp/scripts/onn/youtubetv/reboot.sh': No such file or directory
cp: can't stat '/tmp/scripts/firetv/directv/reboot.sh': No such file or directory
Existing directv.m3u found, and will be preserved
Existing foo-fighters.m3u found, and will be preserved
Existing hulu.m3u found, and will be preserved
Existing youtubetv.m3u found, and will be preserved
Existing sling.m3u found, and will be preserved
[START] androidhdmi-for-channels is starting
[ENV] Not loading env
[ENV] IPADDRESS 192.168.1.195:7654
[ENV] ALERT_SMTP_SERVER
[ENV] ALERT_AUTH_SERVER
[ENV] ALERT_EMAIL_FROM
[ENV] ALERT_EMAIL_PASS
[ENV] ALERT_EMAIL_TO
[ENV] ALERT_WEBHOOK_URL
[ENV] ALLOW_DEBUG_VIDEO_PREVIEW
[ENV] Creating tuner 1
[ENV] ENCODER1_URL http://192.168.1.227/0.ts
[ENV] TUNER1_IP 192.168.1.231:5555
[ENV] CMD1
[ENV] TEECMD1
[ENV] PRE SCRIPT ./scripts/firetv/directv/prebmitune.sh
[ENV] START SCRIPT ./scripts/firetv/directv/bmitune.sh
[ENV] STOP SCRIPT ./scripts/firetv/directv/stopbmitune.sh
[ENV] REBOOT SCRIPT ./scripts/firetv/directv/reboot.sh
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /favicon.ico --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (2 handlers)
[GIN-debug] HEAD /favicon.ico --> github.com/gin-gonic/gin.(*RouterGroup).StaticFile.func1 (2 handlers)
[GIN-debug] Loaded HTML Templates (11):
- editm3u.html
- index.html
- logs.html
- routes.html
- stream.html
-
- config.html
- edit.html
- m3us.html
- status.html
- status_and_logs.html
[GIN-debug] GET /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] GET / --> main.run.func1 (2 handlers)
[GIN-debug] GET /routes --> main.run.func2 (2 handlers)
[GIN-debug] GET /play/tuner:tuner/:channel --> main.run.func3 (2 handlers)
[GIN-debug] GET /m3u/:channel --> main.run.func4 (2 handlers)
[GIN-debug] GET /env --> main.run.func5 (2 handlers)
[GIN-debug] GET /logs/text --> main.run.func6 (2 handlers)
[GIN-debug] GET /logs --> main.run.func7 (2 handlers)
[GIN-debug] GET /status/andlogs --> main.run.func8 (2 handlers)
[GIN-debug] GET /logs/json --> main.run.func9 (2 handlers)
[GIN-debug] GET /video --> main.run.func10 (2 handlers)
[GIN-debug] GET /status --> main.statusPageHandler (2 handlers)
[GIN-debug] GET /api/status --> main.apiStatusHandler (2 handlers)
[GIN-debug] GET /stream --> main.run.func11 (2 handlers)
[GIN-debug] GET /test/webhook --> main.run.func12 (2 handlers)
[GIN-debug] GET /test/email --> main.run.func13 (2 handlers)
[GIN-debug] GET /status/channelsactivity --> main.run.func14 (2 handlers)
[GIN-debug] GET /edit --> main.run.func15 (2 handlers)
[GIN-debug] POST /save --> main.run.func16 (2 handlers)
[GIN-debug] POST /m3usave/:file --> main.run.func17 (2 handlers)
[GIN-debug] GET /m3us --> main.run.func18 (2 handlers)
[GIN-debug] GET /editm3u/:file --> main.run.func19 (2 handlers)
[GIN-debug] GET /config --> main.run.func20 (2 handlers)
[GIN-debug] POST /configsave --> main.run.func21 (2 handlers)
[START] androidhdmi-for-channels is ready
[GIN-debug] Listening and serving HTTP on :7654
> [email protected] start
> node ./index.js
Listening on:
http://ah4c:8000 http://localhost:8000
http://127.0.0.1:8000 http://192.168.32.2:8000```
Attempting network tune for device http://192.168.1.227/0.ts 192.168.1.231:5555 242
[EXECUTE] Running [./scripts/firetv/directv/prebmitune.sh 192.168.1.231:5555]
[EXECUTE] Stdout: 'already connected to 192.168.1.231:5555
Waking 192.168.1.231:5555
prebmitune.sh is exiting for 192.168.1.231:5555 with exit code 0
'
[EXECUTE] Stderr: '+ streamerIP=192.168.1.231:5555
+ streamerNoPort=192.168.1.231
+ adbTarget='adb -s 192.168.1.231:5555'
+ mkdir -p 192.168.1.231
+ trap finish EXIT
+ main
+ adbConnect
+ adb connect 192.168.1.231:5555
+ local -i adbMaxRetries=25
+ local -i adbCounter=0
+ true
+ adb -s 192.168.1.231:5555 shell input keyevent KEYCODE_WAKEUP
+ local adbEventSuccess=0
+ [[ 0 -eq 0 ]]
+ break
e
+ packageLaunch=tv.youi.clientapp.AppActivity
+ packageLaunchAlternate=com.clientapp.MainActivity
+ packageName=com.att.tv
++ adb -s 192.168.1.231:5555 shell pidof com.att.tv
+ packagePID=19404
+ '[' '!' -z 19404 ']'
+ adb -s 192.168.1.231:5555 shell input keyevent KEYCODE_WAKEUP
++ adb -s 192.168.1.231:5555 shell am start -n com.att.tv/tv.youi.clientapp.AppActivity
Error type 3
Error: Activity class {com.att.tv/tv.youi.clientapp.AppActivity} does not exist.
+ packageError='Starting: Intent { cmp=com.att.tv/tv.youi.clientapp.AppActivity }'
+ [[ Starting: Intent { cmp=com.att.tv/tv.youi.clientapp.AppActivity } == *\E\r\r\o\r\ \t\y\p\e\ \3* ]]
+ echo 'Waking 192.168.1.231:5555'
+ touch 192.168.1.231/adbAppRunning
+ finish
+ echo 'prebmitune.sh is exiting for 192.168.1.231:5555 with exit code 0'
'
[EXECUTE] Finished running ./scripts/firetv/directv/prebmitune.sh in 2.171425737s
[EXECUTE] Running [./scripts/firetv/directv/bmitune.sh 242 192.168.1.231:5555]
[EXECUTE] Stdout: 'Not a special channel (exit nor reboot)
Current app in focus is com.amazon.tv.launcher
Current PID for this script is 91
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
Active audio stream not detected in 50 seconds.
bmitune.sh is exiting for 192.168.1.231:5555 with exit code 1
'
[EXECUTE] Stderr: '+ channelID='"242"'
+ specialID=242
+ streamerIP=192.168.1.231:5555
+ streamerNoPort=192.168.1.231
+ adbTarget='adb -s 192.168.1.231:5555'
+ trap finish EXIT
+ main
+ matchEncoderURL
+ case "$streamerIP" in
+ encoderURL=http://192.168.1.227/0.ts
+ specialChannels
+ packageName=com.att.tv
+ '[' 242 = exit ']'
+ '[' 242 = reboot ']'
+ [[ -f 192.168.1.231/adbCommunicationFail ]]
+ echo 'Not a special channel (exit nor reboot)'
++ adb -s 192.168.1.231:5555 shell dumpsys window windows
++ grep -E mCurrentFocus
++ cut -d / -f1
++ sed 's/.* //g'
+ appFocus=com.amazon.tv.launcher
+ echo 'Current app in focus is com.amazon.tv.launcher'
+ launchDelay
+ local lastChannel
+ local lastAwake
+ local timeNow
+ local timeElapsed
+ local maxTime=14400
+ mkdir -p 192.168.1.231
+ [[ -f 192.168.1.231/stream_stopped ]]
+ echo 0
+ [[ -f 192.168.1.231/last_channel ]]
+ echo 0
1
+ echo 'Current PID for this script is 91'
+ lastChannel=0
+ lastAwake=0
++ date +%s
+ timeNow=1693256155
+ timeElapsed=1693256155
+ (( 0 == 242 ))
+ '[' -f 192.168.1.231/adbAppRunning ']'
+ (( 1693256155 < 14400 ))
+ activeAudioCheck
++ date +%s
+ local startTime=1693256155
+ local maxDuration=50
+ local minimumLoudness=-50
+ local sleepDuration=1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256159 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256164 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256169 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256174 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256179 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256184 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256190 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256195 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256200 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256205 - 1693256155 > 50 ))
++ echo '-70.0 > -50'
++ bc -l
+ (( 0 ))
+ echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
1
+ true
++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
++ awk '/I: /{print $2}'
+ checkLoudness=-70.0
++ date +%s
+ (( 1693256210 - 1693256155 > 50 ))
+ echo 'Active audio stream not detected in 50 seconds.'
+ exit 1
+ finish
+ echo 'bmitune.sh is exiting for 192.168.1.231:5555 with exit code 1'
'
[EXECUTE] Finished running ./scripts/firetv/directv/bmitune.sh in 55.45051929s
[ERR] Failed to run start script: exit status 1```
Did you use the slider to re-pull and redeploy the container when you updated in Portainer-Stacks so you got the image I just uploaded?
It's possible my "Error Type 3" handling isn't working right yet of course -- but I just want to be sure you're using the latest bnhf/ah4c:test...
yes did a repull and re-deploy
at least it did not crash it went home
let me take a look at the script to be sure
packageLaunch="tv.youi.clientapp.AppActivity"
packageLaunchAlternate="com.clientapp.MainActivity"
packageName="com.att.tv"
packagePID=$($adbTarget shell pidof $packageName)```
I should have thought of this before, but I switched the two package names so that one that works for me would error out -- and my logic isn't working. So, I'll get it sorted and get back to you shortly...
Sorted now I believe. Pull the test image again, and let's see where we're at. Not sure if this package launcher difference is related to a stream vs satellite account or an app update that I haven't gotten yet, but I made your package launcher the primary. And, it's still working fine for me as the alternate -- after it errors out on the primary.
I may change this to some sort of true/false env var, once we figure out the root of this name difference. It'd be cleaner to not have to process an error on every tune.
Just came back from a dinner break. I just ran the update and it appears to be working like it is supposed to.
changed channel worked also. .
2023-08-28T22:59:03.898830888Z [EXECUTE] Running [./scripts/firetv/directv/prebmitune.sh 192.168.1.231:5555]
2023-08-28T22:59:06.527187133Z [EXECUTE] Stdout: 'already connected to 192.168.1.231:5555
2023-08-28T22:59:06.527204234Z Starting: Intent { cmp=com.att.tv/com.clientapp.MainActivity }
2023-08-28T22:59:06.527207234Z Warning: Activity not started, its current task has been brought to the front
2023-08-28T22:59:06.527209834Z Waking 192.168.1.231:5555
2023-08-28T22:59:06.527211934Z prebmitune.sh is exiting for 192.168.1.231:5555 with exit code 0
2023-08-28T22:59:06.527214134Z '
2023-08-28T22:59:06.527216234Z [EXECUTE] Stderr: '+ streamerIP=192.168.1.231:5555
2023-08-28T22:59:06.527218434Z + streamerNoPort=192.168.1.231
2023-08-28T22:59:06.527220534Z + adbTarget='adb -s 192.168.1.231:5555'
2023-08-28T22:59:06.527222634Z + mkdir -p 192.168.1.231
2023-08-28T22:59:06.527224735Z + trap finish EXIT
2023-08-28T22:59:06.527226835Z + main
2023-08-28T22:59:06.527228935Z + adbConnect
2023-08-28T22:59:06.527231035Z + adb connect 192.168.1.231:5555
2023-08-28T22:59:06.527233235Z + local -i adbMaxRetries=25
2023-08-28T22:59:06.527235335Z + local -i adbCounter=0
2023-08-28T22:59:06.527237435Z + true
2023-08-28T22:59:06.527239535Z + adb -s 192.168.1.231:5555 shell input keyevent KEYCODE_WAKEUP
2023-08-28T22:59:06.527241735Z + local adbEventSuccess=0
2023-08-28T22:59:06.527243835Z + [[ 0 -eq 0 ]]
2023-08-28T22:59:06.527245935Z + break
2023-08-28T22:59:06.527247935Z + adbWake
2023-08-28T22:59:06.527250035Z + packageLaunch=com.clientapp.MainActivity
2023-08-28T22:59:06.527252535Z + packageLaunchAlternate=tv.youi.clientapp.AppActivity
2023-08-28T22:59:06.527254636Z + packageName=com.att.tv
2023-08-28T22:59:06.527256736Z ++ adb -s 192.168.1.231:5555 shell pidof com.att.tv
2023-08-28T22:59:06.527258836Z + packagePID=19404
2023-08-28T22:59:06.527260936Z + '[' '!' -z 19404 ']'
2023-08-28T22:59:06.527263036Z + adb -s 192.168.1.231:5555 shell input keyevent KEYCODE_WAKEUP
2023-08-28T22:59:06.527265236Z ++ adb -s 192.168.1.231:5555 shell am start -n com.att.tv/com.clientapp.MainActivity
2023-08-28T22:59:06.527267436Z + packageError='Starting: Intent { cmp=com.att.tv/com.clientapp.MainActivity }
2023-08-28T22:59:06.527269636Z Warning: Activity not started, its current task has been brought to the front'
2023-08-28T22:59:06.527280836Z + echo 'Starting: Intent { cmp=com.att.tv/com.clientapp.MainActivity }
2023-08-28T22:59:06.527283236Z Warning: Activity not started, its current task has been brought to the front'
2023-08-28T22:59:06.527285337Z + echo 'Starting: Intent { cmp=com.att.tv/com.clientapp.MainActivity }
2023-08-28T22:59:06.527287437Z Warning: Activity not started, its current task has been brought to the front'
2023-08-28T22:59:06.527289637Z + grep -q 'Error type 3'
2023-08-28T22:59:06.527291737Z + echo 'Waking 192.168.1.231:5555'
2023-08-28T22:59:06.527293837Z + touch 192.168.1.231/adbAppRunning
2023-08-28T22:59:06.527296037Z + finish
2023-08-28T22:59:06.527298137Z + echo 'prebmitune.sh is exiting for 192.168.1.231:5555 with exit code 0'
2023-08-28T22:59:06.527300337Z '
2023-08-28T22:59:06.527302437Z [EXECUTE] Finished running ./scripts/firetv/directv/prebmitune.sh in 2.628536352s
2023-08-28T22:59:06.527610847Z [EXECUTE] Running [./scripts/firetv/directv/bmitune.sh 242 192.168.1.231:5555]
2023-08-28T22:59:32.093067541Z [IO] io.Copy: write tcp 192.168.32.2:7654->192.168.32.1:49530: write: broken pipe
2023-08-28T22:59:32.093134542Z [IOINFO] Successfully copied 28077260 bytes
2023-08-28T22:59:32.093144042Z [IOINFO] Transfer speed: 8.78581465699478 Mbits/second
2023-08-28T22:59:32.093150843Z Performing Close() for 192.168.1.231:5555
2023-08-28T22:59:32.093157343Z [EXECUTE] Running [./scripts/firetv/directv/stopbmitune.sh 192.168.1.231:5555]
2023-08-28T22:59:37.547658668Z Tuner 0 is active - skipping
2023-08-28T22:59:37.547933068Z [ERR] Failed to tune device(s) not available
2023-08-28T22:59:37.548235468Z [GIN-debug] Request: 192.168.32.1 GET /play/tuner/281, latency: 552.3µs, status: 500
2023-08-28T22:59:47.987664327Z [EXECUTE] Stdout: 'Not a special channel (exit nor reboot)
2023-08-28T22:59:47.987685327Z Current app in focus is mCurrentFocus=null
2023-08-28T22:59:47.987689827Z Current PID for this script is 91
2023-08-28T22:59:47.987693427Z Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
2023-08-28T22:59:47.987697128Z Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...
2023-08-28T22:59:47.987700628Z Active audio stream detected with -13.4 LUF.
2023-08-28T22:59:47.987704128Z bmitune.sh is exiting for 192.168.1.231:5555 with exit code 0
2023-08-28T22:59:47.987711028Z '
2023-08-28T22:59:47.987716628Z [EXECUTE] Stderr: '+ channelID='"242"'
2023-08-28T22:59:47.987721328Z + specialID=242
2023-08-28T22:59:47.987725428Z + streamerIP=192.168.1.231:5555
2023-08-28T22:59:47.987729628Z + streamerNoPort=192.168.1.231
2023-08-28T22:59:47.987733528Z + adbTarget='adb -s 192.168.1.231:5555'
2023-08-28T22:59:47.987737228Z + trap finish EXIT
2023-08-28T22:59:47.987741128Z + main
2023-08-28T22:59:47.987756728Z + matchEncoderURL
2023-08-28T22:59:47.987762728Z + case "$streamerIP" in
2023-08-28T22:59:47.987765728Z + encoderURL=http://192.168.1.227/0.ts
2023-08-28T22:59:47.987767828Z + specialChannels
2023-08-28T22:59:47.987770028Z + packageName=com.att.tv
2023-08-28T22:59:47.987772128Z + '[' 242 = exit ']'
2023-08-28T22:59:47.987774229Z + '[' 242 = reboot ']'
2023-08-28T22:59:47.987776729Z + [[ -f 192.168.1.231/adbCommunicationFail ]]
2023-08-28T22:59:47.987778829Z + echo 'Not a special channel (exit nor reboot)'
2023-08-28T22:59:47.987780929Z ++ adb -s 192.168.1.231:5555 shell dumpsys window windows
2023-08-28T22:59:47.987783029Z ++ grep -E mCurrentFocus
2023-08-28T22:59:47.987785129Z ++ cut -d / -f1
2023-08-28T22:59:47.987787329Z ++ sed 's/.* //g'
2023-08-28T22:59:47.987789429Z + appFocus=mCurrentFocus=null
2023-08-28T22:59:47.987791529Z + echo 'Current app in focus is mCurrentFocus=null'
2023-08-28T22:59:47.987793629Z + launchDelay
2023-08-28T22:59:47.987795729Z + local lastChannel
2023-08-28T22:59:47.987797829Z + local lastAwake
2023-08-28T22:59:47.987799929Z + local timeNow
2023-08-28T22:59:47.987802029Z + local timeElapsed
2023-08-28T22:59:47.987804129Z + local maxTime=14400
2023-08-28T22:59:47.987806229Z + mkdir -p 192.168.1.231
2023-08-28T22:59:47.987808329Z + [[ -f 192.168.1.231/stream_stopped ]]
2023-08-28T22:59:47.987810429Z + echo 0
2023-08-28T22:59:47.987812529Z + [[ -f 192.168.1.231/last_channel ]]
2023-08-28T22:59:47.987814629Z + echo 0
2023-08-28T22:59:47.987816629Z + echo 91
2023-08-28T22:59:47.987818729Z + echo 'Current PID for this script is 91'
2023-08-28T22:59:47.987820829Z + lastChannel=0
2023-08-28T22:59:47.987822929Z + lastAwake=0
2023-08-28T22:59:47.987825029Z ++ date +%s
2023-08-28T22:59:47.987827129Z + timeNow=1693263547
2023-08-28T22:59:47.987829229Z + timeElapsed=1693263547
2023-08-28T22:59:47.987831329Z + (( 0 == 242 ))
2023-08-28T22:59:47.987833429Z + '[' -f 192.168.1.231/adbAppRunning ']'
2023-08-28T22:59:47.987835529Z + (( 1693263547 < 14400 ))
2023-08-28T22:59:47.987838029Z + activeAudioCheck
2023-08-28T22:59:47.987840129Z ++ date +%s
2023-08-28T22:59:47.987842229Z + local startTime=1693263547
2023-08-28T22:59:47.987846329Z + local maxDuration=50
2023-08-28T22:59:47.987848429Z + local minimumLoudness=-50
2023-08-28T22:59:47.987850430Z + local sleepDuration=1
2023-08-28T22:59:47.987852530Z + true
2023-08-28T22:59:47.987858730Z ++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a ++ -f awk null -hide_banner -
2023-08-28T22:59:47.987861130Z '/I: /{print $2}'
2023-08-28T22:59:47.987863230Z + checkLoudness=-70.0
2023-08-28T22:59:47.987865330Z ++ date +%s
2023-08-28T22:59:47.987867430Z + (( 1693263552 - 1693263547 > 50 ))
2023-08-28T22:59:47.987869530Z ++ echo '-70.0 > -50'
2023-08-28T22:59:47.987871730Z ++ bc -l
2023-08-28T22:59:47.987873830Z + (( 0 ))
2023-08-28T22:59:47.987875930Z + echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
2023-08-28T22:59:47.987878130Z + sleep 1
2023-08-28T22:59:47.987880230Z + true
2023-08-28T22:59:47.987883330Z ++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
2023-08-28T22:59:47.987885630Z ++ awk '/I: /{print $2}'
2023-08-28T22:59:47.987887630Z + checkLoudness=-70.0
2023-08-28T22:59:47.987889730Z ++ date +%s
2023-08-28T22:59:47.987891830Z + (( 1693263558 - 1693263547 > 50 ))
2023-08-28T22:59:47.987893930Z ++ echo '-70.0 > -50'
2023-08-28T22:59:47.987896030Z ++ bc -l
2023-08-28T22:59:47.987898130Z + (( 0 ))
2023-08-28T22:59:47.987900230Z + echo 'Active audio stream not yet detected -- loudness is -70.0 LUF. Continuing...'
2023-08-28T22:59:47.987902330Z + sleep 1
2023-08-28T22:59:47.987904430Z + true
2023-08-28T22:59:47.987906530Z ++ ffmpeg -t 1 -i http://192.168.1.227/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
2023-08-28T22:59:47.987908630Z ++ awk '/I: /{print $2}'
2023-08-28T22:59:47.987910730Z + checkLoudness=-13.4
2023-08-28T22:59:47.987912830Z ++ date +%s
2023-08-28T22:59:47.987914830Z + (( 1693263563 - 1693263547 > 50 ))
2023-08-28T22:59:47.987916930Z ++ echo '-13.4 > -50'
2023-08-28T22:59:47.987919030Z ++ bc -l
2023-08-28T22:59:47.987921130Z + (( 1 ))
2023-08-28T22:59:47.987923130Z + echo 'Active audio stream detected with -13.4 LUF.'
2023-08-28T22:59:47.987925330Z + break
2023-08-28T22:59:47.987927431Z + echo 242
2023-08-28T22:59:47.987929531Z + tuneChannel
2023-08-28T22:59:47.987931631Z ++ awk -F, '/channel-id="242"/ {print $2}' m3u/directv.m3u
2023-08-28T22:59:47.987933831Z + channelName=USA
2023-08-28T22:59:47.987935931Z ++ echo USA
2023-08-28T22:59:47.987937931Z ++ sed 's/^/"/;s/$/"/'
2023-08-28T22:59:47.987940131Z + channelName='"USA"'
2023-08-28T22:59:47.987942431Z + directvMenu='input keyevent KEYCODE_MENU; input keyevent KEYCODE_MENU; input keyevent KEYCODE_MENU; input keyevent KEYCODE_MENU'
2023-08-28T22:59:47.987946831Z + directvSearch='input keyevent KEYCODE_DPAD_RIGHT; input keyevent KEYCODE_DPAD_RIGHT; input keyevent KEYCODE_DPAD_RIGHT; input keyevent KEYCODE_DPAD_RIGHT;
2023-08-28T22:59:47.987949231Z input keyevent KEYCODE_DPAD_DOWN; sleep 3; input keyevent KEYCODE_DPAD_CENTER; sleep 3'
2023-08-28T22:59:47.987951431Z + directvTune='input keyevent KEYCODE_MEDIA_PLAY_PAUSE; sleep 3; input keyevent KEYCODE_DPAD_DOWN; input keyevent KEYCODE_DPAD_DOWN; input keyevent KEYCODE_DPAD_CENTER'
2023-08-28T22:59:47.987954431Z + adb -s 192.168.1.231:5555 shell input keyevent 'KEYCODE_MENU;' input keyevent 'KEYCODE_MENU;' input keyevent 'KEYCODE_MENU;' input keyevent KEYCODE_MENU
2023-08-28T22:59:47.987956931Z + adb -s 192.168.1.231:5555 shell input keyevent 'KEYCODE_DPAD_RIGHT;' input keyevent 'KEYCODE_DPAD_RIGHT;' input keyevent 'KEYCODE_DPAD_RIGHT;' input keyevent 'KEYCODE_DPAD_RIGHT;' input keyevent 'KEYCODE_DPAD_DOWN;' sleep '3;' input keyevent 'KEYCODE_DPAD_CENTER;' sleep 3
2023-08-28T22:59:47.987959331Z + adb -s 192.168.1.231:5555 shell input text '"USA"'
2023-08-28T22:59:47.987961831Z + adb -s 192.168.1.231:5555 shell input keyevent 'KEYCODE_MEDIA_PLAY_PAUSE;' sleep '3;' input keyevent 'KEYCODE_DPAD_DOWN;' input keyevent 'KEYCODE_DPAD_DOWN;' input keyevent KEYCODE_DPAD_CENTER
2023-08-28T22:59:47.987964231Z + finish
2023-08-28T22:59:47.987966331Z + echo 'bmitune.sh is exiting for 192.168.1.231:5555 with exit code 0'
2023-08-28T22:59:47.987968431Z '
2023-08-28T22:59:47.987970631Z [EXECUTE] Finished running ./scripts/firetv/directv/bmitune.sh in 41.46060947s
2023-08-28T22:59:52.020314228Z [EXECUTE] Stdout: 'Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020331428Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020334228Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020336528Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020338528Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020340628Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020342628Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020344728Z Waiting for bmitune.sh to complete...
2023-08-28T22:59:52.020346928Z Streaming stopped for 192.168.1.231:5555
2023-08-28T22:59:52.020349028Z Sleep initiated for 192.168.1.231:5555
2023-08-28T22:59:52.020351128Z 192.168.1.231/stream_stopped written with epoch stop time
2023-08-28T22:59:52.020353328Z '
2023-08-28T22:59:52.020355428Z [EXECUTE] Stderr: '+ streamerIP=192.168.1.231:5555
2023-08-28T22:59:52.020357528Z + streamerNoPort=192.168.1.231
2023-08-28T22:59:52.020359528Z + adbTarget='adb -s 192.168.1.231:5555'
2023-08-28T22:59:52.020361628Z + main
2023-08-28T22:59:52.020363728Z + bmituneDone
2023-08-28T22:59:52.020365828Z + bmitunePID=91
2023-08-28T22:59:52.020367828Z + ps -p 91
2023-08-28T22:59:52.020375828Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020378228Z + sleep 2
2023-08-28T22:59:52.020380328Z + ps -p 91
2023-08-28T22:59:52.020382328Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020384428Z + sleep 2
2023-08-28T22:59:52.020386528Z + ps -p 91
2023-08-28T22:59:52.020388628Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020390728Z + sleep 2
2023-08-28T22:59:52.020392728Z + ps -p 91
2023-08-28T22:59:52.020394828Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020396828Z + sleep 2
2023-08-28T22:59:52.020398928Z + ps -p 91
2023-08-28T22:59:52.020400928Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020403028Z + sleep 2
2023-08-28T22:59:52.020405428Z + ps -p 91
2023-08-28T22:59:52.020407528Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020409628Z + sleep 2
2023-08-28T22:59:52.020411728Z + ps -p 91
2023-08-28T22:59:52.020413728Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020415828Z + sleep 2
2023-08-28T22:59:52.020417829Z + ps -p 91
2023-08-28T22:59:52.020419929Z + echo 'Waiting for bmitune.sh to complete...'
2023-08-28T22:59:52.020422029Z + sleep 2
2023-08-28T22:59:52.020424029Z + ps -p 91
2023-08-28T22:59:52.020426129Z + adbStop
2023-08-28T22:59:52.020429129Z + stop='input keyevent KEYCODE_HOME'
2023-08-28T22:59:52.020432229Z + adb -s 192.168.1.231:5555 shell input keyevent KEYCODE_HOME
2023-08-28T22:59:52.020435429Z + sleep 2
2023-08-28T22:59:52.020438629Z + echo 'Streaming stopped for 192.168.1.231:5555'
2023-08-28T22:59:52.020442429Z + adbSleep
2023-08-28T22:59:52.020445729Z + sleep='input keyevent KEYCODE_SLEEP'
2023-08-28T22:59:52.020449029Z + adb -s 192.168.1.231:5555 shell input keyevent KEYCODE_SLEEP
2023-08-28T22:59:52.020452429Z + echo 'Sleep initiated for 192.168.1.231:5555'
2023-08-28T22:59:52.020456829Z + date +%s
2023-08-28T22:59:52.020460329Z + echo '192.168.1.231/stream_stopped written with epoch stop time'
2023-08-28T22:59:52.020464329Z '
2023-08-28T22:59:52.020468529Z [EXECUTE] Finished running ./scripts/firetv/directv/stopbmitune.sh in 19.927371321s
2023-08-28T22:59:52.020632230Z [GIN-debug] Request: 192.168.32.1 GET /play/tuner/242, latency: 48.243818591s, status: 200 ```
spoke to soon its hanging up switching back to usa or a different channel
works ok on "last channel used"
Is Motortrend a channel? Also, did you modify the directv.m3u file? It should have been trying to tune "USA Network HD" not "USA". This particular set of actions requires the search to match exactly one channel name -- which is the name used in the DirecTV guide:
When you go into the guide and navigate to the channel number and logo box, you'll see the name that needs to be in the M3U towards the top of the screen. That needs to be entered in the m3u exactly like that.
If you've modified the m3u, go ahead and post it here so I can have a look at your additions/changes.
that explans it
#EXTINF:-1 channel-id="3" tvc-guide-stationid="19611",KYW CBS 3
http://{{ .IPADDRESS }}/play/tuner/3
#EXTINF:-1 channel-id="6" tvc-guide-stationid="19612",WPVI ABC 6
http://{{ .IPADDRESS }}/play/tuner/6
#EXTINF:-1 channel-id="10" tvc-guide-stationid="19613",WCAU NBC 10
http://{{ .IPADDRESS }}/play/tuner/10
#EXTINF:-1 channel-id="12" tvc-guide-stationid="24114",WHYY PBS 12
http://{{ .IPADDRESS }}/play/tuner/12
#EXTINF:-1 channel-id="29" tvc-guide-stationid="19614",WTXF FOX 29
http://{{ .IPADDRESS }}/play/tuner/29
#EXTINF:-1 channel-id="39" tvc-guide-stationid="24783",WLVT PBS 39
http://{{ .IPADDRESS }}/play/tuner/39
#EXTINF:-1 channel-id="57" tvc-guide-stationid="34628",WPSG CW 57
http://{{ .IPADDRESS }}/play/tuner/57
#EXTINF:-1 channel-id="206" tvc-guide-stationid="32645",ESPN
http://{{ .IPADDRESS }}/play/tuner/206
#EXTINF:-1 channel-id="209" tvc-guide-stationid="45507",ESPN2
http://{{ .IPADDRESS }}/play/tuner/209
#EXTINF:-1 channel-id="211" tvc-guide-stationid="65025",NFL RedZone
http://{{ .IPADDRESS }}/play/tuner/2113
#EXTINF:-1 channel-id="212" tvc-guide-stationid="45399",NFL Network
http://{{ .IPADDRESS }}/play/tuner/212
#EXTINF:-1 channel-id="213" tvc-guide-stationid="62081",MLB Network
http://{{ .IPADDRESS }}/play/tuner/213
#EXTINF:-1 channel-id="216" tvc-guide-stationid="45526",NBA TV
http://{{ .IPADDRESS }}/play/tuner/216
#EXTINF:-1 channel-id="217" tvc-guide-stationid="60316",Tennis Channel
http://{{ .IPADDRESS }}/play/tuner/217
#EXTINF:-1 channel-id="218" tvc-guide-stationid="61854",Golf Channel
http://{{ .IPADDRESS }}/play/tuner/218
#EXTINF:-1 channel-id="219" tvc-guide-stationid="82547",FOX Sports
http://{{ .IPADDRESS }}/play/tuner/219
#EXTINF:-1 channel-id="241" tvc-guide-stationid="59186",Paramount Network
http://{{ .IPADDRESS }}/play/tuner/241
#EXTINF:-1 channel-id="242" tvc-guide-stationid="58452",USA
http://{{ .IPADDRESS }}/play/tuner/242
#EXTINF:-1 channel-id="244" tvc-guide-stationid="24533",SYFY
http://{{ .IPADDRESS }}/play/tuner/244
#EXTINF:-1 channel-id="281" tvc-guide-stationid="31046",MOTORTREND
http://{{ .IPADDRESS }}/play/tuner/281
#EXTINF:-1 channel-id="501" tvc-guide-stationid="19548",HBO HD East
http://{{ .IPADDRESS }}/play/tuner/501
#EXTINF:-1 channel-id="502" tvc-guide-stationid="59368",HBO2 HD East
http://{{ .IPADDRESS }}/play/tuner/502
#EXTINF:-1 channel-id="503" tvc-guide-stationid="59363",HBO Signature HD East
http://{{ .IPADDRESS }}/play/tuner/503
#EXTINF:-1 channel-id="504" tvc-guide-stationid="19566",HBO West HD
http://{{ .IPADDRESS }}/play/tuner/504
#EXTINF:-1 channel-id="505" tvc-guide-stationid="59368",HBO2 West HD
http://{{ .IPADDRESS }}/play/tuner/505
#EXTINF:-1 channel-id="506" tvc-guide-stationid="59839",HBO Comedy HD
http://{{ .IPADDRESS }}/play/tuner/506
#EXTINF:-1 channel-id="507" tvc-guide-stationid="59357",HBO Family East HD
http://{{ .IPADDRESS }}/play/tuner/507
#EXTINF:-1 channel-id="509" tvc-guide-stationid="59845",HBO Zone HD
http://{{ .IPADDRESS }}/play/tuner/509
#EXTINF:-1 channel-id="618" tvc-guide-stationid="59305",FOX Sports
http://{{ .IPADDRESS }}/play/tuner/618
#EXTINF:-1 channel-id="exit" tvc-guide-stationid="",Exit DirecTV
http://{{ .IPADDRESS }}/play/tuner/exit
#EXTINF:-1 channel-id="reboot" tvc-guide-stationid="",Reboot FireTV
http://{{ .IPADDRESS }}/play/tuner/reboot```
I'd suggest updating your M3U to have exactly matching channel names to the grid guide in the DTV app (including upper and lower case), and then go ahead and post the modified file here, and I'll add it to the "master".
We figured out a while back that it's possible to put comments in the M3U, so I'll add something regarding this issue for "the next guy".
Here's what it looked like originally, if that helps:
#EXTM3U
#EXTINF:-1 channel-id="8" tvc-guide-stationid="25102",KAET PBS 8
http://{{ .IPADDRESS }}/play/tuner/8
#EXTINF:-1 channel-id="10" tvc-guide-stationid="21209",KSAZ FOX 10
http://{{ .IPADDRESS }}/play/tuner/10
#EXTINF:-1 channel-id="12" tvc-guide-stationid="20507",KPNX NBC 12
http://{{ .IPADDRESS }}/play/tuner/12
#EXTINF:-1 channel-id="212" tvc-guide-stationid="45399",NFL Network HD
http://{{ .IPADDRESS }}/play/tuner/212
#EXTINF:-1 channel-id="216" tvc-guide-stationid="45526",NBA TV HD
http://{{ .IPADDRESS }}/play/tuner/216
#EXTINF:-1 channel-id="217" tvc-guide-stationid="60316",Tennis Channel HD
http://{{ .IPADDRESS }}/play/tuner/217
#EXTINF:-1 channel-id="219" tvc-guide-stationid="82547",FOX Sports 1 HD
http://{{ .IPADDRESS }}/play/tuner/219
#EXTINF:-1 channel-id="241" tvc-guide-stationid="59186",Paramount Network HD
http://{{ .IPADDRESS }}/play/tuner/241
#EXTINF:-1 channel-id="242" tvc-guide-stationid="58452",USA Network HD
http://{{ .IPADDRESS }}/play/tuner/242
#EXTINF:-1 channel-id="501" tvc-guide-stationid="19548",HBO HD East
http://{{ .IPADDRESS }}/play/tuner/501
#EXTINF:-1 channel-id="502" tvc-guide-stationid="59368",HBO2 HD East
http://{{ .IPADDRESS }}/play/tuner/502
#EXTINF:-1 channel-id="503" tvc-guide-stationid="59363",HBO Signature HD East
http://{{ .IPADDRESS }}/play/tuner/503
#EXTINF:-1 channel-id="504" tvc-guide-stationid="19566",HBO West HD
http://{{ .IPADDRESS }}/play/tuner/504
#EXTINF:-1 channel-id="505" tvc-guide-stationid="59355",HBO2 West HD
http://{{ .IPADDRESS }}/play/tuner/505
#EXTINF:-1 channel-id="506" tvc-guide-stationid="59839",HBO Comedy HD
http://{{ .IPADDRESS }}/play/tuner/506
#EXTINF:-1 channel-id="507" tvc-guide-stationid="59357",HBO Family East HD
http://{{ .IPADDRESS }}/play/tuner/507
#EXTINF:-1 channel-id="509" tvc-guide-stationid="59845",HBO Zone HD
http://{{ .IPADDRESS }}/play/tuner/509
#EXTINF:-1 channel-id="618" tvc-guide-stationid="59305",FOX Sports 2 HD
http://{{ .IPADDRESS }}/play/tuner/618
#EXTINF:-1 channel-id="exit" tvg-logo="http://{{ .IPADDRESS }}/static/logos/exit.png",Exit DirecTV
http://{{ .IPADDRESS }}/play/tuner/exit
#EXTINF:-1 channel-id="reboot" tvg-logo="http://{{ .IPADDRESS }}/static/logos/reboot.png",Reboot FireTV
http://{{ .IPADDRESS }}/play/tuner/reboot
Another potential issue could be related to the "Quick Guide" -- if you use it. With ah4c, and the original androidhdmi-for-channels, I believe a minimum of two tuners is required to use the Quick Guide.
I've actually made use of this in my scripting, by keeping track of the last channel watched on each tuner -- that way you can quickly switch back and forth between a pair of channels very quickly (no re-tuning required).
directtv guide looks like its USA Network in the black Banner and does not switch back from
NFL Network or vice versa. NFL Network HD is not found. it gets stuck at multiple choices.
two for USA one 3 for NFL Network
If I continue by click down 1 space and select it works?




